Publish a website · Exercise 01
Choose your stack
Pick the tools your site is built with, based on what you described, then scaffold the project and see it run on your machine.
Paste this into your agent
Copied! Now paste it into your agent. No agent yet? Here's how to get one.
Choose your stack
A stack is the set of tools your site is built with. There’s no single right one: a three-page personal site and a blog you post to every week want different things. Your agent recommends one based on what you described, explains why, and you decide.
The options
Every one of these runs on Cloudflare Workers, and none of them is the wrong choice.
| Stack | Good for |
|---|---|
| Plain HTML and CSS | A few pages that don’t change often. Nothing to learn but the web itself. |
| Hono with JSX | Pages your Worker renders on each request, forms, and small dynamic features. |
| Astro | Content sites: blogs, portfolios, docs. Static pages, with room for dynamic ones. |
| EmDash | A site you edit in an admin panel, like WordPress. Built on Astro. |
| vinext | App-like sites in React, or if you already know Next.js. In beta. |
More about each: Hono, Astro, EmDash, and vinext.
Simpler is usually better. You can start with plain HTML and add a Worker route for the one dynamic thing you need, without switching to a framework.
What you’ll build
A new project for your site, scaffolded with the stack you chose, running on your machine. Your agent also writes down the choice in an AGENTS.md file in the project, so any agent that opens it later knows how it’s built.
Prerequisites
Your agent can help you with these.
- Node.js installed.
- A free Cloudflare account.
- The
cfCLI logged in to your Cloudflare account (cf auth whoami).