Prajna
In Google Play reviewAI storybook and creativity app for kids aged 3–12. Built as founding engineer at XXAVI AI Tech: backend, admin panel and Android app.
Problem
AI image generation is slow (30 seconds to 10 minutes), expensive and unreliable — and everything shown to a child has to be safe.
What I built
A Postgres-backed job queue (FOR UPDATE SKIP LOCKED behind an outbox dispatcher), so no paid job is lost between the database and the queue. Every job saves after each step, so a crash or deploy resumes instead of paying again. Failover across 3 AI providers, and a credit ledger that can't double-charge or double-refund.
| Cost per 7-image story | $0.11 — down 77% from $0.48 |
| AI pipelines | 9, on one resumable engine |
| Providers | OpenRouter, Google, OpenAI — automatic failover |
| API surface | 130+ typed endpoints · 48 tables |
| Tests | 3,600+ across backend, app and admin |
TypeScript / Node.js / Express / oRPC / Zod / Drizzle / PostgreSQL / Valkey / AWS / React Native / Expo / RevenueCat