How ogacu/lexis-agent works
Lexis is a personal AI platform whose implemented workflow is vocabulary capture, optional AI enrichment, editing and filtering, and persistent storage. The frontend calls a gateway, which proxies vocabulary requests to the service; the service can also sync changes to Notion. Investment research is documented and has API client and gateway surfaces, but its UI and service implementation are not present in the supplied tree. Connections reflect the excerpts and README; unsampled investment internals are not inferred.
Main entry points: page.tsx Vocabulary page · vocab-service/main.py Vocabulary service · api-gateway/main.py API gateway · api.ts API client
Components 14
Web app
- Vocabulary page
frontend/src/app/vocab/page.tsx - Add word form
frontend/src/components/vocab/AddWordForm.tsx - Word list
frontend/src/components/vocab/WordList.tsx - Word card
frontend/src/components/vocab/WordCard.tsx
API layer
- API client
frontend/src/lib/api.ts - API gateway
services/api-gateway/main.py - Investment API surface
frontend/src/lib/api.ts
Vocabulary domain
- Vocabulary service
services/vocab-service/main.py
Data and integrations
- PostgreSQL
db/init.sql - Anthropic API
- Notion sync
services/vocab-service/notion_sync.py - Notion
- Investment service
Other components
- User
Connections 16
- User → Vocabulary page: uses
- Vocabulary page → Add word form: renders
frontend/src/app/vocab/page.tsx - Vocabulary page → Word list: renders
frontend/src/app/vocab/page.tsx - Word list → Word card: renders
frontend/src/components/vocab/WordList.tsx - Vocabulary page → API client: loads words
frontend/src/app/vocab/page.tsx - Word card → API client: updates words
frontend/src/components/vocab/WordCard.tsx - Add word form → API client: adds words
- API client → API gateway: HTTP requests
frontend/src/lib/api.ts - API gateway → Vocabulary service: proxies vocab
services/api-gateway/main.py - Vocabulary service → PostgreSQL: reads and writes
services/vocab-service/main.py - Vocabulary service → Anthropic API: generates definitions
services/vocab-service/main.py - Vocabulary service → Notion sync: queues sync
services/vocab-service/main.py - Notion sync → Notion: syncs pages
services/vocab-service/notion_sync.py - User → Investment API surface: uses
- Investment API surface → API gateway: HTTP requests
frontend/src/lib/api.ts - API gateway → Investment service: proxies invest
services/api-gateway/main.py