Don't just track what you pay. Remember why you pay for it.
Most subscription trackers are a list of prices. Recurly is a list of reasons. When you subscribe, you write down what it was for. When the renewal comes round, Recurly shows you that sentence next to what actually happened since: whether you used it, what the price did, what leans on it. Then you decide.
It runs on your own machine, stores everything in one SQLite file, and makes no outside requests.
A record of why. Each subscription has a Black Box: why you took it, what it was meant to achieve, whether that is done, what depends on it, how hard it is to cancel, and a timeline of everything that has happened to it.
A decision before each charge. A few days ahead of a renewal (three weeks for yearly plans, a few days before a trial converts) Recurly opens a decision. It shows your own words, your usage and the price history, and asks: keep, pause, cancel or decide later. Your answer and your reason go on the timeline and come back at the next renewal.
Simulate cancelling. See what you would keep per year, what would be lost or disturbed, and the facts that point each way. It lists facts and does not score them. If you go ahead, a checklist covers the people, files and content that depend on it.
"Why do you still have this?" If a subscription's purpose looks finished and you have stopped using it, it appears in a short review. The exact rule is in docs/ENGINE.md.
Passports. Every subscription exports as a plain JSON file with everything you recorded. Import them back, on this instance or another. The format is documented in SCHEMA.md and has a JSON Schema.
You need Python 3.11+ and Node 20+. No Docker.
git clone https://github.com/LwkMoon/recurly.git && cd recurly
python3 -m venv .venv
. .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e "server[dev]"
cd web && npm ci && npm run build && cd ..
cd server && python -m recurlyOpen http://127.0.0.1:8000. The first account you create is yours. If you have make, make install && make run does the same.
To look around with sample data first:
cd server && python -m recurly.seed # [email protected] / demo-password-1The demo dates are relative to today, so it always looks current. --reset rebuilds that one account and leaves others alone.
Settings are environment variables. Copy .env.example to .env in the repo root and Recurly reads it on start. Real environment variables win over the file.
| Variable | Default | What it does |
|---|---|---|
RECURLY_DATA_DIR |
./data |
Folder for the SQLite file, recurly.db. Relative paths count from where you start the server, so following the steps above it is server/data/. Startup prints the exact path. |
RECURLY_DATABASE_URL |
unset | Use another database. Overrides the data folder. |
RECURLY_STATIC_DIR |
web/dist |
Where the built frontend is served from. |
RECURLY_COOKIE_SECURE |
false |
Set true behind HTTPS. |
RECURLY_ALLOW_SIGNUPS |
true |
Set false once everyone who needs an account has one. The first account is always allowed. |
RECURLY_SESSION_DAYS |
30 |
How long a sign-in lasts. |
RECURLY_HOST, RECURLY_PORT |
127.0.0.1, 8000 |
Where it listens. |
RECURLY_API_DOCS |
false |
Serves the interactive API page at /api/docs. Off by default because that page loads scripts from a CDN. The raw spec is always at /api/openapi.json. |
Thresholds (when a decision opens, what counts as unused), the display currency and exchange rates are set in the app, under Settings.
Recurly is one process. Anything that keeps a Python process alive and can put HTTPS in front of it will do. The deploy/ folder has working starting points:
recurly.service: a hardened systemd unit.Caddyfileornginx.conf: HTTPS in front of it. Then setRECURLY_COOKIE_SECURE=true.backup.py: a consistent copy of the database, safe while the server is running. Plain Python, so it works on Windows too.backup.shis a one-line wrapper for cron.
Backups. Your data is the file recurly.db. Copy it with python deploy/backup.py (not with a plain file copy while the server is busy) and you have everything. You can also export all passports from the app.
Restoring. Stop the server, put the backup file in the data folder as recurly.db (delete any recurly.db-wal and recurly.db-shm next to it), and start it again. Your accounts and records come back as they were.
Updating. Pull, pip install -e "server[dev]", npm ci && npm run build, restart. The schema is created on first start and there are no migrations yet, so read the changelog before upgrading across versions.
- No reminders. Recurly does not send email or push notifications. Decisions appear in the app, in the Decisions tab and its badge. If you want a nudge, put your own bookmark on the page.
- No bank connection. You can upload a statement CSV once to find repeating charges. It is read in memory and not kept.
- Live exchange rates. There are none. The rates are fixed numbers you can edit, because fetching them would mean an outside request.
- Passkeys. Sign-in is email and password. Passwords are hashed with scrypt, sessions use HttpOnly cookies, and sign-in is rate limited. Passkeys are not implemented yet.
- Postgres is unproven. The models are database-agnostic and
RECURLY_DATABASE_URLaccepts a Postgres URL (pip install -e "server[postgres]"), but the test suite runs on SQLite only. - It cannot cancel anything for you. It records the decision and reminds you what to do at the provider.
Everything stays on the machine running the server. No analytics, no telemetry, no third-party fonts or scripts (the fonts ship inside the app, and the content security policy forbids outside requests). Each account only ever sees its own subscriptions.
make dev-api # API on :8000 with reload
make dev-web # Vite on :5173, proxies /api to :8000
make test # pytest
make lint # ruff and eslint
make typecheckWithout make: cd server && python -m pytest, ruff check ., and cd web && npm run lint && npm run typecheck.
server/recurly/ FastAPI app
engine.py the decision engine: pure functions over a snapshot of facts
billing.py billing-cycle arithmetic (custom intervals, month-end anchoring)
passport.py passport export and import
csv_import.py optional statement analysis
routers/ HTTP endpoints
server/tests/ pytest suite
web/src/ React + TypeScript
schema/ passport.v1.schema.json
deploy/ systemd, Caddy, nginx, backup
docs/ engine rules, screenshots
The decision engine never touches the database. It takes a plain description of a subscription and today's date, and returns what to show. That is what makes it testable and what keeps the rules readable.
Bug reports, fixes and passport import/export improvements are welcome. Read CONTRIBUTING.md first; it is short.
MIT.




