A one-page site is a single HTML file, which an agent writes in minutes, and static hosting on Cloudflare Pages is free. The prompt below builds a small generator that turns a YAML file into that page, keeps it under 50 KB and checks for stray external requests. What $19 a year buys is a visual editor anyone can use, hosting, HTTPS and form hooks into a dozen-plus email tools, so keep paying if non-developers need to edit the page. For anyone comfortable with a text file, the builder is optional.
Before you buildCarrd Basic is free for up to 3 sites. If you don't need a custom domain or a form, there is nothing to replace.
Build me a one-page site generator to replace Carrd. Requirements: - Node.js 22 + TypeScript command-line tool, `npm run build` reads ./site/site.yaml (parsed with `yaml`) and writes ./dist/index.html as one HTML file with inline CSS and no JavaScript. Files in ./site/assets/ are copied to ./dist/assets/. - Blocks, in the order given in the YAML: hero (headline, subline, avatar, up to 2 buttons), text (Markdown through `marked`, sanitised with `sanitize-html`), links (label and URL, optional icon from 20 bundled SVGs), image or gallery, divider, contact form and footer. - Look: three built-in themes (light, dark, serif) as CSS variables, plus accent colour, content width and a background colour or image. System fonts only, no external font requests. - Page metadata from the YAML: title, description, favicon, and Open Graph and Twitter card tags. - Contact form: a plain HTML form posting to FORM_ENDPOINT from .env, with a hidden honeypot field and a thank-you page at /thanks.html. Do not write a form backend in this tool. - `npm run dev` serves ./dist on http://localhost:4400 and reloads the browser when site.yaml or an asset changes (`chokidar` and server-sent events). - Checks the build runs on every output: the HTML passes `html-validate`, the file is under 50 KB without images, and a scan finds no external URLs other than the links you listed. - `npm run deploy` prints the exact `wrangler pages deploy dist` command for Cloudflare Pages. - One site per folder. No accounts, no telemetry, local-first. - Out of scope: a visual editor, multi-site dashboards, analytics, payments. - README: a five-minute quickstart, the YAML reference, and how to attach a custom domain.
Opens your agent with the prompt filled in, you press enter. Or copy it and paste it into an empty folder.
The first prompt builds the core. Run these one at a time in the same folder to grow it into your own Carrd.
Add a Carrd importer to the site generator in this folder. Requirements: - `onepage import ./carrd-download` reads the index.html from a Carrd site download (the unminified ZIP contents) with `cheerio`. - Map headings, paragraphs, buttons and link lists to the generator's block types, copy images to ./site/assets/, and write ./site/site.yaml. - Anything it can't classify goes into a `todo:` list in the YAML instead of being dropped. - Print a short report of blocks created and items left over. - Update the README with how to download the site from Carrd.
Add a form backend as a separate folder ./form-worker in this project. Requirements: - A Cloudflare Worker in TypeScript, deployed with `wrangler`, that accepts the form POST, checks the honeypot, validates name, email and message lengths, and answers with a 303 redirect to /thanks.html. - Send the message through the Resend API, with RESEND_API_KEY as a wrangler secret and the recipient address as a variable. - Rate-limit to 5 submissions an hour per hashed IP using a KV namespace. - Update the README with the deploy steps and where FORM_ENDPOINT goes.
Add a publish command to the site generator in this folder. Requirements: - `npm run publish` runs the build and all checks, then `wrangler pages deploy dist` with the project name from site.yaml. - Refuse to publish when a check fails or when git has uncommitted changes, unless --force. - Print the deployed URL at the end. - Update the README.
At $19 a year, the editor, hosting, HTTPS and the signup-form wiring cost less than an hour of setting up a static host, and anyone on the team can edit the page without touching code.
Estimate · Cloudflare Pages is free for a site this small. The domain costs what you already pay for it. The build is a few cents of tokens on your agent plan.
| Plan | Monthly | Annual, per month | What you get |
|---|---|---|---|
| Basic | $0 | $0 | Up to 3 sites on a Carrd-hosted address, with Carrd branding. |
| Pro Lite | — | $0.75 | 3 sites, premium Carrd URLs, no branding, large images and video, premium templates. |
| Pro Standard | — | $1.58 | 10 sites, custom domains, forms, widgets and embeds, analytics, meta tags. |
| Pro Plus | — | $4.08 | 25 sites, advanced forms, site download, redirects, password protection, variables and advanced settings. |
Basic is free for up to 3 sites with Carrd branding; no custom domain, forms, embeds or analytics.
Yes. An AI coding agent such as Claude Code, Codex or Cursor can build a usable personal version in one session with the prompt on this page, running on your own machine.
About $1.58 a month on the Pro Standard plan, $18.96 a year (checked 2026-10-14).
The visual editor that non-technical collaborators can use; Hosting, HTTPS and the domain hookup handled in one dashboard; Ready-made signup forms for Mailchimp, Kit, beehiiv, MailerLite and a dozen other services; Widgets and embeds for Stripe, PayPal, Gumroad and Typeform in a few clicks; Site sharing and transfer between accounts. If any of those matter to you, keep paying.
Yes: Cloudflare Pages (free), Silex (open source), Webstudio (open source).