A solo lock game for pups — Handler, wheel, photo-verified training, and an honest play log. Self-hosted, AGPL-3.0. https://boyslop.dev
  • Python 88.3%
  • HTML 7.6%
  • JavaScript 2.4%
  • CSS 1.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 20:32:50 -05:00
.claude Claude signs its own commits: author Claude, committer the pseudonym 2026-10-22 10:51:51 -04:00
.forgejo/ISSUE_TEMPLATE themes: app themes you can make and share, the stamp card, a Pixel Pup share card 2026-11-03 05:10:46 -05:00
app/handlr merge release 0.50.5 into main: the Handler's page rebuilt; the bot reminds each due check-in 2026-11-27 20:32:50 -05:00
docs merge release 0.50.5 into main: the Handler's page rebuilt; the bot reminds each due check-in 2026-11-27 20:32:50 -05:00
installer Latch is now Handlr: the package, the words, the env names, the images (#68) 2026-10-23 14:22:25 -04:00
kennel Latch is now Handlr: the package, the words, the env names, the images (#68) 2026-10-23 14:22:25 -04:00
runner The machine runner on the server: an opt-in compose service (#99) 2026-11-22 13:08:04 -05:00
tests merge release 0.50.5 into main: the Handler's page rebuilt; the bot reminds each due check-in 2026-11-27 20:32:50 -05:00
tools merge release 0.50.5 into main: the Handler's page rebuilt; the bot reminds each due check-in 2026-11-27 20:32:50 -05:00
voice Latch is now Handlr: the package, the words, the env names, the images (#68) 2026-10-23 14:22:25 -04:00
.dockerignore The machine runner on the server: an opt-in compose service (#99) 2026-11-22 13:08:04 -05:00
.env.example The machine runner on the server: an opt-in compose service (#99) 2026-11-22 13:08:04 -05:00
.gitignore integration fixes: no .DS_Store in the tree, and the release guard refuses OS junk 2026-09-30 00:51:19 -04:00
.woodpecker.yml docs: describe no one install — scrub the reference deployment out of the public tree 2026-11-16 19:21:28 -05:00
CHANGELOG.md merge release 0.50.5 into main: the Handler's page rebuilt; the bot reminds each due check-in 2026-11-27 20:32:50 -05:00
CONTRIBUTING.md Latch is now Handlr: the package, the words, the env names, the images (#68) 2026-10-23 14:22:25 -04:00
docker-compose.yml The machine runner on the server: an opt-in compose service (#99) 2026-11-22 13:08:04 -05:00
Dockerfile Latch is now Handlr: the package, the words, the env names, the images (#68) 2026-10-23 14:22:25 -04:00
HACKING.md README: a front door, not an engineering log 2026-11-15 21:16:59 -05:00
LICENSE decisions: AGPL-3.0 licence, rank rename (stray→runt), core-vs-module egress 2026-09-20 12:11:37 -04:00
pytest.ini integration fixes: pytest collects tests/ only; the badge A/B script renders only when run 2026-09-30 00:32:42 -04:00
README.md README: a front door, not an engineering log 2026-11-15 21:16:59 -05:00
requirements.txt kennel card: a pup homepage, built as a static site the box never serves (#72) 2026-10-21 08:45:10 -04:00
run-dev.sh docs: describe no one install — scrub the reference deployment out of the public tree 2026-11-16 19:21:28 -05:00

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.md before 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

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.