Documentation
Installing Kabine
Kabine runs in your club's own Cloudflare account. Nobody else hosts your data, and the free plan is enough for a typical club with a few hundred members. This guide takes about 30 minutes.
What you need
- A Cloudflare account for the club (free). Create it with a club e-mail address, not a private one, so it survives a change of board.
- A GitHub account. The deploy button puts a copy of Kabine there, and updates arrive as pull requests in that copy.
- Ideally a domain in Cloudflare, for example
app.your-club.org. Passkeys are bound to the address of the app, so choose the final address before you invite people. A*.workers.devaddress works for trying Kabine out.
1. Deploy
The button creates a copy of the repository in your GitHub account and the Cloudflare resources the app needs: the Worker, a D1 database, a KV namespace, a queue for push notifications and two Durable Objects (team chat, live helper plan).
It asks for one secret, ADMIN_BOOTSTRAP_TOKEN. Choose a password of at least 16 characters and keep it until the first admin has signed in. Everything else the app creates itself on first start: the key for signed links and the key pair for push notifications. They are stored in the database and never leave it with the data export. If you prefer to manage them yourself, set APP_SECRET, VAPID_PUBLIC_KEY and VAPID_PRIVATE_KEY as secrets of the Worker (npm run secrets:generate creates a set).
The copy does not include the update workflow; step 6 adds it.
In the Worker's settings under Build, check that the deploy command is npm run deploy. It applies the database migrations before uploading the new version. With a plain npx wrangler deploy the database stays on the old schema.
In the same place, on the tab Previews Base, switch off Builds for Preview branches and save. Kabine needs no previews: a preview would need its own database, KV namespace and queue (a previews block in wrangler.jsonc), and new code against the club's real database without its migrations would be risky. Left on, every update pull request shows a failed check "Workers Builds" (npx wrangler preview stops with "needs a previews block"), although the deploy after merging works.
Data in Europe: when the button creates the D1 database, choose the EU jurisdiction for it. This can only be set when the database is created, not changed later. If your privacy policy promises the EU, check it under Storage & Databases → D1 → kabine after the deploy. The team chat already lives in the EU jurisdiction. (Installing by hand: npx wrangler d1 create kabine --jurisdiction eu.)
2. Add your domain
Do this before anyone signs in. In the Cloudflare dashboard open Workers & Pages → kabine → Settings → Domains & Routes → Add → Custom domain and enter a subdomain of the club, for example app.your-club.org. Cloudflare creates the DNS record and the certificate.
The club's domain has to be managed in the same Cloudflare account (its DNS at Cloudflare). If it is managed elsewhere, ask whoever runs the club's domain to move its DNS to Cloudflare (free), or register a new domain for the app in Cloudflare.
From now on, use only this address. Passkeys created under the workers.dev address do not work on the club domain; the setup page warns when it is opened there.
3. First admin
Open https://app.your-club.org. A new installation goes straight to its setup: enter the setup password you chose when deploying (ADMIN_BOOTSTRAP_TOKEN), then your name and e-mail address, and create a passkey (Face ID, fingerprint or the screen lock of your device). The password works once. (The direct link https://app.your-club.org/einrichtung#<password> does the same without typing.)
The build log of the deploy ends with these steps as well.
The setup wizard opens right after:
- Language and region: the club's language, country and state (for school holidays and public holidays), time zone.
- Club: name, short name, abbreviation, colours and logo.
- Sport and season: brings age groups, playing times and helper duties of the sport.
- Functions: helper duties (with youth referees and other duties an admin approves), carpools, handball4all, handball.net, SMS. What each module does and stores is in the module documentation.
- E-mail (optional): the club's SMTP server, or Cloudflare Email Sending with the Workers Paid plan (see below). Off by default.
- First teams: by hand, or imported from the club's lists. Excel files (.xlsx, also several sheets), CSV or a pasted table; only first name, last name, birth year, team and role are read, in the browser. The same person in several lists becomes one; birth years that disagree and similar names come up as questions. Teams, coaches and players are created only after everything is checked and corrected. The same import is under Administration → Import / restore later.
- First people: coaches and further admins, each with a personal link.
- Privacy: links to the club's legal notice and privacy policy, contact for questions.
The club is the provider of its installation and the controller for its data, not the Kabine project. Enter both links before inviting people: they appear under every screen, in the page itself (without JavaScript too) and under every e-mail. As long as one is missing, admins see a warning under Administration. Never link the legal pages of kabine.dev; they cover only the project website and the demo. privacy.md has a template for the section about the app.
Everything can be changed later under Administration. "Continue later" leaves the wizard; it reopens under Administration → Setup wizard.
4. E-mail (optional, recommended)
Kabine sends e-mails for sign-in codes on new devices, access links and helper plan reminders. Without e-mail, people sign in with passkeys and the links coaches hand out; the sign-in page only offers "Code by e-mail" once sending is set up.
E-mail is off until the club sets it up.
- SMTP: the club's mail server, with TLS on port 465 or STARTTLS on port 587. The password is stored encrypted. Works on the free Cloudflare plan.
- Cloudflare Email Sending: needs the Workers Paid plan (on the free plan it only sends to verified addresses of your own account). Set up the domain for sending in Cloudflare (Email → Email Sending), add
"send_email": [{ "name": "EMAIL" }]towrangler.jsoncin your copy and deploy again. Then choose Cloudflare in the wizard and enter the sender address, for exampleno-reply@your-club.org.
The wizard sends a test mail.
5. Invite people
Coaches are assigned by an admin under Administration → Teams → Coaches and get a personal link. Coaches then add their players (one by one or as a list from a spreadsheet), create training plans and share the invitation links for players and parents in the team's group chat. The invitations tab shows who cannot be reached yet.
Push notifications work on Android and desktop browsers right away. On an iPhone, the app must be added to the home screen first (Safari → Share → Add to Home Screen); the app explains this to everyone.
6. Updates
New Kabine versions arrive as a pull request in your copy on GitHub; you decide when to install them. The deploy button does not copy the update workflow (GitHub does not let it create workflow files), so add it once, right after the installation:
- In your copy on GitHub: Add file → Create new file, name it
.github/workflows/update.yml, paste the content of the update workflow and commit it. - Settings → Actions → General: under Workflow permissions tick Allow GitHub Actions to create and approve pull requests and save.
- Actions → Kabine updates → Run workflow: it looks for a release right away. If your copy is already on the latest release, it does nothing.
From then on the workflow looks for a new release every Monday and opens a pull request "Update Kabine to vX.Y.Z". It says whether the release changes the database or the Cloudflare configuration (wrangler.jsonc). Merging it deploys the new version; if the release changes the database, the app shows "being updated" for about a minute and the deploy notes a restore point first (docs/operation.md, Updates). If GitHub still does not let the workflow open the pull request, it opens an issue with a link to open it yourself. Admins also learn about a new version in the app: a hint in Administration and one push, with an Install update button that opens the pull request (docs/operation.md, Installing an update and Update notices).
A copy from before October 2026 needs a few steps once: docs/operation.md, Updating an older copy.
Installing by hand
Without the button, with Node.js 22 or newer and a Cloudflare API token:
git clone https://github.com/witscher/kabine && cd kabine
npm ci
npx wrangler d1 create kabine --jurisdiction eu # keeps the data in the EU; put the database_id into wrangler.jsonc
npx wrangler kv namespace create KV # put the id into wrangler.jsonc
npx wrangler queues create kabine-push
npx wrangler secret put ADMIN_BOOTSTRAP_TOKEN
npm run deploy
Then continue with step 2.
Costs and limits
The free plan of Cloudflare Workers covers a club with several hundred members: requests, D1 reads and writes, KV, Durable Objects and queues all have daily allowances. Kabine is built to stay well below them (see docs/dev/design.md, Database read load). Check the current limits on Cloudflare's pricing pages. If a limit is reached, the app answers with errors until the next day; the paid plan (5 USD per month at the time of writing) removes that risk. In a checkout of your copy, npm run d1:stats -- 7d shows the rows read per day against the free limit and which queries read most.
SMS cost money per message with the provider (seven.io). The module is off by default.
Source: docs/install.md · Edit on GitHub
Try it
In the demo, in every role.
Player, parent, coach or admin: one tap and you are in the invented club “SV Musterstadt”. No sign-up, reset every night.