>Stable Manager
$ cat ./stable-manager-project.md
Cost tracking for horse owners, works offline
Project Overview
Stable Manager keeps track of what two horses cost: one of our own and one boarding horse. Every cost is booked with a date, category and quantity, and split between the horses by percentage. There's a desktop dashboard with monthly charts and reports, and a mobile app built for adding costs in the stable itself, even without a connection. It's a private app: sign-up is closed and accounts are created from the command line.
What's in it
Cost splitting
Each cost is allocated to one horse or split across both by percentage, so per-horse totals stay correct even for shared hay or a farrier visit.
Quick add from inventory
Inventory items carry a default price and unit, so everyday costs (hay, feed, bedding) take one tap on the phone.
Works offline
The mobile app caches the last data and queues costs added without a connection, then sends them once it's back online. A status icon shows the connection state.
Dashboard & insights
Monthly totals, costs per horse and per month in Recharts graphs, and month-over-month insights on mobile.
Private by design
Better Auth with username and password, sign-up closed, sessions kept for a month on the phone. Every page and server action checks the session.
Tested & monitored
Vitest unit tests plus database tests against a real Postgres, and a public health endpoint for uptime checks.
Built with
Languages & Frameworks
- TypeScript
- Next.js 16
- React 19
- Tailwind CSS 4
- Prisma 7
- PostgreSQL 16
Tools & Services
- Better Auth
- shadcn/ui
- Recharts
- date-fns
- Vitest
- Docker
- Vercel
Repository activity Next.js app
- commits
- 110
- in the last 30 days
- 16
- active since
- Jun 2026
- last commit
- 4 days ago
- Dependencies updated
- No open security alerts
Private repository: numbers as of 24 November 2026
Also in Drupal
Shared Costs · Drupal 11 module
Shared Costs is the Drupal version of Stable Manager, open source on GitHub: a Drupal 11 module, plus four recipes and a theme that rebuild the app with configuration only. Working offline, which the Next.js app does as a PWA, isn't part of it.
Splits to the cent
A field type splits each cost over the horses, equally or by percentage, in whole cents: 12.35 over two horses is 6.18 + 6.17, never 6.18 + 6.18. Views adds the parts up per horse and per month.
Four recipes, no custom code
The app itself (stable_manager), a JSON:API for apps like the mobile one (stable_manager_api), a demo with a year of example costs (stable_manager_demo) and a Dutch translation (stable_manager_nl), on a theme generated from core's Starterkit.
From dashboard to CSV
Charts, a monthly overview, a printable statement per horse, private receipts, a CSV download and "add as expense" from the inventory, with HTMX navigation and dark mode.
Tested & checked
PHPUnit (Unit, Kernel, Functional and in the browser) with an axe scan of every page, visual regression tests with Playwright, PHPStan level 8 and about 95% coverage.
Drupal stack
- Drupal 11
- PHP 8.3+
- HTMX
- Views
- Recipes
- Twig/SDC
- Chart.js
- PHPUnit
- axe-core
- Playwright
- PHPStan
- GitHub Actions
Repository activity Drupal version
- commits
- 27
- in the last 30 days
- 27
- active since
- Nov 2026
- last commit
- last week
Public repository on GitHub: numbers as of 24 November 2026