ComingUp ComingUp
CalmRota rota planning for UK Kids carehomes

CalmRota rota planning for UK Kids carehomes

Turnkey compliance-first rota SaaS for UK children's residential care homes.

rich Posted by rich

Is this your project? Ask us to take it down

Gallery

CalmRota rota planning for UK Kids carehomes

About

What it is

A complete, production-deployed B2B SaaS that replaces spreadsheet-based staff scheduling for UK children's residential care providers. Managers build multi-week rotas across

several homes from a shared staff pool, and the system enforces the sector's scheduling rules automatically rather than leaving them to be checked by eye.

The problem it solves

Children's homes schedule staff in Excel, then re-key it into HR systems. There's no automated validation of staffing ratios or shift rules, contracted hours are tracked by hand,

managers have no cross-site view, staff can't see their own shifts without asking, and every swap is renegotiated over WhatsApp. The sector is Ofsted-regulated, so getting staffing

wrong carries real compliance risk.

The moat: a real rules engine, not a calendar

The hard part isn't the UI, it's the constraint solving. A 1,379-line generator fills a 4-week rota in one click while respecting:

- Hard blocks — shift transition rules (after a night shift, only another night), same-day combinations, per-staff "cannot work" rules, approved leave with AM/PM half-days, max

consecutive nights, contracted-hour caps for visa-restricted staff, placement access, cross-site limits

- Soft preferences — staff and company prefers/avoids, scored and honoured where possible, optionally specific to a day of the week

- Fairness — hours pacing against a 40h week, consecutive-day fatigue penalties, shift-type variety, and randomised selection among near-equal candidates so the same people don't

always get the nights

Rules carry across sites and across rota boundaries — the generator reads the previous rota so day one isn't a blind spot.

Features

Rota planning — 1–8 week rotas, draft→publish workflow, three view modes with saved preferences, one-click generation, manual override, clone, clear-week, PDF export, per-date

staffing overrides for holidays, and separate on-call vs on-site assignments.

Staff management — full CRUD, CSV import, email invitations, contract types (contracted, zero-hours, bank, agency), multi-site assignment, availability patterns including

alternating weekends, incompatible-staff pairs, profile photos, TOTP 2FA.

Annual leave — hours-based rather than days (the care-sector standard), leave types, per-staff balances, carryover with year rollover, request/approve workflow with half-days, and

conflicting shifts surfaced at approval. Feature-flagged per customer.

Shift swaps — staff post a shift, a colleague picks it up, then a manager approves. Conflict-checked against the full rules engine, with a complete audit trail.

Agency staff — external agency companies as first-class tenants. Agency users log in and see only their own assigned shifts, and can name the worker covering each one.

Roles & multi-tenancy — owner → admin → manager → staff → agency, with managers scopeable to specific sites. Company isolation is enforced in Postgres via row-level security, not

application code. User limits enforced by database triggers.

Billing — Stripe end to end: checkout, customer portal, webhooks, per-site pricing with proration on upgrade and period-end reductions on downgrade, plus trial handling.

Admin console — platform-level dashboard with customer stats and MRR, company and trial management, per-company feature flags, a Stripe test/live toggle, a WYSIWYG email-template

editor with live preview and test sends, and encrypted off-site backups.

Tech

Next.js 16 · React 19 · TypeScript · Tailwind 4 · Supabase (Postgres, Auth, Storage, RLS) · Stripe · AWS SES · Backblaze B2 · jsPDF · TipTap

Scale: ~29,600 lines of TypeScript across 92 files, 31 pages, 27 API routes, 42 database migrations, 28 tables. Automated nightly backups, AES-256-GCM encrypted.

What's included

Full source in a private GitHub repo with complete history, all 42 migrations, the calmrota.com and app.calmrota.com domains, and internal documentation — the original PRD, a

security audit with findings and resolutions, and a detailed development history covering why the architecture is shaped the way it is.

Current status

Built, deployed and running. It has previously run live rotas for real UK care providers, so it's been validated in production rather than only in theory. It is not currently

generating revenue — the original users have moved on, and the project is being sold rather than taken further.

Ready for a buyer who wants a finished product in a regulated, underserved niche without an 18-month build.

Comments (0)

No comments yet. Be the first to comment!