Your agent builds it.
Your client can edit it.
Brim.js is the web framework where every site is editable. AI writes any design it likes in real code, and every word, picture and button can still be changed on the page. Built on Astro.
npm create @brimsites/brim@latest my-site
Then npm install, npx brim user add you@example.com and npm run dev. The editor is at /admin/edit.
Build me a website with Brim.js, the web framework where every site is editable. It is built on Astro. The docs are at brimjs.org/docs.
- Run npm create @brimsites/brim@latest my-site, then cd my-site and npm install. Read AGENTS.md and README.md before you write anything.
- Build the pages I describe below in src/pages and src/components. Every visible text, image, link and button is a Brim component (Text, RichText, Image, Link, Button) with a stable, unique nodeId.
- Design freely: any layout, CSS, animation, island or npm package. Theme colors go in the --brim-theme-* variables.
- Put repeatable content (projects, articles, team) in src/content-types, pages I will add later in src/page-templates, forms in src/forms.ts and contact details in src/site-settings.ts.
- Put the starting items in seed/ and add them with npx brim seed while npm run dev is running.
- Run npx brim check, create my login with npx brim user add, then look at the site and at the editor (/admin/edit) on desktop and on mobile.
- When I say it is ready, put it online with Brimsites (brimsites.com), or on my own server with npm run build and npm start. Then save the live site's MCP (/admin/mcp), so you can change its content later.
My site: [describe it here: what it is, who it is for, the pages and the look you want]
Works with Claude Code, Codex, Cursor and any agent that can run commands. Every Brim site also serves its own MCP for content edits later.
Custom websites, editable like a website builder.
No templates and no blocks to fit into. Every site is designed from scratch in code, animations included, and its owner still clicks, types and saves.
The code stays yours. The words become theirs.
Give an element a nodeId and it can be edited. What the owner saves lives in SQLite under that name, and your source files are never rewritten. Try it on this page.
Towers that catch the last light
Forty floors on the harbour, open since spring.
See the buildingsrc/pages/index.astro, unchanged
---
import { Text, Image, Link } from "@brimsites/brimjs/components";
---
<section class="hero">
<Text nodeId="hero-title" as="h1">
Towers that catch the last light
</Text>
<Text nodeId="hero-lead">
Forty floors on the harbour, open since spring.
</Text>
<Link nodeId="hero-cta" href="/projects">
See the building
</Link>
<Image nodeId="hero-photo" src="/towers.jpg" alt="" />
</section>What the owner saved
- hero-title
- as in the code
- hero-lead
- as in the code
- hero-cta
- as in the code
- hero-photo
- as in the code
Your agent can come back to work, too.
Every Brim site serves its own MCP at /admin/mcp. Claude, Codex or Cursor change content there with a role and a history, never by touching the code or the database.
Connect an agentAdd the Lisbon flat as a project, with the six photos I attached. Keep it private until I look.
brim_siteProject: client, year, photo, gallery, storybrim_upload_image6 pictures added to the librarybrim_create_itemLisbon flat, private
Lisbon flat is ready as a private project. Publish it from the editor when you like it.
Put the studio film on the About page, above the team.
brim_start_video_uploadA place on the video host to send the file tobrim_video_statusReady, with its posterbrim_set_elementabout-film now plays it
The film is live on the About page. I sent it straight to your video host.
Translate the spring article into Romanian.
brim_list_itemsspring, in Englishbrim_translate_itemprimavara, private, linked to spring
The Romanian article is a private draft, linked to the English one.
The price list changed yesterday and it is wrong. Put the old one back.
brim_list_historyPrice list, changed yesterday at 16:20brim_restore_historyThe version from before
The old prices are live again. This can be taken back too.
All 30 tools it gets
Pages
brim_sitebrim_read_pagebrim_page_contentbrim_update_pagebrim_list_page_templatesbrim_create_pagebrim_move_pagebrim_delete_page
Elements
brim_set_textbrim_set_elementbrim_reset_elementbrim_block_schema
Items
brim_list_itemsbrim_create_itembrim_update_itembrim_delete_itembrim_translate_itembrim_reorder_items
Pictures and video
brim_list_mediabrim_upload_imagebrim_start_video_uploadbrim_video_statusbrim_list_videos
The site
brim_site_settingsbrim_set_site_settingsbrim_list_redirectsbrim_set_redirectsbrim_list_form_responsesbrim_list_historybrim_restore_history
Declare it once. The owner keeps it going.
Projects, articles, products, people: describe the fields in TypeScript. The owner gets a form, every published item gets a page, and lists fill themselves.
Content typessrc/content-types/project.ts
import { defineContentType } from "@brimsites/brimjs";
import ProjectPage from "../templates/ProjectPage.astro";
export const project = defineContentType({
key: "project",
label: "Projects",
singular: "Project",
slug: "projects",
component: ProjectPage,
ordered: true,
fields: [
{ name: "client", label: "Client", type: "text" },
{ name: "year", label: "Year", type: "number" },
{ name: "cover", label: "Photo",
type: "image", required: true },
{ name: "photos", label: "Gallery", type: "gallery" },
{ name: "story", label: "Story", type: "blocks" },
],
});
/projects/harbour-towersForms people finish.
Ask in steps, with photos to click and questions that appear only when they matter. Answers are kept in the site's database and emailed to the owner. Spam is stopped without a captcha.
How forms workQuote request, as the owner reads it
What are we designing?
A flat
A house
A gardenWhich city?
src/forms.ts
export const quote = defineForm({
key: "quote",
name: "Quote request",
fields: [
{ type: "step", label: "Your home" },
{ name: "space", label: "What are we designing?",
type: "radio", display: "cards", required: true,
options: [
{ label: "A flat", image: "/flat.jpg" },
{ label: "A house", image: "/house.jpg" },
{ label: "A garden", image: "/garden.jpg" },
] },
{ type: "step", label: "Where" },
{ name: "city", label: "Which city?",
type: "radio", required: true,
options: ["Bucharest", "Cluj", "Other"] },
{ name: "town", label: "Which town?", type: "text",
showWhen: { field: "city", equals: ["Other"] } },
],
});- The owner adds steps, cards and conditions in the sidebar, and sees each step on the page while changing it.
- Each response shows the cards as they were asked, with the picked ones marked. The email links straight to it.
- The visitor's browser does a little work before it sends, and more while the site is attacked. Turnstile and hCaptcha are there if you want them.
- Emails are the site's code: form messages, invitations, role changes and resets, written in src/emails.ts.
Then hand over the keys.
The editor on Cozy Homes, an interior designer's site in Bucharest.
Drafts until Save
Edits on the page wait in a draft only the editor shows. Undo and Redo step through them, Discard throws them away.
90 days of history
Who changed what, and when. Restore puts back a text, an item or a whole deleted page.
Accounts that explain themselves
Adding someone, changing a role or resetting access emails them from the site, with a link to choose their own password. Forgot password works by itself.
| What | Owner | Editor |
|---|---|---|
| Write texts, change pictures, start items | Yes | Yes |
| Publish, hide and delete | Yes | Yes |
| Add, move and delete pages | Yes | Yes |
| Read form messages | Yes | Yes |
| Site settings | Yes | Yes |
| Templates and redirects | Yes | No |
| Form emails | Yes | No |
| Add people and change roles | Yes | No |
And the rest of a real site, already in.
Content
- Page templatesOwners add landing and service pages from templates you write.
- Categories and tagsVocabularies the owner keeps, in an order they choose.
- Listings and searchFilters, search and pages, all in the address and without script.
- LanguagesEach language has its own pages, linked to their translations.
- Starting contentSeed files that only add, and never undo the owner's work.
Design
- Your CSS winsBrim's own styles are minimal, in their own cascade layer.
- BlocksGalleries, carousels, accordions, maps and more, inside your layout.
- NavigationMenus the owner reorders, or that build themselves from content.
- Islands and npmReact, Vue or Svelte where you need it. It is an Astro project.
- Brand colorsYours come first in every color picker.
Pictures and video
Found and shared
People
Server
- Your own endpointsNext to the pages, with the site's database and sign-in.
- brim checkFinds duplicate ids and contact details left in code.
- Static copyPlain files for any host, without the editor or forms.
- Cache contractsTells your CDN what changed and which queries matter.
- Remote databaseSQLite on disk, or libSQL somewhere else.
Already have an Astro site?
Brim.js goes in without changing how it looks. Then make it editable one element at a time, or ask your agent to.
$ npx @brimsites/brimjs init0 KB
of JavaScript on a page until something on it needs some. Forms, carousels and streamed video bring their own.
- No editor in the pages
- Visitors download none of it. Changing anything needs a signed-in person or a token.
- Secrets kept as hashes
- Passwords with scrypt, sessions and tokens as SHA-256, in HttpOnly cookies.
- Forms that defend themselves
- Signed descriptions, single-use tokens, rate limits and work that grows under attack.
- One small server
- One Node process and one SQLite file. Copy the file and the uploads and you have a backup.
Builder or WordPress? You need neither.
A builder is easy to edit but holds the design back. WordPress can be anything, once enough plugins agree. Brim.js keeps the code yours and the page editable.
| What | Brim.js | Website builders | WordPress |
|---|---|---|---|
| The design | Any design, in real code | Their sections and templates, adjusted | A theme, or a page builder plugin |
| How the owner edits | Clicks on the page and types | Clicks on the page and types | In the dashboard, block by block |
| What an edit can break | Not the layout: that stays in code | The layout, which moves with the content | Depends on the theme and its blocks |
| The code | Yours, in Git | Inside their platform | PHP themes and plugins |
| Forms, SEO, languages, redirects | Built in | Built in, often by plan | Mostly plugins |
| AI agents | Write the site, then edit it through its MCP | Whatever AI the builder offers | Through plugins |
| Keeping it up to date | One package | Done for you | Core, theme and every plugin |
| Where it runs | Brimsites, your own server or static files | On their platform | Any PHP host |
| Leaving | Your code, one SQLite file and the uploads | Often an export of some content | Your files and a MySQL database |
When a template is enough and nobody will write code, a builder is quicker to start. When you need one particular plugin, WordPress has more of them than anyone.
Made with Brim.js. At home on Brimsites.
Brimsites is the hosting from the team that makes Brim.js. Connect your project and it runs the whole site, editor included. It starts free.
- Connect a repository or drop a folder
- Every push to the linked branch deploys again.
- Everything Brim.js needs, running
- The server, the database, the editor, forms and the site MCP, in the site's own container.
- Cached on a CDN, live in a second
- Pages are served from the edge, and a saved change replaces them.
- Roll back, export, restore
- Every deploy has its log, and content moves in and out with a copy kept first.
In your project
$ npm install -g @brimsites/brimsites
$ brimsites login
$ brimsites sites create "My site" --link
$ brimsites deploy --waitBring your local content online
$ brimsites restore --content replace --yesmy-site.brimsites.com
Your own serverAny machine with Node and a disk: npm run build, then npm start.
Static filesnpm run build:static, for any host, without the editor and forms.
All the ways to deployStart one now. Let your agent do the typing.
npm create @brimsites/brim@latest my-site
Then npm install, npx brim user add you@example.com and npm run dev. The editor is at /admin/edit.
Build me a website with Brim.js, the web framework where every site is editable. It is built on Astro. The docs are at brimjs.org/docs.
- Run npm create @brimsites/brim@latest my-site, then cd my-site and npm install. Read AGENTS.md and README.md before you write anything.
- Build the pages I describe below in src/pages and src/components. Every visible text, image, link and button is a Brim component (Text, RichText, Image, Link, Button) with a stable, unique nodeId.
- Design freely: any layout, CSS, animation, island or npm package. Theme colors go in the --brim-theme-* variables.
- Put repeatable content (projects, articles, team) in src/content-types, pages I will add later in src/page-templates, forms in src/forms.ts and contact details in src/site-settings.ts.
- Put the starting items in seed/ and add them with npx brim seed while npm run dev is running.
- Run npx brim check, create my login with npx brim user add, then look at the site and at the editor (/admin/edit) on desktop and on mobile.
- When I say it is ready, put it online with Brimsites (brimsites.com), or on my own server with npm run build and npm start. Then save the live site's MCP (/admin/mcp), so you can change its content later.
My site: [describe it here: what it is, who it is for, the pages and the look you want]
Works with Claude Code, Codex, Cursor and any agent that can run commands. Every Brim site also serves its own MCP for content edits later.