- Python 88.3%
- HTML 7.6%
- JavaScript 2.4%
- CSS 1.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .claude | ||
| .forgejo/ISSUE_TEMPLATE | ||
| app/handlr | ||
| docs | ||
| installer | ||
| kennel | ||
| runner | ||
| tests | ||
| tools | ||
| voice | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .woodpecker.yml | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| HACKING.md | ||
| LICENSE | ||
| pytest.ini | ||
| README.md | ||
| requirements.txt | ||
| run-dev.sh | ||
Handlr
A solo lock game about getting better — a Handler, a wheel, photo-verified training, the habits you are building, and an honest play log that holds you to all of it.
Single-player, self-hosted, and built in the register of pup headspace. You lock, the clock runs, and the game — through its Handler, its wheel, its training and your habits — shapes what happens to that clock and to your head while it does. You write. You are honest. You do the work: the workout, the stretch, the instrument. Everything becomes an event in an append-only log that is your timeline, your stats, your streaks and your stamped photos. Self-improvement through play and fantasy: you do the thing because you are a good boy and your Handler wants you to be the best boy you can be, a little better every day.
18+. Handlr is an adult game about consensual chastity and pup headspace. It never talks to a physical device and you always hold your own key. The in-app emergency key ends a session at any time and is never hidden, throttled or shamed. Read
docs/spirit.mdbefore your first lock.
Website and screenshots: https://boyslop.dev · Full manual: docs/, also
served by your own instance at /guide.
Free software under AGPL-3.0-or-later, © Lockedtrainee.
What's in it
- The lock. A server-side timer you can't fiddle with, a hidden-timer mode, dice, freezes, and undo that strikes an entry through without ever deleting it.
- The Handler. Daily reflections, check-ins, mantras and headspace sessions — written or spoken — with consequences when you skip them.
- The wheel and training. Spin for what happens next; take on tasks, some of which need a photo before they count.
- Habits. Log with one tap, a timer or a phone Shortcut, or let Handlr read the calendar a practice tracker already keeps. The Handler judges each habit against the rhythm you set: praise, XP and time off the clock for keeping it up, a stern word when you slack.
- Leave it. The other direction, for habits you want less of — booze, food, weed, money, anything. Draw the line and close the day each night; skipping the log always costs more than going over.
- Progress. Stats, streaks, a heatmap, trends and insights, all worked out from the log. Stamped photos and recap cards to share, with the photo's location data removed.
- Your data. Everything stays on your machine. Export it all as JSON, CSVs or one zip, and
restore from it. →
docs/privacy.md·docs/export.md
Quick start
docker compose up -d --build # → http://localhost:8770
Play data lives in the handlr_data Docker volume, not the working directory, so you can
rebuild or reinstall without losing anything. For the JSON API: cp .env.example .env and set
HANDLR_API_TOKEN. If you leave it empty, the API stays off.
Rather click through it? ./setup.sh (macOS/Linux) or setup.bat (Windows) opens a local setup
wizard that checks Docker, writes your config and starts Handlr for you. See
installer/README.md.
Running it for a few other people (a beta round, a pack)? Set HANDLR_HOSTED=1 and each of
them gets a profile behind a login, in its own database, on your one instance. Sign-up is by
invite code only, with no email; you run it from the command line. See docs/hosted.md.
Handlr has no login of its own in single-player mode. If anything other than your own
computer can reach it, put it behind a reverse proxy that asks for one. →
docs/install.md
At a glance
| Data | Docker volume handlr_data → /data (latch.db in WAL mode + media/). An install from before 0.32.0 points HANDLR_DATA_VOLUME at its old volume |
| API | /api/v1/*, bearer HANDLR_API_TOKEN (unset = API off). There is no Swagger page on purpose: it would load files from a CDN. The API is documented in docs/api.md |
| Guide | /guide, built by the app from docs/*.md with nothing fetched from outside. See docs/README.md for how to write a page |
| Version | a running instance shows its version on /healthz and in the footer; what each release changed is in CHANGELOG.md |
Community
- Code, issues, pull requests: https://forge.boyslop.dev/lockedtrainee/handlr — see
docs/contributing.mdbefore filing. - Matrix:
#latch:boyslop.devfor players ·@lockedtrainee:boyslop.devfor the maintainer.
Development
uv venv --python 3.12 .venv && uv pip install --python .venv/bin/python -r requirements.txt pytest httpx
./run-dev.sh # http://127.0.0.1:8770, data in ./.data, API token "dev-token"
.venv/bin/python -m pytest -q # use `python -m`: some tests import each other, and only
# `python -m` puts the repo root on sys.path
tools/demo/seed_demo.py fills a throwaway database with ~150 days of plausible play, for
screenshots and for working on the charts:
HANDLR_DATA_DIR=/tmp/handlr-demo python3 tools/demo/seed_demo.py
How the engine works and the traps you should know about before changing it are in
HACKING.md. New game mechanics go in modules: see docs/modules.md.
Releasing
python3 tools/release/pack.py --check # judge the tree and the history, build nothing
python3 tools/release/pack.py # → dist/handlr-<version>.tar.gz
python3 tools/release/pack.py --out DIR # → DIR/handlr-<version>.tar.gz
The packer fails closed. It stops the build if anything in the tracked tree looks like it
came from the maintainer's own setup: a hostname, a private address, a deployment path or a
name. It reads each file's contents, never just its name. Images must carry no metadata (no
EXIF, comments or PNG text chunks such as an image generator's prompt). Any other binary file
needs an entry in BINARY_OK that gives the reason.
The public mirror carries the full git history, so the packer checks that too. Every commit
must be authored by the project's pseudonym or by Claude, and committed by the pseudonym. Every
annotated tag must be tagged by the pseudonym. Commit and tag messages get the same check as
the files. Run --check before every push, and don't pipe its output.
Who writes Handlr. Claude (Anthropic's model, driven by the maintainer) writes most of the
code. The maintainer reviews, commits, tags and ships it. Since 2026-10-22, Claude is the
author of the commits it writes (Claude <claude@noreply.boyslop.dev>) and the pseudonym
is the committer. Older commits are recorded under the pseudonym with a
Co-Authored-By: Claude … trailer, and that history stays as it is.