4 min readPost

Privacy-First Productivity App: Local-First, Zero Data Selling

Your study chaos, mood data, and focus patterns belong to YOU. Locked In is local-first by default — your data stays in your browser unless you explicitly sign in to sync it. Analytics never see your content, no AI training, no third-party sharing.

Most productivity apps: Your data = their asset. Stored on their servers. Analyzed. Sold. Subpoenable. Used to train AI.

Locked In: Your data = your data. Stays in your browser. Syncs only if YOU sign in — to your own account. Zero exceptions.


The privacy spectrum

App TypeData LocationWho AccessesYour Control
Cloud-first (Notion, Todoist, Motion)Their serversEmployees, partners, law enforcementDelete account = hope they delete
Hybrid (Obsidian Sync, some planners)Local + optional cloudYou + cloud providerMore control, but cloud default
Locked InYour browser (localStorage)Only youYou own the keys. Cloud = opt-in only.

What "local-first" means in practice

Default: local storage only

Open lockedn.in → Loads from cache → Works 100% offline
Type chaos → AI API call (prompt only) → Plan returns
Save plan → localStorage.setItem('lockedin-v3', ...)
Mood check-in → localStorage
Timer session → localStorage
Streak → localStorage
**Your saved data stays on your device unless you sign in.**

Optional sync: You decide, you control

  1. You click "Sign in" (Google or email) — not before
  2. Data travels over HTTPS and lands in your own Supabase account
  3. Supabase RLS — auth.uid()::text = user_id on every table, anon role = ALL GRANTS REVOKED
  4. Sign out → local data stays, cloud data untouched
  5. Clear all → wipes both instantly

What the AI sees (minimal, aggregated, never raw)

Each planning request sends:

{
  "mode": "study",
  "effort": "mid",
  "history": [...last 10 messages...],
  "userContext": {
    "streak": 14,
    "totalFocusMinutes": 1240,
    "blockCompletionRate": 87,
    "avgMood": 3.8,
    "avgEnergy": 4.1,
    "moodDirection": "improving",
    "preferredModes": ["study", "chill"],
    "totalPlansMade": 42,
    "alreadyPlannedToday": false
  }
}

Never sent: your name or email, the raw mood timeline (only averages and trend go), calendar events, keystrokes.

Mostly aggregated stats — plus your last 5 plan summaries + outcomes and your active goal titles, so plans adapt and aim. The AI knows how you're doing and what you're working toward, not who you are.


Sync details (for the technical)

In transit: HTTPS (TLS) on every request At rest (cloud): JSON rows in your own Supabase tables, isolated by Row Level Security At rest (local): browser localStorage (lockedin-v3) — never uploaded unless you sign in On sign-out: local data stays; your cloud copy stays in your account until you delete it

Result: your data only ever lives in your browser and in your own signed-in account — nowhere else.


Supabase RLS: Database-level enforcement

Every table has 4 policies (SELECT/INSERT/UPDATE/DELETE):

auth.uid()::text = user_id

anon role: ALL GRANTS REVOKED — zero anonymous access possible.

PKCE auth flow — no implicit flow token leakage in URLs.


What we DON'T do (ever)

PracticeLocked In
Sell data to third parties❌ Never
Train AI on your content❌ Never (only aggregated stats)
Share with advertisers❌ Never
Analytics on your content❌ Never (Vercel Analytics = page views only)
Access to data you never synced❌ Impossible (it exists only in your browser)
Anonymous access to synced rows❌ Impossible (anon grants revoked; RLS auth.uid() only)
"Legitimate interest" processing❌ Never

Verification you can do yourself

  1. Open lockedn.in in incognito
  2. "Start free" → "Continue as guest"
  3. Type something deeply personal
  4. Get plan → complete it → check streak
  5. DevTools → Network tab → Filter: "supabase" → Zero requests
  6. DevTools → Application → LocalStorage → lockedin-v3 → See exactly what's stored
  7. Close tab → reopen → data persists
  8. Sign in → Now Supabase requests appear (your account only, RLS-protected)

Local-first isn't marketing. It's verifiable architecture.


The "but convenience" counter-argument

"Cloud sync is convenient!"

Locked In gives you both:

  1. Guest mode — everything works locally, 5 free AI messages to start, zero friction
  2. Sign in — sync to your own account, same features, you choose when
  3. Sign out → back to guest, local data intact

No "create account to continue" walls. No "premium for sync." You own the data flow.


Try true privacy (30 seconds)

  1. lockedn.in → "Start free" → "Continue as guest"
  2. Type your actual chaos (grades, anxiety, burnout, ADHD)
  3. Get plan → complete it → mood check-in → streak
  4. DevTools → Network → supabase → Empty
  5. That's it. Your chaos. Your device. Your choice.

Locked In: The only productivity app where privacy isn't a feature — it's the architecture. Free, local-first, sync only if you sign in. Try it here — no account required.

— Locked In

More posts

Put it into practice

Plan your next study session with AI

Locked In turns your chaos into a deadline-paced plan — free to start, no credit card.

Try Locked In free