Native
A page or a component is one .html file: the markup, its <script> and its <style>. Its data comes from the .server.js with the same name. No JSX, no virtual DOM, no framework between you and the platform.
routes/
index.html
shop/[id].html markup, <script>, <style>
shop/[id].server.js load, server actions
shop/_components/
cart-button/cart-button.html
Closed
Braces put a value in text, a colon binds an attribute, a dot a class, an at sign an event, a dollar sign names the script's state. Conditions and loops are tags. Anything outside that list is a build error, not a convention.
<for task in $visible key=task.id>
<li .done="task.done">
<input type="checkbox" @change="toggle(task)">
{task.title}
</li>
</for>
Small
The starter page loads 10.0 kB of JavaScript, gzip, router and runtime included. Each page preloads only the modules it imports, and budgets in pragma.json fail the build when a page grows.
page JS gzip
/ 10.0 KB
CSS 4.1 KB
1 page(s)
dist/ built in 6 ms
Agent-first
Every app ships with AGENTS.md and its docs. pragma check answers with file, line, column, rule and fix, so an agent corrects itself in one pass instead of guessing. Every form is a WebMCP tool, and a page can answer in markdown.
routes/index.html:8:4 error [html/unknown-name]
$count is not declared in the script of routes/index.html:
add `let count = …` (state), `export let count = …` (prop)
or `function count() { … }`