swiparr
llms.txt799 starsChanged 12 days agoMITView on GitHub
Swipe on what to watch next, alone or with a group. A deck built from your own media server, or from TMDB when there is no server, with sessions where two people — or everyone — have to agree. Read this before changing anything. AGENTS.md is the contract and the invariants. npm run doctor diagnoses a deployment; npm run e2e drives the API contract against a running instance; npm run e2e:live does the same against a provider you control. bin/messer-swipe.mjs…
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- messer-swipeSkill
The file
We split this llms.txt into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Read this before changing anything.
- Distinctive: line 50
Add an accounts system: a member is a name and a signed cookie, and guests join by link.
≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# Messer Swipe
> Swipe on what to watch next, alone or with a group. A deck built from your own media server, or from
> TMDB when there is no server, with sessions where two people — or everyone — have to agree.
Read this before changing anything. `AGENTS.md` is the contract and the invariants.
## Run
```bash
npm ci
npm run db:migrate # create the SQLite schema
npm run dev # http://localhost:3000
npm run check # lint + typecheck + tests — the gate
```
`npm run doctor` diagnoses a deployment; `npm run e2e` drives the API contract against a running
instance; `npm run e2e:live` does the same against a provider you control.
## Agents
`bin/messer-swipe.mjs` ships in the image and talks to `/api/v1` with a bearer token:
`docker exec <container> messer-swipe status`. See `docs/agents.md`; the container mints
its own local token at first admin login, so no setup is needed.
## Contract
- `src/app/api/*` — the route handlers. Every failure answers `{"error":{"code","message"}}`.
- `GET /api/version` — the build; `GET /api/health` — liveness for a monitor.
- `GET /api/events` — the SSE stream a live session syncs on; nothing polls.
- `docs/configuration.md` — every environment variable and what it changes.
- `docs/features.md` — the deck modes (movies, shows, episodes, continue, mixed) and what each answers.
- `docs/upgrading-to-2.0.md` — the only stored change in 2.0 (typed TMDB ids), behaviour deltas and rollback.
## Invariants
1. **The deck is a view, not a table.** Nothing is precomputed per user: a page of the provider's
catalogue, minus what this member has already swiped.
2. **A session owns its state.** Members, swipes and matches hang off the session; there is no global
"user" table to write into.
3. **A match carries the rule that made it** — `any-two` or `everyone` — so a surprising match is
explainable.
4. **Provider credentials never reach the browser.** URLs, tokens and admin identities stay server-side;
BYOP input is refused private addresses unless the deployment opts in.
5. **Images are proxied with a bounded queue.** A timed-out poster is a `504` the card retries, never a
cached broken image.
## Do not
- Add an accounts system: a member is a name and a signed cookie, and guests join by link.
- Hot-link posters from the provider, or let the client ask for an unbounded width.
- Poll where the SSE stream already carries the event.
- Name a host, a home path or a private domain in a shipped file.
## Licence
MIT. Pull requests are closed; issues and discussions are open. A vulnerability goes to a private
advisory, never a public issue.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

