A self-hosted, multi-pet activity tracker — log feeding, litter/excretions, weight, notes and photos; get charts, insights and weather correlations; and wire up physical buttons or smart-home hardware to log events automatically.
Built generically: nothing about a specific pet is hardcoded — everything is configurable from the database, so it works for one cat or a whole menagerie.
Activity feed — pet status cards with severity warnings, weather context and a unified timeline:
Pet management — multi-pet admin with target weights, species and more:
Charts & insights — calendar heatmaps, weight trends with target bands, gap analysis, period comparisons and weather correlation:
Triggers — map external hardware (Flic, Shelly, Aqara, Home Assistant…) to automatic events:
- Unified event log — a single timeline of
feeding,excretion,weight,noteandphotoevents, each with an optional pet, subtype and tags. Soft-delete with a trash/restore flow. - Multi-pet & multi-user — unlimited pets (species, birthday, gender, target weight range, color, photo). Role-based access: admins manage everything, members log and edit events.
- Insights & charts (all computed from your own data — no AI/LLM APIs):
- Calendar heatmap of activity
- Weight trend with target band and week/month comparison
- Excretion gap analysis with severity warnings ("late"/"overdue")
- Period comparisons (week-over-week, month-over-month)
- Weather correlation (event rate by temperature band)
- Weather context — every event is automatically stamped with the local weather via Open-Meteo (free, no API key). Set your location once in the admin.
- External triggers — vendor-agnostic. Physical buttons or smart-home automations
POSTan identifier to the API; a configurable mapping turns it into the right event. Seespecs/templates/flic-script.mdfor a Flic Hub example. - Scoped API keys — hashed, per-scope keys (
events:create,triggers:fire) with per-key rate limiting for external integrations. - Audit log — every change (by user, API key or system) is recorded with a before/after diff.
- Data export — events as CSV and a full backup as JSON.
- i18n (English / German), dark mode, and an installable PWA.
| Layer | Technology |
|---|---|
| Backend | AdonisJS v7 (Inertia) |
| Frontend | Vue 3 (<script setup> + TS), Tailwind v4, Pinia, VueUse |
| UI | shadcn-vue (Reka UI), lucide icons |
| Charts | ApexCharts (vue3-apexcharts) |
| Database | SQLite via Lucid ORM |
| Auth | Session guard (UI) + scoped API keys (external) |
| i18n | @adonisjs/i18n + vue-i18n |
| Tests | Japa |
| Deployment | Docker Compose + Caddy |
Requires Node 24 (an AdonisJS v7 requirement). A .node-version file is included for fnm.
git clone https://github.com/grossbyte/PetTrack.git
cd PetTrack
# Node 24 (if you use fnm)
eval "$(fnm env)" && fnm use 24
npm install
cp .env.example .env
node ace generate:key # writes APP_KEY into .env
node ace migration:run
node ace db:seed # optional — demo pets, events & weather
npm run devOpen http://localhost:3333. Create the first account at /signup — the first user automatically becomes an admin. After that, public signup closes and further users are created from the admin UI.
Ran
db:seed? Log in withadmin@pettrack.local/demo1234to explore the seeded demo data.
npm test # Japa tests
npm run lint # ESLint
npm run typecheck # tsc + vue-tsc
node ace migration:fresh # reset the database
node ace weather:fetch-current # fetch current weather (also runs hourly via cron)
node ace list # all available commandsPetTrack ships with a multi-stage Dockerfile, a docker-compose.yml, and a Caddyfile for automatic HTTPS. A single volume holds the SQLite database and photo uploads.
APP_KEY=$(node ace generate:key) \
APP_DOMAIN=pettrack.example.com \
docker compose up -d --buildSee specs/deployment.md for environment variables, the update workflow and the backup strategy.
The specs/ directory contains the architecture and design docs:
specs/plan/00-overview.md— high-level plan, principles and non-goalsspecs/plan/02-data-model.md— tables, relations and indexesspecs/plan/03-api.md— all endpointsspecs/component-index.md— the component registryCLAUDE.md— a condensed architecture reference and gotchas
Contributions are welcome — see CONTRIBUTING.md. For security reports, see SECURITY.md.
MIT © Christopher Groß
Screenshots use seeded demo data with fictional pets.



