Development · GitHub repo

Domain SDK

TypeScript SDK for adding and managing custom customer domains across platforms

Visit github.com ↗

Domain SDK provides a unified TypeScript client to programmatically add, verify, monitor, and remove custom domains on hosting platforms like Vercel, Cloudflare, and Netlify. It normalizes DNS record generation, verification states, and TLS certificate tracking across different backends. This saves multi-tenant SaaS developers from writing bespoke domain-handling infrastructure.

What it's for

  • Add custom domain management to a multi-tenant SaaS platform
  • Generate accurate DNS records and instructions for customer onboarding
  • Track ownership verification and SSL certificate issuance asynchronously
  • Provision and manage tenant-specific subdomains under a root domain

Features

  • Adapters for Vercel, Cloudflare for SaaS, Railway, Render, Netlify, and bunny.net
  • DNS registrar adapters for Porkbun, Namecheap, and Spaceship
  • Normalized domain lifecycle tracking for routing, ownership, and TLS readiness
  • Sequential polling with retry logic, timeouts, and provider backoff
  • Tenant subdomain scoping with reserved label filtering
  • Isolated in-memory testing adapter that runs without hitting live APIs

Pricing

Open source. Free, MIT licensed

Details

Type
GitHub repo
Category
Development
Topic
Developer Tools
Open source
Yes
Platforms
Code library
For
TypeScript and SaaS developers building multi-tenant web applications
Alternative to
Platforms on Vercel, Cloudflare for SaaS Custom Hostnames API
Tags
domains, dns, saas, multitenancy, typescript, ssl, vercel

Why it was saved

  • @leodev, 13 July 2026: Removes a whole class of bespoke infrastructure work (DNS config, verification, TLS issuance tracking) when building multi-tenant SaaS with custom domains.

Related

  • react-best-practices

    Curated React performance rules and coding-agent skills by Vercel

  • Agentation

    Connects AI coding agents to browser annotations for automated UI reviews

  • claude-office-skills

    Office document creation and editing skills for Claude Code CLI.

  • ECC

    Agent harness optimization system with skills, hooks, and configs for coding agents

  • Eight Dev Tools, Zero Fluff — Part 6

    Curated list of eight front-end design and developer utility tools

  • Framecap

    Command-line screen, camera, and audio recorder for macOS

All 13 in Developer Tools →

Updated