Skip to content

Requirements

The self-hosted edition is the same application as amabledata Cloud, installed by you from the public repository into your own Cloudflare account. This page lists everything you need before you run the installer.

You need three groups of things:

  1. A Cloudflare account on the Workers Paid plan with R2 enabled.
  2. A computer with Git, Node.js 20 or later and pnpm, from which you run the setup script.
  3. Optional services for email, OAuth and DNS automation, which you can add after the first install.

The repository is github.com/Ratne/AmableData. The code is licensed under AGPL-3.0: you can run, modify and self-host it for free; if you offer a modified version as a service, you must publish your changes.

The setup script runs on your computer. It uses Wrangler (Cloudflare’s command-line tool, installed with the project dependencies) to create the Cloudflare resources and deploy the two Workers into your account. Nothing runs on your computer afterwards: amabledata lives entirely in Cloudflare. You need the computer again only to update.

You do not need a server, a database server, Docker or a domain to start: the installation answers on the workers.dev addresses of your account.

  1. Create a Cloudflare account, verify the email and turn on two-factor authentication. A dedicated account is recommended. See Create a Cloudflare account.

  2. Add a payment method, activate Workers Paid and enable R2. See Plans and billing.

  3. Open Workers & Pages once. If Cloudflare asks you to choose a workers.dev subdomain, choose one (for example acme). Your Workers will answer on https://amable-core.acme.workers.dev and https://amable-edge.acme.workers.dev. Note the subdomain: you need it for the setup command.

  4. Optional: add your domain now (buy or move one), or later.

  1. Install Git (any recent version). Check with git --version.

  2. Install Node.js 20 or later (the project declares node >= 20). Check with node --version.

  3. Enable pnpm through Corepack, which ships with Node.js:

    Terminal window
    corepack enable pnpm
    pnpm --version

    The repository pins its pnpm version in package.json (packageManager), so Corepack downloads the right one automatically.

  4. Make sure you can open a browser on the same computer: pnpm exec wrangler login opens the Cloudflare sign-in page.

Before you run the script, decide the two public origins (they can change later by rerunning the script):

Option What it is Start with
--app-origin Where your team opens the dashboard https://amable-core.<subdomain>.workers.dev
--edge-origin Where visitors load the tracker, forms, booking pages and email links https://amable-edge.<subdomain>.workers.dev

Later you can switch them to your own hostnames, for example https://crm.example.com and https://t.example.com. See Connect your domains.

Requirement Detail
Cloudflare plan Workers Paid ($5/month plus usage, typically $5 to $25/month in total)
R2 Enabled on the account
Cloudflare permissions You can sign in with Wrangler as a member allowed to create Workers, D1, R2 and Queues (the account’s Super Administrator can)
Node.js 20 or later
pnpm Through Corepack (corepack enable pnpm)
Git Needed to clone, to read release tags and to update
Operating system Any that runs Node.js (macOS, Linux, Windows)
Domain Not required to start; required to send marketing email
Worker CPU limit The core Worker is deployed with 120 seconds of CPU per invocation (limits.cpu_ms 120000), available on Workers Paid
Service Needed for Configure with
Cloudflare Email Sending on your domain System email: sign-in codes, magic links, invitations, password resets, declined-signature notices send_email binding SYSTEM_EMAIL, SYSTEM_EMAIL_FROM
A PostShiba account Marketing email (broadcasts, automations) and the emails of electronic signatures and bookings POSTSHIBA_API_KEY (team key with Full access), POSTSHIBA_TEAM_ID, POSTSHIBA_CLUSTER_ID
A Cloudflare API token for DNS Automatic DNS records in Settings › Domains CLOUDFLARE_DNS_API_TOKEN
Your own Google OAuth client Google Calendar for bookings (busy time read, bookings written as events) GOOGLE_OAUTH_CLIENT_ID, GOOGLE_OAUTH_CLIENT_SECRET
Ad platform apps Spend import and server-side conversions META_APP_*, GOOGLE_ADS_*, TIKTOK_APP_*
Turnstile widget Bot protection TURNSTILE_SITE_KEY, TURNSTILE_SECRET_KEY

Each one is explained in Optional tokens and secrets and listed in the configuration reference.

Self-hosted Cloud
Application Identical Identical
Installation and updates You run them Automatic
System and marketing email Your own providers Included (2,000 marketing emails/month per workspace)
Google and Meta integrations Your own OAuth apps Ready to use
Monitoring Worker logs, or your own error endpoint Error and health monitoring
Support Community on GitHub Included
  • One installation has one first owner, created by the setup script. Everyone else joins by invitation. See Members and roles.
  • System email is strongly recommended before you invite people: without it, invitations, magic links and email sign-in codes cannot be delivered. The first owner can still join through the link printed by the script and use an authenticator app for two-factor authentication.
  • The installer uses fixed resource names (amable-core, amable-edge, amable-installation, amable-files and the six queue names), so you can run one installation per Cloudflare account.
Symptom Cause Fix
corepack: command not found Node.js older than 16.10 or a distribution without Corepack Install Node.js 20 or later from the official installer.
pnpm asks to download a version Corepack fetches the version pinned by the project Accept: it is the expected version.
wrangler login cannot open a browser Remote server without a desktop Run the script from a machine with a browser, or set CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID for Wrangler instead.
The script stops with not logged in Wrangler is not signed in Run pnpm exec wrangler login first.