How bpun/magar-dict works
The repository identifies itself as a Magar language-learning dictionary with AI features, and its package layout suggests web/API, language-learning services, persistence, and AI capabilities. However, the README is empty and the sampled application excerpts are blank except for app/main.py, which only prints “hello world.” The graph therefore maps the visible subsystems but omits workflow edges that the available evidence cannot establish.
Components 22
Application interfaces
- Application entry
app/main.py - API modules
app/api - Web routes
app/web - Browser assets
app/static
Dictionary learning
- Word workflow
app/services/word_workflow.py - Spaced review
app/services/srs.py - Word tags
app/services/tags.py - Text to speech
app/services/tts.py - Email service
app/services/email.py
AI and search
- Dictionary search
app/services/search.py - Embeddings
app/services/embeddings.py - Vector index
app/services/vector_index.py - LLM interface
app/services/ai/llm_base.py - OpenAI provider
app/services/ai/llm_openai.py - AI quota
app/services/ai/quota.py
Core and persistence
- Audit service
app/services/audit.py - Database session
app/db/session.py - Data models
app/db/models - Security
app/core/security.py - Request dependencies
app/core/deps.py - Rate limiting
app/core/ratelimit.py
Other components
- Learner