podruga.ai codebase
Overview
Each tenant gets complete isolation - its own database schema, user base, characters, subscriptions, and payment configuration - while sharing a single deployment. Adding a new app means DNS setup and a schema creation script. No code changes, no deployments.
The architecture was designed so the codebase never needs to know how many apps it's running.
Tech Stack
Frontend
- Vue.js + Quasar
- Socket.IO
Backend
- FastAPI
- PostgreSQL
AI / ML
- LLM integration for chat
- Voice cloning and TTS
- Image generation pipeline
- OpenCV for processing
Localization
- 11 languages, 33 locales
- Per-locale companion adaptation
- Locale-specific payment routing
- Regulatory feature gating
Scalable Multi-Tenant Architecture
A two-level tenancy system drives the isolation. Domain detection identifies the brand, locale detection routes to the correct database schema. Each locale gets complete data isolation - separate users, companions, subscriptions, payment history. Adding a new locale or brand is purely configuration, no code deployment required.
100% Localisation
3 brands, 11 languages, 33 isolated tenants. Every market gets a fully domestic product: UI, companion names and bios, chat and voice language, prices, and payment methods. Feature availability varies by locale to comply with regional regulations - a depth of localization competitors that stop at UI translation never reach.
Whitelabel Solution
The tenancy system, productized. A partner gets the complete product - chat, voice, image generation, payments - rebranded and running on their own domain. Because a whitelabel is just another tenant, spinning one up is configuration, not development.
Their Brand
Users sign up, chat, and pay under the partner's name. The platform stays invisible, and the audience the partner builds is theirs.
Zero Ops
Hosting, model serving, payment processing, support, and updates stay on the platform. Partners never touch code or servers.
Affiliate Economics
Whitelabel traffic flows through the same tracking and payouts as regular affiliate links, built on the fbm affiliate program.