Title: WebJs Gallery
Open Graph Title: WebJs Gallery
Description: Explore WebJs features, interactive components, and real working examples.
Open Graph Description: Explore WebJs features, interactive components, and real working examples.
Domain: gallery.webjs.dev
| og:type | website |
| og:image | /opengraph-image |
| twitter:image | /twitter-image |
| twitter:card | summary_large_image |
| color-scheme | light dark |
Links:
| Gallery | https://gallery.webjs.dev/ |
| Docs | https://webjs.dev/docs |
| GitHub | https://github.com/webjsdev/webjs |
| Routing Routing Add a URL to the app, static or with a dynamic [id] segment. The file is the route, so there is no table to register it in. | https://gallery.webjs.dev/features/routing |
| Boundaries Routing Abandon a render because something is missing or not allowed. Throw notFound / forbidden / unauthorized and the nearest boundary file catches it. | https://gallery.webjs.dev/features/boundaries |
| Metadata Routing Give a page its own title, description, and social preview without writing head markup yourself. | https://gallery.webjs.dev/features/metadata |
| Components Components Make one part of the page respond to a click or hold state. A page never hydrates, so interactivity lives in a component. | https://gallery.webjs.dev/features/components |
| Directives Components Render a keyed list, or swap a single node when state changes, without re-rendering the component around it. | https://gallery.webjs.dev/features/directives |
| Async render Components Get server data into the first paint. Await it in async render() rather than fetching after mount, which SSR never runs. | https://gallery.webjs.dev/features/async-render |
| Server actions Data & actions Call server code from the browser by importing the function. No fetch, no endpoint to name, and the types survive the trip. | https://gallery.webjs.dev/features/server-actions |
| Route handlers Data & actions Expose JSON to a caller outside the app. A server-only route.ts, the WebJs equivalent of a Next route handler. | https://gallery.webjs.dev/features/route-handler |
| Forms Data & actions Write data from a form that still works with JS off. Binding the action to the form is the whole wiring. | https://gallery.webjs.dev/features/forms |
| Optimistic UI Data & actions Make a mutation feel instant. optimistic() applies the change immediately and rolls it back if the server refuses. | https://gallery.webjs.dev/features/optimistic-ui |
| Client router Client & streaming Navigate without a full page reload. Automatic the moment a page renders a component, with nothing to import or configure. | https://gallery.webjs.dev/features/client-router |
| View transitions Client & streaming Cross-fade a navigation instead of snapping. One opt-in meta, plus a marker for elements that must survive the swap. | https://gallery.webjs.dev/features/view-transitions |
| Streaming actions Client & streaming Show tokens or progress as the server produces them. An action returning an async generator, consumed with for await. | https://gallery.webjs.dev/features/streaming |
| Stream updates Client & streaming Change one element after a write, like appending a row or bumping a count, without redrawing the region around it. | https://gallery.webjs.dev/features/stream |
| Suspense boundary Client & streaming Paint the page before a slow region is ready. The fallback flushes on the first byte and the content streams in behind it. | https://gallery.webjs.dev/features/suspense |
| Frames Client & streaming Refresh one region on its own with no navigation, like a filtered list or a tab panel. Zero component JS, full-nav fallback with JS off. | https://gallery.webjs.dev/features/frames |
| WebSockets Real-time Hold a live two-way connection instead of polling. A WS(ws, req) route export on the server, connectWS() on the client. | https://gallery.webjs.dev/features/websockets |
| Broadcast Real-time Push one update to every client connected on a WebSocket path, so a change made in one of them shows up in the rest. Optionally excluding the sender. | https://gallery.webjs.dev/features/broadcast |
| Auth Auth & sessions Add login and a route only signed-in visitors can open, without rolling password hashing and session cookies yourself. | https://gallery.webjs.dev/features/auth |
| Sessions Auth & sessions Remember something per visitor across requests. A signed cookie applied by middleware, read and written with getSession(). | https://gallery.webjs.dev/features/sessions |
| Caching Built-ins Stop re-rendering a page that is identical for every visitor. export const revalidate, with the rule for when that is safe. | https://gallery.webjs.dev/features/caching |
| Env vars Built-ins Read config and secrets at runtime while keeping the secrets server-side. WEBJS_PUBLIC_ is the only prefix the browser sees. | https://gallery.webjs.dev/features/env |
| Rate limiting Built-ins Stop one caller hammering an endpoint. The rateLimit() middleware returns a 429 with Retry-After until the interval resets. | https://gallery.webjs.dev/features/rate-limit |
| File storage Built-ins Accept an upload and serve it back, streamed both ways, with nothing buffered in memory and nothing written into public/. | https://gallery.webjs.dev/features/file-storage |
| Service worker Built-ins Keep the app usable offline. The opt-in service worker, registered from a browser-only lifecycle hook (never a page or layout). | https://gallery.webjs.dev/features/service-worker |
| Optimistic todo Full App See the pieces composed in one real feature: the declarative optimistic() list API, progressive-enhancement forms, accessible labels, the modules split, and SQLite. Open app | https://gallery.webjs.dev/examples/todo |
| https://webjs.dev | |
| Docs | https://webjs.dev/docs |
| UI components | https://webjs.dev/ui |
| Blog | https://webjs.dev/blog |
| GitHub | https://github.com/webjsdev/webjs |
Viewport: width=device-width, initial-scale=1