Project 47 of 84
Hullstock
hullstock is a deliberately narrow alternative to Sortly: inventory tracking for a small workshop that keeps supplies across a few storage locations, answering what is in stock, where it lives and what needs reordering.
- Status
- Shipped
- Last activity
- 2026
- Stack
- TypeScript
- Node
- pnpm workspaces
- Turborepo
- Next.js
- React
- Tailwind CSS
- shadcn
Highlights
- Built hullstock, a production inventory app for small workshops (Sortly alternative), from first commit to live production in about three weeks: Next.js 16 web, Hono/zod-openapi API, pg-boss worker and Supabase Postgres/Storage across 195 commits and 22 PRs.
- Designed an append-only stock ledger where a Postgres trigger is the only writer of on-hand levels, with lint and guardrail rules blocking any other write path and a documented restore procedure that rebuilds the projection.
- Ran a multi-agent consensus planning loop (Planner, Architect, Critic, independent security reviewer) that produced two ADRs, 16 handoff docs and a decision log, with a citation checker validating 746 code citations.
- Implemented Zitadel OIDC sign-in through a hardened session endpoint: purpose-bound JWE cookies with key rotation, refresh-token revocation on logout, OAuth error allowlisting, and a session-expired prompt that replays parked, version-checked mutations.
- Built and security-reviewed an on-behalf-of token exchange service (STS) on an exact-pinned internal package, with replay cache, per-IP rate limiting and a digest-pinned Docker image, while deliberately gating real keys and deployment behind a signing-key backup gate.
- Shipped CSV import with validated preview and row-level errors, item photos with magic-byte checks, printable QR labels, camera scanning with a self-hosted ZXing WebAssembly fallback, and formula-safe CSV export.
- Enforced least privilege in Postgres: a dedicated worker role with RLS policies, RLS-without-policies as a Data API guardrail, revoked PUBLIC EXECUTE, and an OpenAPI-derived role-matrix test for owner, staff and viewer.
- Deployed to production across Vercel, CapRover and Supabase.com with Terraform-managed Zitadel and SES, ECR release images checked before push, a Cloudflare edge lock, verify-full Postgres TLS and a /health/deep gate covering database, ledger triggers and worker heartbeat.
- Contained a leaked legacy Supabase secret by proving a forged service_role JWT still reached Storage after disabling legacy keys, then revoking the signing key and verifying the fix.
- Added a Playwright suite with a typed testid mirror, page objects and end-to-end journeys running against a real local Zitadel, plus a single verify gate covering format, lint, typecheck, build, Kubb and migration drift, unit, integration and guardrail checks.