All software

Encapsulate

A second-brain notes app where objects can live inside other objects as public or private members, so a song can be visible only from its album.

Status
In development, foundations done
Role
Solo project
Built with
TypeScript, React 19, Hono, Postgres, Drizzle, Railway

Encapsulate is a personal knowledge app in the spirit of Notion, Obsidian, and Capacities. Its one twist comes from programming: objects can contain other objects as public or private members. A song can belong to an album and be visible only from that album, the same way a private field is only reachable through its class.

How it’s built

  • Front end: React 19 with TypeScript and Vite, using TanStack Query for data fetching.
  • API: Hono on Node 22, with a typed client shared with the front end so requests and responses are checked end to end.
  • Data: Postgres 16 through Drizzle ORM, with full-text search on tsvector.
  • Shared schemas: Zod schemas in a shared package used by both the server and the web app.
  • Sign-in: Google sign-in with server-side sessions and an email allowlist.
  • Hosting: a single Docker image on Railway, where the server also serves the built web app and runs migrations on deploy.

Where it stands

The foundations phase is done: the monorepo, database, auth, and deployment pipeline. Object nesting and visibility rules are the next phase.