Skip to content

Work / Plan-Kid / Architecture

Plan-Kid architecture

Nothing runs yet. There is no app code, only HTML designs. This page is the plan: a phone app, a small server that decrypts journal entries so Claude can write the weekly couple report, and paid services around it. The stack is not settled.

last verified 2026-10-30

Running cost today
$0
Nothing is built or deployed. The repo holds designs and notes only (CLAUDE.md).
Planned cost a month
$8 + Claude
The wiki says about $8 plus metered Claude calls. It does not say what the $8 covers, and no Claude rate is recorded.
Open decision
Which stack
Supabase and Clerk (FEAT-0003) or Firebase (the house scaffold). Task T003 decides.

How it fits together

Pick something a user does to see its path and what it costs.

On the phoneOur server (planned)Outside services (planned)Pattaya appPattaya appReact Native and Expo, iOS and Android. Not built.$0SupabaseSupabaseNot readClerkClerkSign-in. An Organization is a Household.Not readKey store (KMS)Key store (KMS)Not readClaude (Anthropic)Claude (Anthropic)Sonnet 4.5 for the briefing, chat and weekly report. Haiku 4.5 for cheap calls.Not readRevenueCatRevenueCatHousehold subscription and entitlementNot readPostHog and SentryPostHog and SentryUsage events and crash reportsNot readEAS and pushEAS and pushBuilds, updates, Expo notificationsNot readApp Store and Google PlayApp Store and Google PlayPayments and installs15% of each plan
Not read
one Sonnet call per couple per week, size not recorded
  1. Both partners answer four prompts in the app.
  2. It decrypts the answers in memory and writes a log row.
  3. It sends the text to Claude, which writes three short paragraphs.
  4. The report is saved to the journal.
  5. If only one partner answers, the app waits up to 24 hours, then makes a solo report.

Cost

Every number says where it came from.

ServicePays forTodayGrows withBasis
Pattaya appReact Native and Expo, iOS and Android. Not built.$0NothingAssumedNo code exists; CLAUDE.md
SupabaseNot readUsers, stored entries, function callsNot known
ClerkSign-in. An Organization is a Household.Not readActive usersNot known
Key store (KMS)Not readHouseholds and decryptionsNot known
Claude (Anthropic)Sonnet 4.5 for the briefing, chat and weekly report. Haiku 4.5 for cheap calls.Not readWeekly reports, chat messages, daily briefingsNot known
RevenueCatHousehold subscription and entitlementNot readSubscription revenueNot known
PostHog and SentryUsage events and crash reportsNot readEvents and crashesNot known
EAS and pushBuilds, updates, Expo notificationsNot readBuildsNot known
App Store and Google PlayPayments and installs15% of each plan soldSubscription revenueStatedwiki/concepts/architecture.md (before this rewrite)

What breaks when something fails

If this failsThe user seesTheir dataBasis
SupabaseNot written down.Journal and logs would be unreachable. No backup plan is recorded.Not known
ClerkNot written down. Likely no sign-in.Account data lives thereNot known
Key store (KMS)Weekly report and export cannot read entries. Not stated in the wiki.Safe but unreadableAssumed
Claude (Anthropic)Not written down. No fallback is planned for the report or chat.Journal text is held there only while a call runs, if zero retention is agreedNot known
RevenueCatNot written down.None held thereNot known

Where the data goes

Journal entriesPostgres, encrypted per entry. The server can decrypt for AI, export and legal requests, and logs each time.
AI chat threadsPostgres, per partner. Whether they are encrypted is not stated.
Cycle, mood, sleep and symptom logsPostgres, per partner. Whether they are encrypted is not stated.
Decryption audit logPostgres, shown to the user in Privacy settings
Subscription statusRevenueCat and the store

What we do not know yet

  • Nothing is built. Every part, flow and failure here is a plan from the wiki, not something read in code.
  • The $8 a month: the wiki gives no breakdown. It may be an Apple developer fee; this is not confirmed.
  • The stack is unsettled. FEAT-0003 says Supabase and Clerk; the house standard scaffolds Firebase. Task T003 is open, so this page changes when it closes.
  • The name differs: the repo is plan-kid, the product is Pattaya (task T004).