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

336

7-day growth

No data

Forks

16

Open issues

1

License

MIT

Last updated

2026-07-14

AI repository intelligence
FR-AI / ANALYSIS

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.

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 DevelopmentFrontend Frameworks
14,861
vercel-labs
Featured
vercel-labs GitHub avatar

scriptc

scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.

Developer ToolsCode Quality & Build
1,985
Jakubantalik
Featured
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI & Machine LearningAI Agents
1,191