A puppy training and care companion for everyone who looks after the dog.
Toe Beans is a mobile-first, installable web app (PWA) for planning short, reward-based training sessions, recording how they went, and keeping puppy care (vaccinations, medication, vet visits) in one place. Caregivers in one household share it across their phones, and it supports several dogs from the start, each with its own history. It's live at toebeans.co.za.
It rests on three pillars: Plan (what should we do today?), Track (how is our puppy progressing?) and Discover (what else could we try?).
Progress is in the backlog, and what each release changed is in the changelog.
- Sign-in and households: Google or email sign-in, a household shared by several caregivers, invitations by email or by a link that expires and can be revoked, owners and members.
- Dogs: several dogs per household, each with a profile photo, its own history, and Training and Care tabs on its profile.
- Exercise library: a curated, reviewed set of reward-based exercises across nine skill areas, the household's own exercises beside them (planned, logged and reminded the same way), and a shared cue dictionary the household edits.
- Plan: one-off and repeating training sessions, up to several times a day, in a week view.
- Today: what's planned, overdue, done and skipped, with care coming up in the next week.
- Quick log: record a session in under 30 seconds, with an optional outcome, emotional state, environment, duration and notes.
- Training goals: per dog and exercise, a stage (Introduced, Developing, Reliable) and where, set by the caregivers and never moved for them, with recent practice and the goal's history. Move on to somewhere new once it's reliable.
- Last 7 days: on each dog's profile, the days practised, how the plan went and how each practice went, with Not assessed counted as itself.
- Ideas to start with: exercises suited to the dog's age and what it has started, and things to ask the vet about, never with dates. Suggestions, not a programme, and only reviewed ones.
- Behaviour journal and History: events alongside training logs and done care, filtered by dog, type, exercise and date, with soft delete and Undo.
- Care: a calendar of vaccinations, medication, vet visits and other care, with the next one planned when you mark one done; each dog's health info, dated health notes and weigh-ins in kg; and the household's contacts (vet, groomer, daycare and more), with a button to call and Directions.
- Reminders: Web Push for planned sessions and care, delivered while the app is closed; tapping one opens the item. Quiet hours per person hold care reminders and skip training ones.
- Your data: owners download the household's records and photos as a ZIP, and anyone can delete their account. The privacy policy and terms are accepted before you start.
- Installable PWA: shortcuts, an offline shell and banner, failed saves kept for retry, and edits from two phones that never silently overwrite each other. Every list sorts either way, remembered on the phone, and the phone's Back closes an open sheet before it leaves the page.
- Practice is not performance. Logging a session never requires claiming success, "Not assessed" is the default outcome and is never counted as a success, and a goal's stage is the caregivers' call, not a score.
- Kind training. Content favours reward-based, gradual-exposure methods. Care milestones are reminders you configure, not medical advice.
- Reliable reminders. Web Push notifications arrive even when the app is closed.
- Your household's data stays in your household. Every read and write is checked against it.
- SvelteKit 3 full-stack app, with a framework-independent server
core (
packages/backend) and shared Zod contracts (packages/contracts) - MongoDB, Tailwind CSS 4 with shadcn-svelte, Hugeicons
- Vitest, Testcontainers and Playwright; one Docker image for the app
- Android + Chrome as the primary platform; other browsers are best effort
In production the app runs on Google Cloud Run in Johannesburg behind a Cloudflare Worker on
toebeans.co.za, with MongoDB Atlas in Cape Town, photos in Cloudflare R2, sign-in through Auth0,
email through Resend, error reports in Sentry and uptime checks in Better Stack. Cloud Scheduler
calls the reminder tick every 5 minutes. A nightly GitHub Actions job backs up the database and
photos to R2, and a spending cap takes the app down if the month's GCP spend reaches its budget.
Pushes to main (by pull request from develop, once CI passes) deploy through the
Deploy workflow after the owner approves; it signs in to GCP by
Workload Identity Federation, so the app's secrets stay in GCP. infra/ has the provisioning
scripts, the Worker, the backup and the spending cap.
You need Node 24 or later, pnpm 10 and Docker.
pnpm install
cp .env.example .env # local settings; sample values only
pnpm compose up -d --wait # MongoDB (replica set), a mock sign-in provider and SeaweedFS in Docker
pnpm dev # http://localhost:7877Signing in locally goes through the mock provider: type any user name, and claims such as {"email": "sam@example.com", "email_verified": true, "name": "Sam"}. To sign in with the Auth0 dev tenant instead, set OIDC_* in .env (see .env.example and docs/runbooks/auth0.md).
Use pnpm dev --host to open the app from a phone on the same Wi-Fi, at one URL on every device:
- Point
toebeans.testat the dev machine:address=/toebeans.test/<LAN IP>in the network's dnsmasq. If dnsmasq runs on the dev machine and you add a hosts-file entry, give it the LAN IP, not127.0.0.1: dnsmasq serves/etc/hoststo the network too, and phones would get their own loopback address. - Serve https, so phones get a secure context (the service worker, install and push need one):
mkcert -cert-file .certs/toebeans.test.pem -key-file .certs/toebeans.test-key.pem toebeans.test localhost 127.0.0.1 ::1, then setDEV_HTTPS_CERTandDEV_HTTPS_KEYin.env(.env.example). Install mkcert's root CA (mkcert -CAROOT/rootCA.pem) on each phone as a CA certificate (Android: Settings → Security → Encryption & credentials → Install a certificate). Never share that CA's key. - Set
PUBLIC_BASE_URL=https://toebeans.test:7877and sign in through the Auth0 dev tenant, since the mock provider only listens on localhost. - For reminders, put a lasting key pair in
.env:pnpm --silent vapid >> .env. Without one, each server start makes a new pair and phones must turn reminders on again. The dev server sends due reminders itself every 5 minutes (TICK_INTERVAL_MINUTES).
Without step 2 it works over http (PUBLIC_BASE_URL=http://…), but only pages and sign-in.
Dog photos go to apps/web/.data/photos unless PHOTO_STORE=s3 points them at the compose
SeaweedFS (an R2 stand-in), and email is printed to the terminal unless EMAIL_SENDER says
otherwise (mailpit for a local inbox, resend for real mail). .env.example explains each
setting.
| Command | What it does |
|---|---|
pnpm lint |
ESLint (including the architecture layer rules) and Prettier |
pnpm check |
Type-check every package |
pnpm test |
Unit tests, including the exercise library gate |
pnpm content:check |
The content gate alone: exercises and care prompts (authoring guide) |
pnpm test:integration |
Integration tests against MongoDB in Docker |
pnpm test:e2e |
Playwright on emulated Galaxy S23 FE and Redmi Note 12 Pro (needs pnpm --filter @toe-beans/web exec playwright install chromium once) |
pnpm seed:household [email] |
A household with two busy years of records in the dev database (never prod) |
pnpm build |
Production build (apps/web/build) |
pnpm landing:shots |
Retake the landing page's screenshots of the app (edge) |
pnpm vapid |
Print a new VAPID key pair for Web Push, for .env |
pnpm release <rc|final|patch|minor|major> |
Bump the one version in every package.json and date the changelog (releasing) |
pnpm compose --profile app up --build -d --wait |
The app image on http://localhost:3000, with MongoDB |
If port 27017 or 3000 is taken, set MONGO_PORT / APP_PORT (and the port in MONGODB_URI) in
.env.
| Path | Holds |
|---|---|
apps/web |
The SvelteKit app: pages, route handlers, UI components |
packages/backend |
Domain, use cases, persistence and HTTP handlers; no SvelteKit imports (layer rules) |
packages/contracts |
Request/response schemas and problem types shared with the browser |
content |
The exercise library and the starter plan's care prompts (YAML), and their sources (authoring guide) |
docker |
Dockerfile and local compose |
infra |
Production: GCP provisioning, the Cloudflare Worker in front of Cloud Run, the backup, the spending cap, the pentest setup and the retired holding page |
tools |
The release script |
.github |
CI, deploy, the nightly backup and Dependabot |
docs |
Requirements, architecture, UI design, backlog, the security audit, the code review, the data inventory, the privacy policy and terms sources, and runbooks (sign-in, monitoring, backups and restore, releasing and more) |
spikes |
Throwaway de-risking experiments, each with its own README |
MIT © 2026 Veli Gebrev