Cloudflare-backed DNS provisioning API for crimata.com customer subdomains
  • TypeScript 93.8%
  • Dockerfile 6.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-16 20:24:13 +00:00
src Initial commit 2026-02-25 15:32:58 -05:00
.DS_Store Initial commit 2026-02-25 15:32:58 -05:00
.env.example Initial commit 2026-02-25 15:32:58 -05:00
Dockerfile Initial commit 2026-02-25 15:32:58 -05:00
LICENSE Add MIT License 2026-02-26 23:52:00 -05:00
package.json Initial commit 2026-02-25 15:32:58 -05:00
README.md Test post-receive hook (README.html regen) 2026-07-16 20:24:13 +00:00
tsconfig.json Initial commit 2026-02-25 15:32:58 -05:00

crimata-dns

Small internal API for provisioning DNS on crimata.com via Cloudflare — used to give each new Crimata customer a free subdomain, and optionally point a custom domain at their instance.

What it does

  • GET /domains/check?domain= — check domain availability
  • POST /domains — create a subdomain for a customer, and optionally register + point a custom domain
  • DELETE /domains/:recordId — remove a DNS record

Built with Fastify + TypeScript, talking to the Cloudflare API.

Running it

cp .env.example .env   # fill in Cloudflare API token, account ID, zone ID
npm install
npm run dev

The included Dockerfile builds and runs the compiled version (npm run build then node dist/index.js).