modules, the patterns I reuse across builds
Pick a module.
Try it in 30 seconds.
The same patterns running in production at Broomstick Hub and Beeline Medical. Each engagement adds reusable modules to a shared library, the next build is faster because these already exist.
3 interactive · 9 coming online · no signup
operations
Review State Machine
interactiveDrag a deliverable through DRAFT → INTERNAL_APPROVED → SUBMITTED_FOR_CLIENT → CLIENT_APPROVED with revision branch back into the loop. Every transition writes an audit row.
Broomstick Hub
tryDaily Check-in (Office / WFH / Field)
interactivePick OFFICE / WFH / FIELD on first portal pageview each calendar day. Manager+ team view auto-updates. Unique constraint enforces one status per day per user.
Broomstick Hub · Beeline Medical
tryCredentials tracker with AI reminders
comingNPI / state license / DEA / board cert / CAQH / UK GMC / other, with 90/60/30/7-day expiry windows. AI-generated reminder copy via the HIPAA-aware wrapper.
Beeline Medical
Leave management with atomic balances
comingAnnual / sick / unpaid / parental / bereavement leave with pro-rated entitlements for new joiners. Balance updates run inside a Prisma transaction so balances can't desync.
Broomstick Hub · Beeline Medical
audit & compliance
Audit Log + Safe-Restore
interactiveTwo-tier retention (CONTRACT 7y / OPERATIONAL 1y). Allowlist-gated one-click restore on UPDATE rows. Edit something here, see the audit row appear, click restore, watch the original come back.
Broomstick Hub · Beeline Medical
tryDaily security-watch cron
comingSweeps the audit log nightly for anomalies (mass-signup spikes, DELETE bursts, stuck inquiries) and emails admins when something trips. Quiet when nothing is wrong.
Broomstick Hub
ai & guardrails
AI Intake Wizard
comingAdaptive client intake. Visitor types one or two sentences about their business, the wizard fetches their site, drafts a brand brief the PM walks into the discovery call already holding.
Broomstick Hub
HIPAA-aware AI Guardrail
comingTwo independent defenses on every Claude call: a PHI sniffer regex pre-persistence, and a wrapper that prepends a stop-clause to every system prompt.
Beeline Medical
auth & permissions
Identity & Auth
comingNextAuth v5 JWT with the security defaults that should be standard but usually aren't: lockout, breach-list password check, anti-enumeration, invite-only signup.
Broomstick Hub · Beeline Medical
Role hierarchy + permission guards
comingSTAFF < TEAM_LEAD < MANAGER < ADMIN role ladder plus an isSuperAdmin tier. Guards make permission errors loud and uniform.
Broomstick Hub · Beeline Medical
finance
Multi-currency finance core
comingEvery monetary row stores native amount + native currency + an FxRateSnapshot foreign key. Reports compute against the snapshot, never live FX.
Beeline Medical
FBR + EOBI tax engine
comingProperty-tested salary engine for Pakistan's FBR slabs and EOBI rates. Forward Gross→Net + bisection Net→Gross solver. 17/17 vitest property tests green.
Beeline Medical