HomekeeperACTIVE
Architecture
How it’s put together
Browser API Data
┌────────────────┐ ┌───────────────────┐ ┌──────────────┐
│ React + TS │ ───► │ Express + TS │ ──► │ MongoDB 8 │
│ React Query │ ◄─── │ Passport, JWT │ ◄── │ (Mongoose) │
│ Tailwind │ │ cookies + CSRF │ └──────────────┘
└────────────────┘ └───────────────────┘
╎ planned
▼
┌ ─ ─ ─ ─ ─ ─ ─ ┐
╎ S3 · OCR ╎
╎ search ╎
└ ─ ─ ─ ─ ─ ─ ─ ┘
It’s one monorepo with three workspaces: frontend, backend and shared. The shared one is just types, so the shape of an API response only gets written down once.
Everything hangs off the household. Users and households are many-to-many, and each household has exactly one owner. A household holds assets, manuals, tasks and documents. Assets are the thing I want to pivot on: pick the furnace and see its manual, its tasks and its notes in one place.
User ◄──────► Household ──┬── Asset ──┬── Manual
(many to many, one owner)│ ├── Task ──── references Manual
│ └── Document
├── Manual
├── Task ──── assigned to User
└── Document
So far only User, Household and Invitation exist. The rest comes with manuals and tasks.