MCPcopy Index your code
hub / github.com/Tukks/Cogito

github.com/Tukks/Cogito @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
386 symbols 857 edges 107 files 45 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cogito

TODO :

  • add notification support for forgotten todo card ?
  • take a screenshot of webpage saved
  • disable new account creation if needed

Screenshot

img.png img_2.png img_1.png img_3.png img_4.png

Features

All you notes in one places

  • add Link
  • add Tweet
  • add Note
  • add Tag, Title, Comment
  • Search in Article, Tweet and Note
  • Automatic Tag with Natural langage processing
  • Save search
  • Dark theme
  • Mark card as Todo
  • Bulk remove or add tag (hold shift and select)
  • PWA app (with share to cogito option on Android)
  • Open to feature request

Installation via docker-compose

  • Create a folder named cogito
  • add docker-compose.yml
  • copy docker-compose.yml from project in the docker-compose.yml created (if raspberry use tukks/cogito-armv7:latest image instead of tukks/cogito:latest)
  • modify APP_JWT_SECRET with a string (with bitwarden for example) of almost 256bit (128 char long)
  • (optional) put your private and public key from twitter developer account
  • modify HTTPS_ONLY with true or false (false for test only environnement)
  • type in your shell docker-compose up -d
  • go to SERVER-IP:8585
  • click on new account, put an email and a password
  • put your email and password on the login page
  • profit
  • feel free to open an issue

Bookmarklet

To save easily link on desktop, add this javascript line to a bookmark. replace Cogito_URL by your url of cogito.

javascript:(function(){window.open('https://<COGITO_URL>/handle-share?text='+encodeURIComponent(window.location.href));})()

Example in firefox : img_5.png

Launch dev

Back

  • add application-secret.properties with :
api.twitter.key=
api.twitter.key.secret=
  • Launch CogitoBackApplication.java

Front

  • npm i
  • npm start

Go to localhost:4200

Extension points exported contracts — how you extend this code

Tag (Interface)
(no doc)
cogito-front/src/app/types/cards-link.ts
LinkRepository (Interface)
(no doc)
cogito-back/src/main/java/com/tukks/cogito/repository/LinkRepository.java
CardsLink (Interface)
(no doc)
cogito-front/src/app/types/cards-link.ts
TagRepository (Interface)
(no doc)
cogito-back/src/main/java/com/tukks/cogito/repository/TagRepository.java
NoteCard (Interface)
(no doc)
cogito-front/src/app/types/cards-link.ts
ImageRepository (Interface)
(no doc)
cogito-back/src/main/java/com/tukks/cogito/repository/ImageRepository.java
TweetCard (Interface)
(no doc)
cogito-front/src/app/types/cards-link.ts
ThingsRepository (Interface)
(no doc)
cogito-back/src/main/java/com/tukks/cogito/repository/ThingsRepository.java

Core symbols most depended-on inside this repo

add
called by 23
cogito-front/src/app/internal-service/intersection-observser/intersection-observer-grid.directive.ts
getSub
called by 16
cogito-back/src/main/java/com/tukks/cogito/service/SecurityUtils.java
getMetaTagContent
called by 11
cogito-back/src/main/java/com/tukks/cogito/service/internal/LinkPreview.java
getTags
called by 10
cogito-back/src/main/java/com/tukks/cogito/controller/TagController.java
close
called by 9
cogito-front/src/app/components/modal-editor/editor.component.ts
getTitle
called by 8
cogito-back/src/main/java/com/tukks/cogito/service/internal/LinkPreview.java
save
called by 6
cogito-back/src/main/java/com/tukks/cogito/service/NoteService.java
save
called by 5
cogito-front/src/app/page/login/login.component.ts

Shape

Method 259
Class 110
Interface 12
Enum 3
Function 2

Languages

Java56%
TypeScript44%

Modules by API surface

cogito-back/src/main/java/com/tukks/cogito/service/internal/NLP/TermsFilter.java16 symbols
cogito-back/src/main/java/com/tukks/cogito/service/internal/LinkPreview.java16 symbols
cogito-front/src/app/components/card/card.component.ts13 symbols
cogito-back/src/main/java/com/tukks/cogito/service/internal/NLP/pojo/TermDocument.java13 symbols
cogito-front/src/app/page/board/toolbox/toolbox.component.ts12 symbols
cogito-front/src/app/http-service/thoughts.service.ts12 symbols
cogito-front/src/app/page/board/board.component.ts11 symbols
cogito-front/src/app/internal-service/store/cogito-store.service.ts11 symbols
cogito-back/src/main/java/com/tukks/cogito/service/ImageService.java10 symbols
cogito-front/src/app/components/modal-editor/editor.component.ts9 symbols
cogito-back/src/main/java/com/tukks/cogito/service/NoteService.java9 symbols
cogito-back/src/main/java/com/tukks/cogito/controller/ThoughtController.java9 symbols

For agents

$ claude mcp add Cogito \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact