Skip to main content
Krakenserv

01 — The Problem

Conventional habit trackers only record past behavior with passive checkboxes. Without committing concrete actions the night before, daily decision fatigue breaks consistency long before a 31-day cycle finishes.

02 — Architecture & Flow

Decoupled TypeScript monorepo pairing a React 19 + Vite + Tailwind CSS v4 SPA (deployed on Vercel at habits.krakenserv.dev) with an Express 5 + Zod + Prisma ORM REST API backed by PostgreSQL with dual standard and Neon serverless adapter support.

01 Auth & Multi-Tenancy

JWT authentication with sessionVersion enforcement, DB-backed rate buckets, and SHA-256 password reset tokens.

02 31-Day Sprints & Pillars

Single active cycle per user with calendar-idempotent DailyLog creation for today and tomorrow across 8 seeded pillars.

03 Close-Day Gatekeeper

PATCH /api/days/:id verifies tomorrow's 8 pillars are planned before sealing today's DailyLog as immutable.

04 HardwareViz Telemetry

Custom SVG/CSS visualizations (CapsuleBarChart, SegmentedBattery, ConcentricRing, DotMatrixRibbon) across light and dark modes.

03 — Technical Solution

Built a 31-day sprint state machine (Cycle → DailyLog → PlannedAction) enforced by a Close-Day Gatekeeper that blocks locking today's log until all 8 core pillars have actionable plans for tomorrow, keeping closed days immutable.

04 — Production Results

  • Strict user-scoped multi-tenant isolation across every cycle, daily log, action, and analytics endpoint with JWT session-version checks.
  • Hardened password recovery using 32-byte CSPRNG tokens, SHA-256 storage, 15-minute TTL, anti-enumeration responses, and atomic single-use claims.
  • Verified by a 4-tier E2E test suite with 52 passing specs against PostgreSQL covering validation boundaries, isolation, and sprint rollover.

From Passive Logging to Proactive Execution

Server-enforced daily discipline

Proactive31 keeps its core planning invariants inside the API and database layer rather than relying solely on client-side state:

  • Calendar-idempotent planning: POST /api/days and per-(userId, logId, categoryId) upserts prevent duplicate daily logs or conflicting pillar goals when switching between today’s execution and tomorrow’s plan.
  • Closed-day immutability: Once DailyLog.isClosed becomes true, the backend rejects any attempt to create, edit, or delete planned actions on that historical log.
  • Dual-mode Modular Bento UI: Warm stone light mode and obsidian-violet dark mode powered by bespoke SVG hardware-telemetry primitives with zero external charting overhead.

Live deployment

Deployed in production on a Krakenserv subdomain. You can explore the full application flow directly in your browser.

habits.krakenserv.dev

Open live app

05 — CONTACT & SCOPE

Shall we talk about your next system?

Share a short brief of what you want to launch or fix. You will get a clear technical approach, realistic timeline, and next steps.

Project type

Estimated budget

Target timeline

Spam-protected with Zod boundary validation and Cloudflare Turnstile.

Direct technical reply within 24 business hours.

GitHub ↗ LinkedIn ↗