You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(website): restore the claims the trim broke and cover the demo grid
The previous commit traded accuracy for grid height and lost. Trimming
the what-is-webjs card cut the two phrases that were carrying it: without
'with JSDoc in node_modules' the framework claim is flatly false, since
core resolves its default entry to dist/webjs-core.js, and without 'read
from one source' the AGENTS.md sentence claims five tools read a file
three of them do not. Both phrases are back, and the length is won by
dropping a convention detail instead.
The demo grid was also entirely unasserted, so it could have been
deleted with every test in the file still green. It now pins both panels,
their correspondence, and the accessible name each block carries, plus a
snippet-window assertion mirroring the one on the sibling page.
The role=region fix goes site-wide rather than stopping at one page: the
prohibited-name construct was on ten more blocks. The one block that is
not focusable loses its name instead of gaining a role, since nothing can
focus it to hear one.
<h3class="font-display font-bold text-lg leading-[1.25] m-0">Pages + API + components</h3>
386
386
<pclass="m-0 text-sm leading-[1.6] text-fg-muted">SSR pages, web components, server actions, Drizzle, streaming, and a browsable feature gallery. Auth (login, sessions, a protected route) ships as a gallery card. The default.</p>
<pclass="m-0 text-sm leading-[1.6] text-fg-muted">A backend-only app, no UI or SSR. File-based route handlers, modules, middleware, rate limiting, WebSockets, a database, and a backend-features gallery.</p>
body: 'Predictable file conventions, one server function per file, and an explicit .server.ts boundary keep the context small, so an agent edits one route without reading the whole app, and a request written in ordinary words still lands in the right shape. Every app ships one AGENTS.md contract that Claude Code, Cursor, Copilot, Gemini, and opencode all read, and the framework is plain JavaScript rather than a compiled bundle.',
164
+
body: 'Predictable file conventionsand an explicit .server.ts boundary decide the shape of an app, so an agent edits one route without reading the whole app, and ordinary words are enough to ask for a new one. Every app ships an AGENTS.md contract that Claude Code, Cursor, Copilot, Gemini, and opencode read from one source, and the framework itself is plain JavaScript with JSDoc in node_modules rather than a compiled bundle.',
consttitle='Why WebJs - The Framework Your AI Agent Already Understands';
26
26
constdescription=
27
-
'WebJs is a full-stack JavaScript framework you can describe in plain language, because the file conventions land an app in the right shape whatever model you use. Nothing is hidden behind a build step, so any AI model reads the framework source from node_modules, reasons about the whole stack, and debugs it. No training data required, no single blessed model, on the web components and HTML every model already knows.';
27
+
'WebJs is a full-stack JavaScript framework you describe in plain language, because the file conventions land an app in the right shape whatever model you use. Nothing is hidden behind a build step, so any AI model reads the framework source from node_modules, reasons about the whole stack, and debugs it. No training data required, no single blessed model, on the web components and HTML every model already knows.';
28
28
return{
29
29
title,
30
30
description,
@@ -200,7 +200,7 @@ Counter.register('counter');
200
200
<preclass="scroll-thin m-0 p-4 overflow-x-auto font-mono text-sm leading-[1.7] [tab-size:2] flex-1" role="region" tabindex="0" aria-label="The files a WebJs app grows for that request"><code>app/book/page.ts
201
201
<spanclass="text-fg-subtle"> the page, server-rendered to real HTML</span>
202
202
app/staff/bookings/page.ts
203
-
<spanclass="text-fg-subtle"> the list, behind the session check</span>
203
+
<spanclass="text-fg-subtle"> the staff view, its own route</span>
204
204
modules/bookings/actions/create.server.ts
205
205
<spanclass="text-fg-subtle"> the write, server-side by extension</span>
0 commit comments