Building blocks

Websites

A website in 1DB is one site you collect leads from, usually one domain. It holds the site’s key, its forms and its leads, and everything 1DB knows about where the site lives.

Two kinds of website

Add a website by pasting its address. 1DB reads the homepage and the domain’s records, and from what it finds sets the site up one of two ways. You can switch before you create it.

What 1DB reads about a site

When you add a site, before you’ve connected anything, 1DB looks up:

  • whether anything is live at the domain, and the site’s name and contact address if it is
  • who the domain is registered with, and when it expires
  • whose servers run its DNS, and who receives its email

Connect your accounts under Settings → Connections and each site also shows the repository behind it (GitHub), the project that deploys it (Vercel, Cloudflare) and its traffic (PostHog). 1DB matches them to the site by domain after it’s added, so there’s nothing to link by hand.

What every website comes with

Status

A website is active, in development, under maintenance or archived. When a site in maintenance or archived stops getting leads, its health check says the silence may be expected.

From the terminal

The CLI adds a website the same way and writes its key and form slug into your project’s env file. It finds an existing website for the domain rather than making a second one.

bash
npx @1db/cli init northfieldpallets.com --env-file .env.local

Hundreds of sites

Every website shares the organization’s contacts and destinations, so adding the three hundredth site is as quick as the first. Websites are listed in one table, with the ones that need attention first.