prufy
Skip to the page

ComponentsIntroduction

Components

Introduction

Let people prove they own a domain without leaving your product.

On this page

These docs cover @prufy/connect, Prufy's components for the web. To prove a domain from a terminal, see the CLI. To build your own interface, see the API.

@prufy/connect gives you a connect modal, prufy-connect, as a custom element. It finds who manages a domain's DNS, shows the one record to add in that provider's own words, and checks DNS until the record is there. It handles focus, the keyboard and screen readers. You give it your app's name and a backend.

Import the package to register its elements, add the tag to your page, and point it at a handler on your server. The same tag works in plain HTML, React, Vue, Svelte and Next.js.

Quick start

Copy this prompt into your agent:

Prompt
Set up @prufy/connect in this project. It's a web component, <prufy-connect>, that walks someone through proving they own a domain. Importing @prufy/connect registers it, and @prufy/connect/react has React components.

1. Install @prufy/connect with the project's package manager. If a release-age policy blocks the install, stop and ask me instead of changing it.
2. Add a note to AGENTS.md, creating it if needed: before using @prufy/connect, read https://www.prufy.dev/docs/components.md and the pages it links to. Every page has a Markdown copy at its address plus .md, and https://www.prufy.dev/llms.txt lists them all.
3. Show the modal where people add a domain, on createFixtureClient from @prufy/connect/simulation until the backend exists. Don't ship the simulation.

It installs @prufy/connect, puts the modal on a page with made-up DNS answers, and points your AGENTS.md at these docs. Every page here has a Markdown copy at its address plus .md, and llms.txt lists them all. For a prompt that fits your framework and project, use the Quick start.

Set it up yourself

Install @prufy/connect, register its elements, and give it a backend.

Pick your framework and project, then copy a prompt for your agent or the files.

Explore the components

The button and modal that walk someone through adding one DNS record.

A window that watches a shared tab and says where to click, one step at a time. Experimental: it can change in any release.