Install
Creating a workspace — the one command that scaffolds it, the tree it leaves you, and the playground it opens on.
One command scaffolds the workspace, installs the framework, and copies in a sample property to preview against. A second one serves it.
Goal
A template workspace on your machine, running, with the playground open on the starter fixture.
Steps
Scaffold it. The name is the directory, and it becomes the template's key
and its package.json name:
npm create @homepages/concrete my-templatenpm is the one supported package manager: concrete check grades the
package-lock.json this install writes. The framework version it pins is read
from the registry as it runs, so a fresh workspace is never a release behind.
Two flags, each after a -- so npm passes them through:
-- --no-install stamps the tree and installs nothing, -- --no-git skips the
repository it would otherwise initialise.
Look at what you got.
my-template/
package.json private; the Node range, the framework, React, three scripts
template.ts the one file found by name — key, name, format, pages, fixture list
tsconfig.json extends @homepages/concrete/tsconfig; "@/*" -> the root
eslint.config.mjs re-exports the framework's preset
globals.css the stylesheet entry: Tailwind, the framework, your tokens
icon.svg the template's icon, imported by template.ts
.gitignore node_modules/, .concrete/ and .env
.npmrc makes an unsupported Node refuse to install
README.md
AGENTS.md where an agent working here should read, and the loop to run
pages/home.tsx one page, placing the starter section
sections/
hero/section.tsx one section: two filled slots, two facts, and its markup
fixtures/
index.json the fixture list template.ts names, in playground order
starter-home.json dev data: one content fixture filling the hero
properties/starter/ the property document that fixture is on, with its mediatemplate.ts is the only name the framework reserves. Everything else —
components/, lib/, fonts/, assets/, even fixtures/ — is yours to
organise, because nothing else is found by file name: your sections are found
because your pages place them, your stylesheet because template.ts imports it,
and your fixtures because template.ts names their list.
The workspace and versioning is the
reasoning in full.
fixtures/properties/starter/ is not part of the scaffold. After installing,
the scaffolder ran your workspace's own concrete property add starter, which
copied that property out of the sample library — its facts, its photographs, its
documents. If the install or the copy did not finish, the command that completes
it was printed for you to run.
Serve it.
cd my-template
npm run devconcrete dev — http://localhost:5180/That script is concrete dev; --port moves it if 5180 is taken.
Open it. The address lands on the canvas: the page on a stage, rendered through the same editor kernel the application uses. Click the headline and the sidebar becomes the hero's panel — a card per slot, each with a chip saying where its value came from. Type into a card and the frame re-renders.
An edit saves into the fixture's files, so a reload, and anyone you share the link with, opens the fixture as you left it.
View live opens the same page with no editor at all — the markup as the publisher would emit it, beneath the playground's control — which is the one to trust when you are checking layout. Both views read the same content; only the chrome differs.
The playground's control, behind the round button at the top left, is how you change
what you are previewing: the page (the canvas, or the live site), the property and
its content. Right now there is one option, Starter home, and it is the fixture
in fixtures/starter-home.json. concrete property list prints the other sample
properties you can copy in beside it.
What you learned
- What the framework reserves. One file,
template.ts; the rest of the tree is yours, and the toolchain is the package's — the workspace and versioning. - What you are previewing against. A fixture: a property plus the content
a fill would have written. Nothing under
fixtures/ever reaches a published page — fixtures. - What the two views are. The canvas is the editor's own surface over your section; the live view is the published render. They are two chromes over one render path.
Next
Read the starter — the four files, construct by construct.
