Docs
Self-hosting
Webinarclose is open source. You can run the whole thing on your own server for free. The hosted plans exist for people who would rather not run a server.
License
The code is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only); the full text is in the LICENSE file of the repository. You may run, study, change and share it. If you change it and let other people use your version over a network, you have to offer them the source code of that version under the same license.
Source code: [DRAFT] the repository address follows at launch.
Run it locally
You need Node 22 or newer and Docker with compose. The dev stack runs Postgres and LiveKit on 127.0.0.1; the API runs with npm.
# [DRAFT] repository address follows at launch
git clone <repository-url> webinarclose
cd webinarclose
cp .env.example .env # fill in POSTGRES_PASSWORD (in the URL too) and LIVEKIT_API_SECRET
# e.g. openssl rand -hex 16 / openssl rand -hex 32
docker compose up -d # postgres on 127.0.0.1:5450, LiveKit on 127.0.0.1:7880
npm install
npm run migrate
npm run create-tenant -- "Demo BV" test # prints tenant_id and an API key ONCE
npm run dev # API on http://127.0.0.1:3150
Then follow the quickstart with http://127.0.0.1:3150 instead of https://api.webinarclose.com and your wc_test_... key. To test video by hand, open http://127.0.0.1:3150/ and paste the livekit_url and token from a join response.
The database variable is WC_DATABASE_URL, not DATABASE_URL, on purpose: Node's --env-file never overrides a variable the shell already has, so a generic name could quietly point the app at another database.
Production
The hosted service runs on one server with docker compose: API, Postgres, LiveKit and Caddy. The files are in deploy/ in the repository, and the full runbook is docs/. In short:
Swipe the table sideways
| Service | What it does | Network |
|---|---|---|
| postgres | Postgres 16. Accounts, keys, webinars, registrations, attendance, mail outbox. | Compose network only, no published port |
| api | The Node 22 app, built from the Dockerfile. | 127.0.0.1:3150 |
| livekit | LiveKit server for the video. | Host network: 7880 (signalling, behind Caddy), tcp 7881 (ICE over TCP), udp 50000-60000 (media), udp 3478 (TURN) |
| caddy | TLS with Let's Encrypt, reverse proxy. | Host network: 80, 443 |
- Two host names: one for the API (
api.) and one for LiveKit (lk.), both pointing at the server.deploy/proxies them to 127.0.0.1:3150 and 127.0.0.1:7880.Caddyfile - Open these ports in the firewall: tcp 80, 443 and 7881, udp 3478 and udp 50000-60000.
deploy/finds the public IP over STUN, enables TURN, sends webhooks tolivekit.prod.yaml http://127.0.0.1:3150/and keeps an empty room open for 5 minutes, so a host who reloads does not end the webinar. Itslivekit/ webhook webhook.api_keymust matchLIVEKIT_API_KEY.deploy/reads secrets fromcompose.prod.yml /opt/and setswebinarclose/ .env WC_DATABASE_URLto the local Postgres itself.- Migrations are plain SQL files, run with
tsx scripts/migrate.tsbefore the API starts. They only move forward. scripts/deploy.shandscripts/activate.share written for our own server; read them as an example. They ship the committed tree, build the image, migrate, start the stack, check health and roll back on failure. They refuse to deploy while a webinar is live, because a LiveKit restart ends every room.scripts/pg-backup.shmakes a nightlypg_dumpand keeps 7 days.
Environment variables
From .env.example in the repository. Copy it to .env, which is never committed.
Swipe the table sideways
| Variable | Needed | What it is |
|---|---|---|
POSTGRES_PASSWORD | yes | Password for the Postgres container. |
WC_DATABASE_URL | yes | Postgres URL for the app, for example postgres://. |
LIVEKIT_API_KEY | yes | LiveKit key name. Must match webhook.api_key in the LiveKit config. |
LIVEKIT_API_SECRET | yes | LiveKit secret, at least 32 characters. |
LIVEKIT_URL | yes | LiveKit URL handed to clients in join responses and used for room calls, for example wss://lk.example.com. |
HOST, PORT | no | Where the API listens. Default 127.0.0.1 and 3150. |
WC_PUBLIC_URL | yes in production | Public base URL of the API: join links, calendar files, page previews, mails and checkout redirects. |
WC_TRUST_PROXY | no | 1 only behind your own reverse proxy, so the rate limit sees the client IP. |
STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET | no | Billing. Leave the secret key empty and the billing routes answer 503; you create accounts by hand. |
STRIPE_PRICE_STARTER, STRIPE_PRICE_PRO, STRIPE_PRICE_BUSINESS | with Stripe | Monthly EUR price ids for the three plans. |
RESEND_API_KEY, MAIL_FROM | no | Mail through Resend. Empty: mails queue up but are not sent. The MAIL_FROM domain must be verified at Resend. |
RESEND_RATE_PER_SEC | no | Requests per second to Resend. Default 2. |
WC_PUBLIC_REG_DAILY_CAP | no | Max public registrations per webinar per 24 hours. Default 5000. |
WC_REMOTE_MCP | no | 1 turns on the remote MCP server at POST /mcp. Off by default. |
WEBINARCLOSE_API_URL, WEBINARCLOSE_API_KEY | no | Only for the local MCP server (npm run mcp): which API to call and with which key. See MCP setup. |
Accounts and keys
Without Stripe, create an account and its first key on the command line. The key is printed once; only its sha256 hash is stored.
npm run create-tenant -- "Your company" live
In the production container: docker exec webinarclose-api-1 node_modules/.