Skip to content

Quick start

Choose Cloudflare or Docker and follow this guide to deploy Calends and sign in for the first time.

Calends runs in two ways with the same features: on Cloudflare Workers or with Docker on your own machine. You can also paste the prompt below into an AI agent with terminal access and let it do the work.

One-click deploy: use the Deploy to Cloudflare button in the GitHub README, or open deploy.workers.cloudflare.com. Afterwards, add a secret named SETUP_TOKEN in the Worker’s settings — without it you can’t set a password.

From the command line:

  1. Clone the repository and install dependencies:

    终端窗口
    git clone https://github.com/imetn/calends && cd calends
    npm ci
  2. Sign in to Cloudflare:

    终端窗口
    npx wrangler login
  3. Set the setup token. Use any long random string; you’ll type it once when setting your password:

    终端窗口
    npx wrangler secret put SETUP_TOKEN
  4. Deploy. This builds the front end, creates the D1 database automatically, deploys the Worker and runs the database migrations:

    终端窗口
    npm run deploy
  5. Open https://<your-worker>.workers.dev/admin, enter the setup token and choose your password.

For email reminders, the cron trigger and custom domains, see Cloudflare Workers + D1.

  1. At /admin, enter the setup token and choose a password of at least 8 characters. See First-time setup.
  2. Under Settings → General, pick your base currency, time zone and language.
  3. Under Settings → Security, add a passkey so you can sign in with Face ID, Touch ID or your device passcode.
  4. Add your first subscription: press N, or paste a receipt into the Assistant.
  5. To get reminders, add at least one channel under Notification channels in Settings.