How dharani25007-code/zanaks-ai works
Zanaks AI is a Flask-based AI coding platform. Users register, create a chat, choose a mode and language, and receive AI-assisted coding help; the platform also offers code execution and a range of learning, collaboration, and account features. The sampled backend is largely a monolith in app.py, with appcore/db.py providing the SQLite/PostgreSQL connection layer. README capability descriptions preserve major features whose individual implementation paths were not sampled, so those are mapped to app.py or the documented templates without implying unsampled internal calls.
Main entry points: app.py Flask application · index.html Dashboard and auth · codebuddy_voice.js Voice interface · db.py Database adapter
Components 23
Web experience
- Dashboard and auth
templates/index.html - Feature pages
templates - Theme controls
static/js/auth-theme-switcher.js
AI coding
- Chat orchestration
app.py - AI modes
app.py - AI providers
app.py - Code execution
app.py - File and video tools
app.py - Voice interface
static/js/codebuddy_voice.js
Learning features
- Learning tools
app.py - Karma and leaderboard
app.py - Live collaboration
app.py
Platform services
- Flask application
app.py - Accounts and recovery
app.py - Database adapter
appcore/db.py - Application database
Other components
- Developer
- Ollama
- Groq
- OpenRouter
- Piston API
- SMTP mailer
- Socket.IO
Connections 24
- Developer → Dashboard and auth: uses
README.md - Dashboard and auth → Flask application: submits requests
- Flask application → Accounts and recovery: handles accounts
README.md - Accounts and recovery → Application database: stores account data
- Flask application → Chat orchestration: routes chat
README.md - Chat orchestration → AI modes: selects mode
README.md - Chat orchestration → AI providers: requests completions
README.md - AI providers → Ollama: tries local AI
README.md - AI providers → Groq: falls back
README.md - AI providers → OpenRouter: falls back
README.md - Flask application → Code execution: routes execution
README.md - Code execution → Piston API: uses execution API
README.md - Flask application → File and video tools: provides tools
README.md - Flask application → Learning tools: provides learning features
README.md - Flask application → Karma and leaderboard: provides rankings
README.md - Flask application → Live collaboration: provides live rooms
README.md - Live collaboration → Socket.IO: uses realtime transport
README.md - Accounts and recovery → SMTP mailer: sends recovery mail
README.md - Flask application → Database adapter: initializes adapter
appcore/db.py - Database adapter → Application database: connects SQLite or PostgreSQL
appcore/db.py - Feature pages → Flask application: presents features
- Developer → Voice interface: speaks commands
README.md - Voice interface → Chat orchestration: queries assistant
- Developer → Theme controls: chooses theme
static/js/auth-theme-switcher.js