Obsidian_vault/30 - Projects/Tia.md
2026-06-07 14:00:01 +00:00

50 lines
2.6 KiB
Markdown

---
type: project
status: active
domain: [saas, ai, software, startup]
tech: [Next.js 16, PostgreSQL, pgvector, Drizzle, LiteLLM, Cloudflare R2, Resend, Tailwind v4, Dokploy]
commits: 406
url: https://tia.manohargupta.com
tags: [project, startup, flagship]
---
# 👶 Tia — Family Baby-Tracking SaaS
> The flagship product. A baby/parenting tracker: **feeds, diapers, sleep, vaccinations, growth, photo memories**, an **AI assistant**, and shared **family circles** — with real **billing (₹)** and an admin observability suite. Live at [tia.manohargupta.com](https://tia.manohargupta.com).
## At a glance
- **406 commits** · active flagship · production with paying tiers
- **Stack:** Next.js 16 (App Router) · PostgreSQL 16 + pgvector · Drizzle ORM · LiteLLM → MiniMax · Cloudflare R2 · Resend · Tailwind v4 · Dokploy
- **Auth:** DB sessions + httpOnly `tia_session` cookie
## Feature map
| Surface | What it does |
|---|---|
| **Quick Log / Home** | One-tap logging of feeds, diapers, sleep; AI card; baby card (at `/home`) |
| **AI chat** (`/ai`) | LiteLLM→MiniMax assistant over the child's data; sessions sidebar |
| **Medical** | Vaccination tracking |
| **Growth** | Growth charts |
| **Memories** | Photo gallery (R2-backed, via `/api/img` proxy) |
| **Circles** | Shared family circles + circle chat |
| **Settings** | Theme picker, invite members, tier |
| **Admin** | Health, Errors, Audit Log, AI Usage observability + billing/subscriptions |
## Business model
- Tiers: **free** vs **pro** (`families.tier`); free guardrails = 1 GiB storage / 2 members per family
- Billing in **₹**: subscriptions, dunning, churn alerts, webhook health; premium storage cap 50 GB
- Payment abstraction = `isPaidFamily(tier)` ([[Decision Log#TD-002]])
## Knowledge base
- 📖 [[Tia - Origin Story]] — why it exists
- 🎯 [[Tia - Positioning]] — vision, messaging, who it's for
- 🏗️ [[Tia - Architecture]] — the technical system
- ⚖️ [[Tia - Decisions]] — key engineering/product calls
- 🗺️ [[Tia - Roadmap]] — shipped + next
- ❓ [[Tia - Open Questions]] — what's undecided
## Progress history (from commits)
- **early** — initial setup, Dockerfile, Node 22 / pnpm 11
- **May 2026** — core build, route-group split, quota/member limits, SEO overhaul, AI chat fixes
- **late May** — migration journal fix, admin observability suite (health/errors/audit/AI)
- **Jun 2026** — full billing: subscriptions, real ₹ revenue, dunning, churn, storage caps
## Related
[[MOC - Startup]] · [[Family Overview]] · [[Decision Log]] · [[Self-Hosting]] · [[Profile]]