1.0.4 robotstxt and the sitemap say how long they may be kept

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.

Put it online with Brimsites, the hosting made for Brim.js

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.

HomeNo changes

Towers that catch the last light

Forty floors on the harbour, open since spring.

See the building

src/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 agent

Add the Lisbon flat as a project, with the six photos I attached. Keep it private until I look.

  1. brim_siteProject: client, year, photo, gallery, story
  2. brim_upload_image6 pictures added to the library
  3. brim_create_itemLisbon flat, private

Lisbon flat is ready as a private project. Publish it from the editor when you like it.

All 30 tools it gets

Pages

  • brim_site
  • brim_read_page
  • brim_page_content
  • brim_update_page
  • brim_list_page_templates
  • brim_create_page
  • brim_move_page
  • brim_delete_page

Elements

  • brim_set_text
  • brim_set_element
  • brim_reset_element
  • brim_block_schema

Items

  • brim_list_items
  • brim_create_item
  • brim_update_item
  • brim_delete_item
  • brim_translate_item
  • brim_reorder_items

Pictures and video

  • brim_list_media
  • brim_upload_image
  • brim_start_video_upload
  • brim_video_status
  • brim_list_videos

The site

  • brim_site_settings
  • brim_set_site_settings
  • brim_list_redirects
  • brim_set_redirects
  • brim_list_form_responses
  • brim_list_history
  • brim_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 types

src/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" },
  ],
});
Glass towers seen from the street at dusk
Harbour TowersNorrvik Port, 2025/projects/harbour-towers

Forms 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 work

1 / 2

What are we designing?

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.

Editing and handover
The API and the MCP refuse what a role may not do.
WhatOwnerEditor
Write texts, change pictures, start itemsYesYes
Publish, hide and deleteYesYes
Add, move and delete pagesYesYes
Read form messagesYesYes
Site settingsYesYes
Templates and redirectsYesNo
Form emailsYesNo
Add people and change rolesYesNo

And the rest of a real site, already in.

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 init

0 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.

WhatBrim.jsWebsite buildersWordPress
The designAny design, in real codeTheir sections and templates, adjustedA theme, or a page builder plugin
How the owner editsClicks on the page and typesClicks on the page and typesIn the dashboard, block by block
What an edit can breakNot the layout: that stays in codeThe layout, which moves with the contentDepends on the theme and its blocks
The codeYours, in GitInside their platformPHP themes and plugins
Forms, SEO, languages, redirectsBuilt inBuilt in, often by planMostly plugins
AI agentsWrite the site, then edit it through its MCPWhatever AI the builder offersThrough plugins
Keeping it up to dateOne packageDone for youCore, theme and every plugin
Where it runsBrimsites, your own server or static filesOn their platformAny PHP host
LeavingYour code, one SQLite file and the uploadsOften an export of some contentYour 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 --wait

Bring your local content online

$ brimsites restore --content replace --yes

my-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 deploy

Start 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.

Read the guide first