Feb 2025 - Feb 2025[Shipped]
Custom Domain SDK
TypeScript SDK for managing custom domains using Cloudflare like Custom Hostnames
TypeScriptCloudflare APIDNS ManagementNPM Package
Custom Domain SDK
A production-grade TypeScript SDK for managing custom domains using Cloudflare like Custom Hostnames. This SDK is framework-agnostic, database-agnostic, and implements a strict domain lifecycle state machine.
Domain Lifecycle
The SDK enforces the following state transitions:
- created: Internal record created.
- pending_verification: Waiting for TXT record verification.
- verified: TXT record matched.
- pending_dns: Waiting for CNAME/A record to point to our edge.
- provisioning_ssl: Calling Cloudflare to issue certificates.
- active: Domain is live.
- failed: Terminating state for any step.
Why this exists
Custom domains look trivial until you try to ship them properly. DNS propagation, TLS provisioning, and provider-specific quirks make it a painful process to debug. This SDK exists to make that logic explicit, deterministic, and reusable.
Let's work together
Have a project in mind? Reach out and let's build something great.