The problem
Bringing together your whole life in one place that’s easy to manage
People keep their lives in a dozen apps: a journal here, a habit tracker there, a budget spreadsheet, a meal log, a planner.
Each one holds deeply personal data like symptoms, medications, money and private writing, and the companies behind most of them can read every bit of it. You don’t really own your data either. I wanted a place where I could quickly write down everything going on in my life, then turn that record into separate views that help me organize, track and work toward my bigger goals.
Zero-knowledge architecture
The core design goal was simple: nobody can read a user’s private entries without that user’s password. Not me as the site owner, and not a hacker who somehow gets a copy of the database. Here’s how I made that work.
Keys
- Each account gets a random 256-bit master key, created in the browser and kept as a non-extractable Web Crypto key. Page code can use it, but can’t export it.
- The master key is wrapped by a key derived from the password (PBKDF2-SHA256, 600,000 iterations, random 16-byte salt), and separately by a recovery key shown once at sign-up.
- Changing a password just re-wraps the master key: instant, with no data re-encrypted.
The server never receives the password
- Sign-in sends a separate value derived from the password with a different salt, so it can’t unlock the master key. The server stores only a bcrypt hash of that value.
- Recovery works the same way: the server checks a proof of the recovery key, never the key itself.
Encryption
- AES-256-GCM with a fresh random IV for every write.
- Each entry’s ciphertext is bound to its ID as authenticated data, so a malicious server can’t swap one entry for another or replay an old version. Entry IDs are reserved and used up once.
- Settings, topic names, dose records and finance rows are each sealed and bound to what they are.
Passkeys with the WebAuthn PRF extension
- A passkey can open the journal, not just sign in. The authenticator’s PRF secret wraps the master key, and that secret never leaves the device or reaches the server.
Security engineering
Split-token sessions
Selector plus verifier, with only a hash stored, so a leaked sessions table can’t be replayed. Idle sessions expire, and sign-ins in flight are cancelled when a user signs out everywhere.
TOTP two-factor
Single-use codes, backup codes, and lockouts that count attempts before the slow check, so parallel bursts can’t slip past.
Strict CSP with Trusted Types
No inline scripts, and every HTML sink goes through a sanitizing policy.
Per-browser consent
Anything that sends data off the device (calendar sync, AI features, a public shelf) needs consent in that browser, so a replayed server value can’t silently switch it back on.
Shared rate limits
Rate limits and lockouts are shared across server instances via Postgres, so the app scales horizontally without weakening them.
Quiet logs
Logs never contain account IDs, IPs or emails.
Scale and reliability
Schema-per-user PostgreSQL rather than row-level security, with support for sharding user schemas across databases.
An encrypted local cache in IndexedDB with incremental sync driven by a Postgres trigger, so returning users download only what changed.
Password hashing in worker threads, single-statement capped writes, connection-pool recycling, and load tests for multi-instance behaviour.
Design
The look of the app mattered as much as anything in it. I wanted it minimal, design-forward, pleasant to look at and personal to each user. It had to be something I actually wanted to open, not another plain, utilitarian journal. Getting that right has been the biggest challenge of the whole build. A curated set of background images and colors lets each person make it their own. Light and dark themes make it work for more people, though each one brought its own contrast and accessibility problems to solve. I also kept the accent color in check, so the brand stays consistent across color, type and every other detail.


Stack
Client
- React 19
- TypeScript
- Vite
- Zustand
- styled-components
- TipTap
- dnd-kit
- Web Crypto
- WebAuthn
Installable as a PWA, with fonts and icons bundled.
Server
- Node
- Express 5
- PostgreSQL
- Prisma
Stores ciphertext only, scaled across instances.
Shared
- TypeScript
- Zod
- Crypto
- Types
Structured so a React Native app can reuse the business logic.
What I learned
The hardest problems were design and deciding which features to build. I used AI to build faster, because a project this big is a huge amount of work for one developer, even with AI helping. AI saved me time, and it helped me build the more advanced encryption features.
My first build was a mess. As I went, I learned how to steer AI: getting it to write unit tests so the code stayed reliable, holding it to rules that kept the code modular, building review and double-checking into the process, and leaning on a clear design system. This was my first big AI project and I made a lot of mistakes. Here’s what I’d do differently:
- Build fast, but build once. Plan more than the base architecture. Decide what your core features are and stick to that scope. Every refactor risks leaving behind unused code that’s hard and costly to clean out.
- Have your design system in place first. If you’re unsure about something, make a quick bare-bones interactive prototype, then move to full mockups, then build. Don’t jump straight into code.
- Use modular, atomic design, and tell the AI. Spell out the rules for building that way. Components stay smaller, easier to read and easier to maintain.
- Test, review, test again. Build a review and test plan into every major feature and every release.
My main takeaway is how to plan, structure, build and grow an app from early prototype to beta with AI speeding things up. That takes CI/CD, separate development and production environments, a strong grasp of systems, and clear code structure rules that you and the AI both agree on and follow. When you’re building with AI, process and architecture matter more than anything else