How tarunvamsivaka/anuvaad works
Anuvaad is an AI code-translation product: users submit code or a natural-language request through the translator, the API applies authentication and quota controls, and AI services return translated or explained code, including streamed output. The product also supports history, billing and credits, collaborative workspaces, GitHub imports, and semantic repository search. The README documents these capabilities; source excerpts show selected backend calls. Some frontend-to-API and unsampled route internals are documented but not directly shown, so those links use README evidence.
Main entry points: main.py FastAPI Application · ai.py AI Translation · translate Translation Routes · billing.py Billing Routes
Components 25
User Clients
- Translator Workspace
frontend/src/features/translate/TranslateFeature.tsx - Developer CLI
cli/src/index.ts
API and Access
- FastAPI Application
app/main.py - Translation Routes
app/routers/translate - Authentication
app/core/auth.py - Quota Controls
app/core/quota.py - Cache and Rate Limits
app/core/cache.py
Translation Services
- AI Translation
app/services/ai.py - Code Parser
app/services/ast_parser.py
Accounts and Billing
- Translation History
app/repositories/translation.py - Background Tasks
app/queue/tasks.py - Billing Routes
app/routers/billing.py - Billing Service
app/domain/billing/service.py - Subscriptions
app/repositories/subscription.py - Workspace Routes
app/routers/workspace.py - PostgreSQL and pgvector
app/core/database_session.py
Repository Search
- GitHub Import
app/routers/github.py - Repository Search
app/routers/repo_search.py - Repository Indexing
app/services/indexing/pipeline.py - Embedding Service
app/services/embedding.py - Vector Repository
app/repositories/vectors.py
Other components
- Developer
- LLM Providers
- GitHub
- Razorpay
Connections 31
- Developer → Translator Workspace: uses
- Developer → Developer CLI: uses
- Translator Workspace → FastAPI Application: submits translations
- Developer CLI → FastAPI Application: calls API
- FastAPI Application → Translation Routes: mounts
app/main.py - FastAPI Application → Billing Routes: mounts
app/main.py - FastAPI Application → Workspace Routes: mounts
app/main.py - FastAPI Application → GitHub Import: mounts
app/main.py - FastAPI Application → Repository Search: mounts
app/main.py - Translation Routes → Authentication: authenticates
app/main.py - Translation Routes → Quota Controls: checks quota
app/core/quota.py - Translation Routes → AI Translation: requests translation
- AI Translation → LLM Providers: generates output
- AI Translation → Code Parser: parses code
app/services/ai.py - AI Translation → Cache and Rate Limits: reads and writes
app/services/ai.py - AI Translation → Translation History: loads history
app/services/ai.py - AI Translation → Background Tasks: queues history save
app/services/ai.py - Quota Controls → Cache and Rate Limits: reads and updates
app/core/quota.py - Quota Controls → Translation History: counts translations
app/core/quota.py - Billing Routes → Billing Service: delegates billing
app/routers/billing.py - Billing Routes → Background Tasks: queues billing work
app/routers/billing.py - Billing Service → Subscriptions: updates subscriptions
app/domain/billing/service.py - Background Tasks → Subscriptions: updates subscriptions
app/queue/tasks.py - Billing Routes → Razorpay: handles payments
- Workspace Routes → PostgreSQL and pgvector: stores workspace data
- GitHub Import → GitHub: imports Gists
- Repository Search → Embedding Service: creates query vectors
app/routers/repo_search.py - Repository Search → Vector Repository: searches vectors
app/routers/repo_search.py - Repository Indexing → Embedding Service: generates vectors
app/services/indexing/pipeline.py - Repository Indexing → PostgreSQL and pgvector: persists index
- Vector Repository → PostgreSQL and pgvector: reads and writes
app/repositories/vectors.py