Skip to content
BearMinion

← Blog

Create an Astro site you edit by clicking

One command, three questions, and you have an Astro site you change by clicking on it. Content is JSON in your repo; production is plain static HTML.

You need Node.js 22.12 or newer. That's the whole list.

Create the site

In a terminal, run:

npm create bearminion@latest my-site

It asks three things: the folder, the site's name and its web address. Press Enter to skip the address; you can set it later in the editor. Then it copies the template, installs it and makes the first git commit.

pnpm, yarn and bun work the same way: pnpm create bearminion, and so on.

Edit it

Then start the editor:

cd my-site
npm run dev

Open the address it prints (usually http://localhost:4321). The editor opens around your page: your pages and settings on the left, the selected section's options on the right.

The BearMinion editor around a page, with the page list on the left and the inspector on the right
The editor opens around your own page.

Click any text to change it. Select words in a heading to make them bold, italic or a different font.

A word selected in a heading, with the formatting bar above it
Select words to change their weight, style or font.

Hover a section for its toolbar: move it, add one above or below, duplicate it, open its settings or delete it. Add opens the picker with every section your site has.

The Add section picker showing section thumbnails
Every section, with a sketch of its layout.

Click an image to upload a new one or pick one from the library.

The Choose image dialog with the image library open
Uploads go to src/assets/uploads/.

Press Ctrl+S (Cmd+S on a Mac) to save. Your changes land in content/ as JSON, and new images in src/assets/uploads/. Until you save, edits stay in the browser and survive a reload.

Put it online

  1. Push the folder to a new GitHub, GitLab or Bitbucket repository.
  2. Import it in Vercel, Netlify or Cloudflare. They all detect Astro; if one asks, the build command is npm run build and the output folder is dist.
  3. In the editor, set your address under Site → URL, save, commit and push. Canonical links, the sitemap and link previews use it.

From then on it's edit, save, commit, push. Your host rebuilds the site on every push.

What ends up in production

Nothing of the editor. It only exists while npm run dev runs, and npm run build leaves it out entirely: you ship static HTML with no database and no server.

Next

Wake the minion.

Run one command, answer three boring questions and watch it do the rest. Template copied, dependencies installed, first commit done.

Now it gets out of your way so you can actually work.

  1. npm create bearminion@latest
  2. Created My Site in my-site
  3. Installed dependencies
  4. →Next: cd my-site, npm run dev