Skip to content

Add data, sign-in, and a custom domain to your website

When your website needs to store registrations, recognize signed-in visitors, or use your own URL, ask Rabi to add the relevant features. Server code, databases, and secrets let your website do more, while you manage sensitive settings.

Help your website do more

Ask Rabi to add features for storing registrations, querying data, or recognizing visitors. Server code, SQL databases, secrets, Rabi sign-in, and custom domains are currently in Beta and must also be enabled by the platform.

SQL databases and secrets are reachable only from server code, so they come with it. Sign in with Rabi and custom domains work even for a purely static site.

Handle website requests with server code

For example, use server code to validate a submitted form or call an external service. Describe the workflow you need without having to learn programming first.

The code runs in an execution environment separate from the main Rabi site, with limits on computing resources and outbound connections. If errors occur, ask Rabi to inspect the logs. Service may be suspended for persistent limit violations or abuse.

FIG GHow a request is handled
VisitorYour sitelaunch.example.site/api/…Other pathsServer code≤ 50 ms CPU eachStatic filesPages, images, stylesSQL databaseThis site’s ownSecretsSet by people onlyOutside APIsPublic internet onlyRabi’s dataOut of reach
Static files take the fast path, so a broken server function can’t take the home page down with it. Server code runs apart from Rabi, with time and memory limits; it’s stopped if it goes over.

Store and query website data

A site with server code can store data in SQL, so leaderboards, orders and comments can be sorted and queried. Each site has its own database — one for the live site and one for previews, so they never affect each other — kept outside Rabi’s main database.

When the table structure needs to change, Rabi snapshots the database before deploying, so you can restore it if something goes wrong. The database is also snapshotted automatically every 15 minutes when it changes; from the site’s settings you can export the whole database or restore any snapshot.

Manage confidential settings yourself

Calling a payment, email or other service usually takes an API key. Once a value like that appears in a conversation, it stays in the conversation history and in what the model sees — so a site’s secrets can be entered only by a person, on the site’s settings page: the owner, plus the company’s owners and admins for a company’s site.

Rabi sees only a secret’s name, never its value, and can’t set one. When the site needs a key, Rabi lists the names still missing and gives you a link to fill them in. Values are handed only to server code; the settings page shows just “set” and when it was last updated, and the same string is masked if it ever shows up in a log. Non-secret settings (variables) Rabi can set for you directly.

Sign in with Rabi

A site that needs to know who its visitors are doesn’t have to build its own accounts and passwords. With Sign in with Rabi, a visitor presses one button and Rabi opens a consent page showing the site’s name, address and owner, and what will be shared. An account ID is always shared; email and name are each the visitor’s choice. On a public site, the consent page also notes that anyone can create such a site and it isn’t an official Rabi page.

Each site receives a different account ID, so two sites can’t use it to recognize the same person. When a site receives an email address, it also learns whether it’s verified — correctly for Google, personal Microsoft accounts and work accounts whose admin has completed setup. Visitors can revoke access at any time under Linked sites in Settings, and it stops working within 10 seconds.

FIG HSign in with Rabi, in three screens
01 On the site
club.example.siteBook club sign-upSign in with Rabi
02 In Rabi
Let this site know who you are?club.example.site · Owner: Mei
An ID just for this site
Email (verified)
Name
CancelAllow
03 Back on the site
club.example.siteBook club sign-upHi Mei, you’re signed up
Your password and Rabi session never leave Rabi. You tick what to share; revoke it later under Linked sites in Settings and it stops working within 10 seconds.

Use your own URL

Enter your domain — for example www.example.com — under Custom domains in the site’s settings, and you’ll get two DNS records to add: a TXT record proving the domain is yours, and a CNAME (or an A record for a root domain) pointing it at the site. Set them to DNS only, not proxied. A site can have up to three custom domains.

Rabi checks on its own, prepares an HTTPS certificate once DNS is right, and starts serving as soon as it’s ready. You can make the custom domain the primary address: a public site’s original address then redirects to it, while a private site doesn’t, so it isn’t exposed. A custom domain serves only the live version; previews stay at their usual preview addresses.

If your custom domain shares a parent domain with other company services, cross-subdomain cookie risks may still exist. Check how the domain is used and how services are separated. Different URLs alone do not mean sign-in and data are fully isolated.

FIG ICustom domain: from typing it to serving
  1. 1Add domain
  2. 2Waiting for DNS
  3. 3Preparing HTTPS
  4. Serving
Add these two DNS records
TypeNameValue
TXT_rabi-site.www.example.comrabi-site-verify=8f3c…
CNAMEwwwedge.example.site

Rechecked every 5 minutes for the first 24 hours; after that, press Check again.

Rabi won’t prepare a certificate until you’ve shown the domain is yours. Once serving, it’s checked daily; if the records disappear, the site keeps serving for 7 days and you’re notified.

For developers: runtime and default limits

Place server code in server/. The default export’s fetch function handles /api/ requests; other paths serve static files. Imports must use relative paths to files within server/. Direct npm package imports and Node.js APIs are not supported.

By default, each request has up to 50 ms of CPU time and 15 seconds of total execution time, with a 64 MB memory limit for the runtime. Requests may stop when limits are exceeded. Outbound connections are restricted to the public internet. The exact limits may differ for your organization.

Questions

Can Rabi see the secrets I enter?

The settings interface lets Rabi read secret names, but does not return saved values. Values are passed to your website’s server code, so make sure that code does not expose them in output or send them to untrusted services. Do not paste secrets into chat.

Can server code use npm packages?

Not yet. Server code can import only its own files under server/; the usual web APIs — fetch, URL, crypto, encoding — are built in. When a package is needed, Rabi can usually write a version that doesn’t depend on it.

What does a site get when I sign in with Rabi?

An account ID unique to that site, plus the email or name you ticked on the consent page. The site never gets your password or your Rabi session.

How long does a custom domain take?

It depends on how fast your DNS updates. For the first 24 hours Rabi checks every 5 minutes, and it usually starts serving a few minutes after the records take effect; after 24 hours, press Check again.

What happens to my site if server code is unavailable?

Static pages keep serving, while addresses under /api/ return not found for the time being. SQL databases and secrets pause too, but the data stays and comes back when server code does.