Guide › Build & deploy

This site, explained

Every page of this site, with its islands and the JavaScript it ships. The table is generated while the site is built, from the same route manifest clarusjs explain reads, so it is always the truth about the version you are reading.

RouteIslandsJS on loadJS in all
/ theme-toggle, counter, what-ships (interaction), copy (interaction), todo-summary, todo 7.8 KB 8.5 KB
/guide/attributes theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/build theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/client-routes theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/components theme-toggle, copy ×3 (interaction) 6.2 KB 6.5 KB
/guide/components-in-islands theme-toggle 6.2 KB 6.2 KB
/guide/conditionals theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/deploy theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/explained theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/fragment-navigation theme-toggle, copy ×3 (interaction) 6.2 KB 6.5 KB
/guide/getting-started theme-toggle, pm ×2, copy ×4 (interaction) 7.1 KB 7.5 KB
/guide/holes theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/inputs theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/islands theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/lazy-attach theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/lists theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/project-structure theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/rendering-modes theme-toggle, copy ×3 (interaction) 6.2 KB 6.5 KB
/guide/routing theme-toggle, copy ×3 (interaction) 6.2 KB 6.5 KB
/guide/slots theme-toggle, copy ×2 (interaction) 6.2 KB 6.5 KB
/guide/state theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/stores theme-toggle, copy (interaction) 6.2 KB 6.5 KB
/guide/styles theme-toggle, copy ×5 (interaction) 6.2 KB 6.5 KB
/guide/type-checking theme-toggle, pm ×2, copy ×5 (interaction) 7.1 KB 7.5 KB
/guide/verbatim theme-toggle 6.2 KB 6.2 KB
/guide/what-is-clarusjs theme-toggle 6.2 KB 6.2 KB
/reference/cli theme-toggle, copy ×2 (interaction) 6.2 KB 6.5 KB
/reference/island-attributes theme-toggle 6.2 KB 6.2 KB
/reference/runtime theme-toggle, copy ×2 (interaction) 6.2 KB 6.5 KB
/reference/template-syntax theme-toggle 6.2 KB 6.2 KB
/reference/vite-plugin theme-toggle, copy ×2 (interaction) 6.2 KB 6.5 KB
/releases theme-toggle 6.2 KB 6.2 KB
/releases/0.1.0 theme-toggle 6.2 KB 6.2 KB
/releases/0.2.0 theme-toggle 6.2 KB 6.2 KB
/releases/0.3.0 theme-toggle 6.2 KB 6.2 KB
/releases/0.4.0 theme-toggle 6.2 KB 6.2 KB
/releases/0.5.0 theme-toggle 6.2 KB 6.2 KB
/releases/0.6.0 theme-toggle 6.2 KB 6.2 KB
/tour/1 none 6.8 KB 6.8 KB
/tour/2 none 6.8 KB 6.8 KB
/tour/3 none 6.8 KB 6.8 KB
/playground none 0.0 KB 0.0 KB

Sizes are gzip. "JS on load" is the island loader, the shared runtime and the islands that attach right away; copy buttons attach on first interaction, so their code is only in "JS in all".

How this page is made

A page can read the manifest with readManifest(). While the site is built, any page that reads it is rendered again once the manifest is written; outside a build it returns null.

@import { readManifest } from 'clarusjs/manifest'

@for (entry of Object.entries(readManifest()?.routes ?? {}); track entry[0]) {
  <p>{{ entry[0] }}: {{ entry[1].islands.length }} islands</p>
}

To see one page in detail, run clarusjs explain /guide/state after a build.