How bob798/speakeasy works
Speakeasy is an AI English tutor that personalizes practice across sessions. The main workflow is: a learner chats with Alex, the backend generates a response, then analyzes the conversation and updates review and memory so later chats can use what it has learned. Separate product branches support article practice, translation, vocabulary, explanations, and voice input/output. The graph combines README-documented capabilities with relationships visible in the sampled sources and SOURCE INDEX; unsampled service internals are represented only where their role is documented or named.
Main entry points: main.py FastAPI app · articles.py Article routes · db.py Data models · App.vue Web app
Components 25
Learner experience
- Web app
frontend/src/App.vue
Application API
- FastAPI app
main.py - Chat routes
app/routers/chat.py - Auth routes
app/routers/auth.py - Review routes
app/routers/review.py - Memory routes
app/routers/memory.py - Article routes
app/routers/articles.py - Translation routes
app/routers/translate.py
Personalized coaching
- Account service
app/services/auth_service.py - Conversation service
app/services/chat_service.py - Conversation review
app/services/review_service.py - Learner memory
app/services/memory_service.py - Learner profile
app/services/profile_service.py
Study tools
- Subtitle import
app/services/subtitle_service.py - Article practice
app/services/practice_service.py - Vocabulary service
app/services/vocab_service.py - Explanation service
app/services/explain_service.py - Speech services
app/services/stt_service.py - Speech synthesis
app/services/tts_service.py
Shared platform
- Model client
app/services/model_client.py - SQLite database
app/database.py - Data models
app/models/db.py - Runtime config
app/config.py
Other components
- Learner
- LLM providers
Connections 33
- Learner → Web app: uses
README.md - Web app → FastAPI app: calls API
README.md - FastAPI app → Chat routes: registers
main.py - FastAPI app → Auth routes: registers
main.py - FastAPI app → Review routes: registers
main.py - FastAPI app → Article routes: registers
main.py - FastAPI app → Translation routes: registers
main.py - Auth routes → Account service: delegates to
app/routers/auth.py - Account service → Data models: reads and writes
app/services/auth_service.py - Chat routes → Conversation service: calls
app/routers/chat.py - Chat routes → Conversation review: requests analysis
app/routers/chat.py - Chat routes → Learner memory: updates memory
app/routers/chat.py - Conversation review → Model client: generates review
app/services/review_service.py - Conversation review → Data models: stores review
app/services/review_service.py - Review routes → Conversation review: reads and rates
app/routers/review.py - Memory routes → Learner profile: reads profile
app/routers/memory.py - Learner memory → Data models: persists memory
- Learner profile → Data models: persists profile
- Model client → LLM providers: sends prompts
README.md - Article routes → Subtitle import: imports subtitles
app/routers/articles.py - Article routes → Article practice: serves practice
app/routers/articles.py - Article routes → Explanation service: requests explanations
app/routers/articles.py - Article routes → Speech synthesis: requests audio
app/routers/articles.py - Article routes → Vocabulary service: saves vocabulary
app/routers/articles.py - Translation routes → Vocabulary service: supports vocabulary
- Explanation service → Model client: generates explanations
app/services/explain_service.py - Speech services → LLM providers: transcribes speech
README.md - Web app → Speech services: submits speech
README.md - Web app → Speech synthesis: plays generated speech
README.md - SQLite database → Data models: creates tables
app/database.py - SQLite database → Runtime config: loads database URL
app/database.py - FastAPI app → SQLite database: initializes storage
main.py - Model client → Runtime config: reads model settings
app/services/model_client.py