Domain SDK is a TypeScript library that provides a unified lifecycle for managing custom domains across multiple hosting providers like Vercel, Cloudflare, Railway, Render, and Netlify.

Stars

297

7-day growth

No data

Forks

12

Open issues

1

License

MIT

Last updated

2026-07-14

Why it is worth attention

It normalizes the entire domain lifecycle (add, verify, remove) across different platforms with provider-authoritative status checking, idempotent operations, and a built-in testing adapter, saving developers from writing provider-specific integration code.

Who it is for

  • SaaS platform developers who need to let customers use custom domains
  • Backend engineers managing multi-tenant domain provisioning
  • DevOps teams automating domain setup across multiple hosting providers

Use cases

  • Add a customer's custom domain to a SaaS app and return exact DNS records
  • Poll until domain verification and SSL certificate are active
  • Remove a domain safely when a customer cancels or changes their plan
  • Provision subdomains under a parent domain with optional label reservation

Strengths

  • Unified API across six providers (including a testing adapter) with the same lifecycle methods
  • Idempotent add/remove operations with retry-aware error handling
  • Provider-authoritative verification that avoids false readiness
  • Built-in subdomain client with reserved label support

Considerations

  • Server-side only; requires Node 20+ or Bun and cannot be used in browser code
  • Limited to the listed providers; no generic DNS provider support
  • Wildcard provisioning is only available through provisionWildcard() and may not be supported by all providers

README quick start

Usage

Description

Add, verify, monitor, and remove customer domains with one TypeScript API.

Related repositories

Similar projects matched by category, topics, and programming language.

openclaw
Featured
openclaw GitHub avatar

openclaw

OpenClaw is a self-hosted personal AI assistant that runs on your own devices and integrates with over 25 messaging channels, featuring voice support, a live canvas, and multi-agent routing.

AI & Machine Learning
383,088
TanStack
Featured
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web Development
14,802
mereyabdenbekuly-ctrl
Featured
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

Developer ToolsDesktop Apps
813