Skip to content
grossbytePublic

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

76 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐾 PetTrack

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.

License: MIT Node AdonisJS Vue


Screenshots

Activity feed — pet status cards with severity warnings, weather context and a unified timeline:

Activity feed

Pet management — multi-pet admin with target weights, species and more:

Pet management

Charts & insights — calendar heatmaps, weight trends with target bands, gap analysis, period comparisons and weather correlation:

Charts and insights

Triggers — map external hardware (Flic, Shelly, Aqara, Home Assistant…) to automatic events:

Triggers


Features

  • Unified event log — a single timeline of feeding, excretion, weight, note and photo events, 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 POST an identifier to the API; a configurable mapping turns it into the right event. See specs/templates/flic-script.md for 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.

Tech stack

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

Quick start (development)

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 dev

Open 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 with admin@pettrack.local / demo1234 to explore the seeded demo data.

Useful commands

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 commands

Production (Docker)

PetTrack 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 --build

See specs/deployment.md for environment variables, the update workflow and the backup strategy.

Documentation

The specs/ directory contains the architecture and design docs:

Contributing

Contributions are welcome — see CONTRIBUTING.md. For security reports, see SECURITY.md.

License

MIT © Christopher Groß

Screenshots use seeded demo data with fictional pets.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages