# WebJs UI > Accessible components and blocks for WebJs apps, built on native HTML and styled with Tailwind v4. The source is copied into your app with `npx @webjsdev/ui add ` and is yours to edit. Open Source. Open Code. For the framework itself (routing, components, server actions, the CLI) read https://webjs.dev/llms.txt, or https://webjs.dev/llms-full.txt for every page of both in one file. WebJs UI is the component library for WebJs apps, and the /ui site is itself a WebJs app. Every page below links to its markdown, with each demo's source inlined, so reading them teaches the components and the WebJs idioms they are written in: light-DOM custom elements, Tailwind classes on native elements, server rendering and progressive enhancement. Add a component to an app with the command `npx @webjsdev/ui add `. Every page in one file: https://webjs.dev/ui/llms-full.txt ## Sections - [WebJs UI](https://webjs.dev/ui/llm): Composable, accessible components with thoughtful defaults. Build your own component library with code you can customize, extend, and make your own. - [Building Blocks for the Web](https://webjs.dev/ui/llm/blocks): Clean, modern building blocks. Copy and paste into your apps. Works with any WebJs app. Open Source. Free forever. - [Area Charts](https://webjs.dev/ui/llm/charts/area): A collection of ready-to-use chart components, drawn as SVG on the server. From basic charts to rich data displays, copy and paste into your apps. - [Typeset](https://webjs.dev/ui/llm/typeset): Typography for markdown you don't control. - [New Project](https://webjs.dev/ui/llm/create): Customize everything. Pick your style, base color, theme, fonts, radius and icons, and create your own version of WebJs UI. - [Bar Charts](https://webjs.dev/ui/llm/charts/bar): A collection of ready-to-use chart components, drawn as SVG on the server. From basic charts to rich data displays, copy and paste into your apps. - [Line Charts](https://webjs.dev/ui/llm/charts/line): A collection of ready-to-use chart components, drawn as SVG on the server. From basic charts to rich data displays, copy and paste into your apps. - [Pie Charts](https://webjs.dev/ui/llm/charts/pie): A collection of ready-to-use chart components, drawn as SVG on the server. From basic charts to rich data displays, copy and paste into your apps. - [Radar Charts](https://webjs.dev/ui/llm/charts/radar): A collection of ready-to-use chart components, drawn as SVG on the server. From basic charts to rich data displays, copy and paste into your apps. - [Radial Charts](https://webjs.dev/ui/llm/charts/radial): A collection of ready-to-use chart components, drawn as SVG on the server. From basic charts to rich data displays, copy and paste into your apps. - [Tooltip Charts](https://webjs.dev/ui/llm/charts/tooltip): A collection of ready-to-use chart components, drawn as SVG on the server. From basic charts to rich data displays, copy and paste into your apps. - [Tailwind Colors in Every Format](https://webjs.dev/ui/llm/colors): The complete Tailwind color palette in HEX, RGB, HSL, CSS variables, and classes. Ready to copy and paste into your project. - [Authentication](https://webjs.dev/ui/llm/examples/authentication): Authentication forms built using the components. - [Dashboard](https://webjs.dev/ui/llm/examples/dashboard): A set of beautifully designed components that you can customize, extend, and build on. Start here then make it your own. Open Source. Open Code. - [Playground](https://webjs.dev/ui/llm/examples/playground): The OpenAI Playground built using the components. - [RTL](https://webjs.dev/ui/llm/examples/rtl): RTL example page with right-to-left language support. - [Tasks](https://webjs.dev/ui/llm/examples/tasks): A task and issue tracker built using the components. - [Introducing Sera](https://webjs.dev/ui/llm/sera): Minimal. Editorial. Typographic. Underline Controls and Uppercase Headings. Shaped by Print Design Principles. ## AI Elements - [Chain of Thought](https://webjs.dev/ui/llm/docs/ai-elements/chain-of-thought): Displays a summary that expands into the steps an agent took. - [Chat](https://webjs.dev/ui/llm/docs/ai-elements/chat): The thread. Message Scroller keeps your place while the reply streams. - [Checkpoint](https://webjs.dev/ui/llm/docs/ai-elements/checkpoint): Marks a point in the conversation you can return to. - [Confirmation](https://webjs.dev/ui/llm/docs/ai-elements/confirmation): Asks for approval before a tool runs. - [Context](https://webjs.dev/ui/llm/docs/ai-elements/context): How much of the context window the conversation has used. - [File Tree](https://webjs.dev/ui/llm/docs/ai-elements/file-tree): The files the agent changed, as a folder tree. - [Inline Citation](https://webjs.dev/ui/llm/docs/ai-elements/inline-citation): A source in the sentence that opens on hover. - [Message](https://webjs.dev/ui/llm/docs/ai-elements/message): One turn. The person's message, and the agent's reply with its actions. - [Model Selector](https://webjs.dev/ui/llm/docs/ai-elements/model-selector): Two menus. One picks the model the agent runs, the other picks how hard it thinks. - [Plan](https://webjs.dev/ui/llm/docs/ai-elements/plan): Displays the steps the agent plans to take, and how far it has got. - [Prompt Input](https://webjs.dev/ui/llm/docs/ai-elements/prompt-input): A message field with attachments and a send button. - [Queue](https://webjs.dev/ui/llm/docs/ai-elements/queue): Displays the agent's todo list, split into what is left and what is done. - [Reasoning](https://webjs.dev/ui/llm/docs/ai-elements/reasoning): Displays the agent's thinking as it streams. - [Sources](https://webjs.dev/ui/llm/docs/ai-elements/sources): Displays the links the agent used for a reply. - [Stack Trace](https://webjs.dev/ui/llm/docs/ai-elements/stack-trace): Displays a failed tool call and its stack frames. - [Subagent](https://webjs.dev/ui/llm/docs/ai-elements/subagent): Displays a subagent run, with its tool calls and result. - [Suggestion](https://webjs.dev/ui/llm/docs/ai-elements/suggestion): A short prompt you can send to the agent in one click. - [Task](https://webjs.dev/ui/llm/docs/ai-elements/task): Displays the steps the agent takes, as it takes them. - [Terminal](https://webjs.dev/ui/llm/docs/ai-elements/terminal): Displays a command the agent runs, with its output as it streams. - [Test Results](https://webjs.dev/ui/llm/docs/ai-elements/test-results): Displays a test run by the agent, with its suites and failures. - [Tool](https://webjs.dev/ui/llm/docs/ai-elements/tool): Displays a tool call the agent makes, from input to output. ## Get Started - [Introduction](https://webjs.dev/ui/llm/docs): WebJs UI is a set of beautifully-designed, accessible components and a code distribution platform for WebJs apps. Open Source. Open Code. - [Installation](https://webjs.dev/ui/llm/docs/installation): How to install dependencies and structure your app. - [components.json](https://webjs.dev/ui/llm/docs/components-json): Configuration for your project. - [Package Imports](https://webjs.dev/ui/llm/docs/package-imports): Import WebJs UI components with package.json imports. - [Theming](https://webjs.dev/ui/llm/docs/theming): Using CSS variables and theme tokens. - [Typeset](https://webjs.dev/ui/llm/docs/typeset): A styling system for HTML and rendered markdown, from blog posts to streaming chat. One CSS file you own. - [Dark Mode](https://webjs.dev/ui/llm/docs/dark-mode): Adding dark mode to your site. - [RTL](https://webjs.dev/ui/llm/docs/rtl): Right-to-left support for WebJs UI components. - [CLI](https://webjs.dev/ui/llm/docs/cli): Use the WebJs UI CLI to add components and blocks to your project. - [Monorepo](https://webjs.dev/ui/llm/docs/monorepo): Using WebJs UI components and the CLI in a monorepo. - [Skills](https://webjs.dev/ui/llm/docs/skills): Give your AI assistant deep knowledge of WebJs UI components, blocks, and patterns. - [JavaScript](https://webjs.dev/ui/llm/docs/javascript): How to use WebJs UI with JavaScript. - [Blocks](https://webjs.dev/ui/llm/docs/blocks): Install a ready-made view, then make it yours. Or contribute one to the blocks library. - [Figma](https://webjs.dev/ui/llm/docs/figma): Designing with WebJs UI in Figma. - [Changelog](https://webjs.dev/ui/llm/docs/changelog): Latest updates and announcements. ## Primitives - [Message Scroller](https://webjs.dev/ui/llm/docs/primitives/message-scroller): Use the Message Scroller elements directly, with your own markup and classes on top of the kit's. - [Questionnaire](https://webjs.dev/ui/llm/docs/primitives/questionnaire): Build accessible, multi-step questionnaires with single, multiple, freeform, and intentionally skipped answers. ## Helpers - [AI SDK](https://webjs.dev/ui/llm/docs/helpers/ai-sdk): Script a conversation in a streaming server action and render it through the kit's message scroller, with no model, no hand-written endpoint, and no API key. ## Forms - [Forms](https://webjs.dev/ui/llm/docs/forms): Build forms with server actions and the field helpers. ## Utilities - [scroll-fade](https://webjs.dev/ui/llm/docs/utils/scroll-fade): Utilities for adding a fade effect to the edges of a scroll container. - [shimmer](https://webjs.dev/ui/llm/docs/utils/shimmer): Utilities for adding a shimmer effect to text elements. ## Registry - [Introduction](https://webjs.dev/ui/llm/docs/registry): Run your own code registry. - [Getting Started](https://webjs.dev/ui/llm/docs/registry/getting-started): Learn how to get setup and run your own component registry. - [GitHub Registries](https://webjs.dev/ui/llm/docs/registry/github): Use a GitHub repository as a registry. - [Registry Directory](https://webjs.dev/ui/llm/docs/registry/registry-index): Open Source Registry Index - [Registry Health](https://webjs.dev/ui/llm/docs/registry/health): How to check that a registry works with the CLI. - [Examples](https://webjs.dev/ui/llm/docs/registry/examples): Examples of registry items: styles, components, css vars, etc. - [Namespaces](https://webjs.dev/ui/llm/docs/registry/namespace): Use more than one registry, one registry per command. - [Authentication](https://webjs.dev/ui/llm/docs/registry/authentication): Keep a registry private with a private network or a secret URL. - [Dynamic Search](https://webjs.dev/ui/llm/docs/registry/dynamic-search): How the CLI searches a registry, and what a large registry can do. - [MCP Server](https://webjs.dev/ui/llm/docs/registry/mcp): How AI assistants find and install items from your registry. - [FAQ](https://webjs.dev/ui/llm/docs/registry/faq): Frequently asked questions about running a registry. - [API Reference](https://webjs.dev/ui/llm/docs/registry/api-reference): Programmatic API for registry schemas, the kit projector and components.json. - [registry.json](https://webjs.dev/ui/llm/docs/registry/registry-json): Schema for running your own component registry. - [registry-item.json](https://webjs.dev/ui/llm/docs/registry/registry-item-json): Specification for registry items. ## Docs - [AI Elements](https://webjs.dev/ui/llm/docs/ai-elements): Patterns for agentic interfaces, built from WebJs UI components. - [Registry Directory](https://webjs.dev/ui/llm/docs/directory): Discover registries for WebJs UI components and blocks. ## Components - [Components](https://webjs.dev/ui/llm/docs/components): Here you can find all the components available in the library. We are working on adding more components. - [Accordion](https://webjs.dev/ui/llm/docs/components/accordion): A vertically stacked set of interactive headings that each reveal a section of content. - [Alert](https://webjs.dev/ui/llm/docs/components/alert): Displays a callout for user attention. - [Alert Dialog](https://webjs.dev/ui/llm/docs/components/alert-dialog): A modal dialog that interrupts the user with important content and expects a response. - [Aspect Ratio](https://webjs.dev/ui/llm/docs/components/aspect-ratio): Displays content within a desired ratio. - [Attachment](https://webjs.dev/ui/llm/docs/components/attachment): Displays a file or image attachment with media, metadata, upload state, and actions. - [Avatar](https://webjs.dev/ui/llm/docs/components/avatar): An image element with a fallback for representing the user. - [Badge](https://webjs.dev/ui/llm/docs/components/badge): Displays a badge or a component that looks like a badge. - [Breadcrumb](https://webjs.dev/ui/llm/docs/components/breadcrumb): Displays the path to the current resource using a hierarchy of links. - [Bubble](https://webjs.dev/ui/llm/docs/components/bubble): Displays conversational content in a message bubble. Supports variants, alignment, grouping, reactions, and collapsible content. - [Button](https://webjs.dev/ui/llm/docs/components/button): Displays a button or a component that looks like a button. - [Button Group](https://webjs.dev/ui/llm/docs/components/button-group): A container that groups related buttons together with consistent styling. - [Calendar](https://webjs.dev/ui/llm/docs/components/calendar): A calendar component that allows users to select a date or a range of dates. - [Card](https://webjs.dev/ui/llm/docs/components/card): Displays a card with header, content, and footer. - [Carousel](https://webjs.dev/ui/llm/docs/components/carousel): A carousel with motion and swipe built on CSS scroll snap. - [Chart](https://webjs.dev/ui/llm/docs/components/chart): Beautiful charts, rendered on the server as SVG. Copy and paste into your apps. - [Checkbox](https://webjs.dev/ui/llm/docs/components/checkbox): A control that allows the user to toggle between checked and not checked. - [Code Block](https://webjs.dev/ui/llm/docs/components/code-block): Displays code, terminal output and diffs with an optional header, line numbers and a copy button. - [Collapsible](https://webjs.dev/ui/llm/docs/components/collapsible): An interactive component which expands/collapses a panel. - [Combobox](https://webjs.dev/ui/llm/docs/components/combobox): Autocomplete input with a list of suggestions. - [Command](https://webjs.dev/ui/llm/docs/components/command): Command menu for search and quick actions. - [Context Menu](https://webjs.dev/ui/llm/docs/components/context-menu): Displays a menu of actions triggered by a right click. - [Data Table](https://webjs.dev/ui/llm/docs/components/data-table): Powerful tables and datagrids built from the table helpers. - [Date Picker](https://webjs.dev/ui/llm/docs/components/date-picker): A date picker component with range and presets. - [Dialog](https://webjs.dev/ui/llm/docs/components/dialog): A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. - [Direction](https://webjs.dev/ui/llm/docs/components/direction): Reads the text direction an element renders in. - [Drawer](https://webjs.dev/ui/llm/docs/components/drawer): A drawer that slides in from an edge of the screen. - [Dropdown Menu](https://webjs.dev/ui/llm/docs/components/dropdown-menu): Displays a menu to the user, such as a set of actions or functions, triggered by a button. - [Empty](https://webjs.dev/ui/llm/docs/components/empty): Use the Empty component to display an empty state. - [Field](https://webjs.dev/ui/llm/docs/components/field): Combine labels, controls, and help text to compose accessible form fields and grouped inputs. - [Hover Card](https://webjs.dev/ui/llm/docs/components/hover-card): For sighted users to preview content available behind a link. - [Input](https://webjs.dev/ui/llm/docs/components/input): A text input component for forms and user data entry with built-in styling and accessibility features. - [Input Group](https://webjs.dev/ui/llm/docs/components/input-group): Add addons, buttons, and helper content to inputs. - [Input OTP](https://webjs.dev/ui/llm/docs/components/input-otp): Accessible one-time password component with copy-paste functionality. - [Item](https://webjs.dev/ui/llm/docs/components/item): A versatile component for displaying content with media, title, description, and actions. - [Kbd](https://webjs.dev/ui/llm/docs/components/kbd): Used to display textual user input from keyboard. - [Label](https://webjs.dev/ui/llm/docs/components/label): Renders an accessible label associated with controls. - [Marker](https://webjs.dev/ui/llm/docs/components/marker): Displays an inline status, system note, bordered row, or labeled separator in a conversation. - [Menubar](https://webjs.dev/ui/llm/docs/components/menubar): A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands. - [Message](https://webjs.dev/ui/llm/docs/components/message): Displays a message in a conversation, with optional avatar, header, footer, and alignment. - [Message Scroller](https://webjs.dev/ui/llm/docs/components/message-scroller): A chat scroll container that anchors turns, opens saved transcripts, follows streamed responses, loads history without jumping, and jumps to any message. - [Native Select](https://webjs.dev/ui/llm/docs/components/native-select): A styled native HTML select element with consistent design system integration. - [Navigation Menu](https://webjs.dev/ui/llm/docs/components/navigation-menu): A collection of links for navigating websites. - [Pagination](https://webjs.dev/ui/llm/docs/components/pagination): Pagination with page navigation, next and previous links. - [Popover](https://webjs.dev/ui/llm/docs/components/popover): Displays rich content in a popup, triggered by a button. - [Progress](https://webjs.dev/ui/llm/docs/components/progress): Displays an indicator showing the completion progress of a task, typically displayed as a progress bar. - [Questionnaire](https://webjs.dev/ui/llm/docs/components/questionnaire): A multi-step questionnaire with single-choice, multiple-choice, freeform, and skippable questions. - [Radio Group](https://webjs.dev/ui/llm/docs/components/radio-group): A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time. - [Resizable](https://webjs.dev/ui/llm/docs/components/resizable): Accessible resizable panel groups and layouts with keyboard support. - [Scroll Area](https://webjs.dev/ui/llm/docs/components/scroll-area): Augments native scroll functionality with custom, cross-browser styling. - [Select](https://webjs.dev/ui/llm/docs/components/select): Displays a list of options for the user to pick from, triggered by a button. - [Separator](https://webjs.dev/ui/llm/docs/components/separator): Visually or semantically separates content. - [Sheet](https://webjs.dev/ui/llm/docs/components/sheet): Extends the Dialog component to display content that complements the main content of the screen. - [Sidebar](https://webjs.dev/ui/llm/docs/components/sidebar): A composable, themeable and customizable sidebar component. - [Skeleton](https://webjs.dev/ui/llm/docs/components/skeleton): Use to show a placeholder while content is loading. - [Slider](https://webjs.dev/ui/llm/docs/components/slider): An input where the user selects a value from within a given range. - [Sonner](https://webjs.dev/ui/llm/docs/components/sonner): An opinionated toast component. - [Spinner](https://webjs.dev/ui/llm/docs/components/spinner): An indicator that can be used to show a loading state. - [Switch](https://webjs.dev/ui/llm/docs/components/switch): A control that allows the user to toggle between checked and not checked. - [Table](https://webjs.dev/ui/llm/docs/components/table): A responsive table component. - [Tabs](https://webjs.dev/ui/llm/docs/components/tabs): A set of layered sections of content, known as tab panels, that are displayed one at a time. - [Textarea](https://webjs.dev/ui/llm/docs/components/textarea): Displays a form textarea or a component that looks like a textarea. - [Toast](https://webjs.dev/ui/llm/docs/components/toast): A succinct message that is displayed temporarily. - [Toggle](https://webjs.dev/ui/llm/docs/components/toggle): A two-state button that can be either on or off. - [Toggle Group](https://webjs.dev/ui/llm/docs/components/toggle-group): A set of two-state buttons that can be toggled on or off. - [Tooltip](https://webjs.dev/ui/llm/docs/components/tooltip): A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. - [Trace](https://webjs.dev/ui/llm/docs/components/trace): The building block for reasoning, tool calls, sources and more. ## Blocks - [Sidebar Blocks](https://webjs.dev/ui/llm/blocks/sidebar): Every sidebar block, each with its add command and full source: sidebar-01, sidebar-02, sidebar-03, sidebar-04, sidebar-05, sidebar-06, sidebar-07, sidebar-08, sidebar-09, sidebar-10, sidebar-11, sidebar-12, sidebar-13, sidebar-14, sidebar-15, sidebar-16. - [Dashboard Blocks](https://webjs.dev/ui/llm/blocks/dashboard): Every dashboard block, each with its add command and full source: dashboard-01. - [Authentication Blocks](https://webjs.dev/ui/llm/blocks/authentication): Every authentication block, each with its add command and full source: login-01, login-02, login-03, login-04, login-05, signup-01, signup-02, signup-03, signup-04, signup-05. - [Login Blocks](https://webjs.dev/ui/llm/blocks/login): Every login block, each with its add command and full source: login-01, login-02, login-03, login-04, login-05. - [Signup Blocks](https://webjs.dev/ui/llm/blocks/signup): Every signup block, each with its add command and full source: signup-01, signup-02, signup-03, signup-04, signup-05. ## Examples Working WebJs apps with their source open. Read one before writing the same thing yourself. - [WebJs feature gallery](https://gallery.webjs.dev): one runnable, densely commented demo per framework feature. Source: https://github.com/webjsdev/webjs/tree/main/gallery - [Routing](https://gallery.webjs.dev/features/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. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/routing - [Boundaries](https://gallery.webjs.dev/features/boundaries): Abandon a render because something is missing or not allowed. Throw notFound / forbidden / unauthorized and the nearest boundary file catches it. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/boundaries - [Metadata](https://gallery.webjs.dev/features/metadata): Give a page its own title, description, and social preview without writing head markup yourself. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/metadata - [Components](https://gallery.webjs.dev/features/components): Make one part of the page respond to a click or hold state. A page never hydrates, so interactivity lives in a component. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/components - [Directives](https://gallery.webjs.dev/features/directives): Render a keyed list, or swap a single node when state changes, without re-rendering the component around it. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/directives - [Async render](https://gallery.webjs.dev/features/async-render): Get server data into the first paint. Await it in async render() rather than fetching after mount, which SSR never runs. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/async-render - [Server actions](https://gallery.webjs.dev/features/server-actions): Call server code from the browser by importing the function. No fetch, no endpoint to name, and the types survive the trip. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/server-actions - [Route handlers](https://gallery.webjs.dev/features/route-handler): Expose JSON to a caller outside the app. A server-only route.ts, the WebJs equivalent of a Next route handler. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/route-handler - [Forms](https://gallery.webjs.dev/features/forms): Write data from a form that still works with JS off. Binding the action to the form is the whole wiring. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/forms - [Optimistic UI](https://gallery.webjs.dev/features/optimistic-ui): Make a mutation feel instant. optimistic() applies the change immediately and rolls it back if the server refuses. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/optimistic-ui - [Client router](https://gallery.webjs.dev/features/client-router): Navigate without a full page reload. Automatic the moment a page renders a component, with nothing to import or configure. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/client-router - [View transitions](https://gallery.webjs.dev/features/view-transitions): Cross-fade a navigation instead of snapping. One opt-in meta, plus a marker for elements that must survive the swap. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/view-transitions - [Streaming actions](https://gallery.webjs.dev/features/streaming): Show tokens or progress as the server produces them. An action returning an async generator, consumed with for await. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/streaming - [Stream updates](https://gallery.webjs.dev/features/stream): Change one element after a write, like appending a row or bumping a count, without redrawing the region around it. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/stream - [Suspense boundary](https://gallery.webjs.dev/features/suspense): Paint the page before a slow region is ready. The fallback flushes on the first byte and the content streams in behind it. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/suspense - [Frames](https://gallery.webjs.dev/features/frames): 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. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/frames - [WebSockets](https://gallery.webjs.dev/features/websockets): Hold a live two-way connection instead of polling. A WS(ws, req) route export on the server, connectWS() on the client. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/websockets - [Broadcast](https://gallery.webjs.dev/features/broadcast): 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. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/broadcast - [Auth](https://gallery.webjs.dev/features/auth): Add login and a route only signed-in visitors can open, without rolling password hashing and session cookies yourself. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/auth - [Sessions](https://gallery.webjs.dev/features/sessions): Remember something per visitor across requests. A signed cookie applied by middleware, read and written with getSession(). Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/sessions - [Caching](https://gallery.webjs.dev/features/caching): Stop re-rendering a page that is identical for every visitor. export const revalidate, with the rule for when that is safe. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/caching - [Env vars](https://gallery.webjs.dev/features/env): Read config and secrets at runtime while keeping the secrets server-side. WEBJS_PUBLIC_ is the only prefix the browser sees. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/env - [Rate limiting](https://gallery.webjs.dev/features/rate-limit): Stop one caller hammering an endpoint. The rateLimit() middleware returns a 429 with Retry-After until the interval resets. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/rate-limit - [File storage](https://gallery.webjs.dev/features/file-storage): Accept an upload and serve it back, streamed both ways, with nothing buffered in memory and nothing written into public/. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/file-storage - [Service worker](https://gallery.webjs.dev/features/service-worker): Keep the app usable offline. The opt-in service worker, registered from a browser-only lifecycle hook (never a page or layout). Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/features/service-worker - [Optimistic todo](https://gallery.webjs.dev/examples/todo): See the pieces composed in one real feature: the declarative optimistic() list API, progressive-enhancement forms, accessible labels, the modules split, and SQLite. Source: https://github.com/webjsdev/webjs/tree/main/gallery/app/examples/todo - [Example blog](https://example-blog.webjs.dev): a full app with posts, auth, server actions, streaming and Drizzle on SQLite. Source: https://github.com/webjsdev/webjs/tree/main/examples/blog - [The WebJs website](https://webjs.dev): this site, the docs and the /ui component library included, is a WebJs app. Source: https://github.com/webjsdev/webjs/tree/main/website, with the /ui pages under https://github.com/webjsdev/webjs/tree/main/website/app/ui and their demos under https://github.com/webjsdev/webjs/tree/main/website/modules/ui/examples ## Blocks Whole views (dashboards, sidebars, login and signup pages), installed with `npx @webjsdev/ui add ` and then edited as your own code. - [Dashboard 01](https://webjs.dev/ui/llm/blocks/dashboard): A dashboard with sidebar, charts and data table. (`npx @webjsdev/ui add dashboard-01`) - [Login 01](https://webjs.dev/ui/llm/blocks/login): A simple login form. (`npx @webjsdev/ui add login-01`) - [Login 02](https://webjs.dev/ui/llm/blocks/login): A two column login page with a cover image. (`npx @webjsdev/ui add login-02`) - [Login 03](https://webjs.dev/ui/llm/blocks/login): A login page with a muted background color. (`npx @webjsdev/ui add login-03`) - [Login 04](https://webjs.dev/ui/llm/blocks/login): A login page with form and image. (`npx @webjsdev/ui add login-04`) - [Login 05](https://webjs.dev/ui/llm/blocks/login): A simple email-only login page. (`npx @webjsdev/ui add login-05`) - [Sidebar 01](https://webjs.dev/ui/llm/blocks/sidebar): A simple sidebar with navigation grouped by section. (`npx @webjsdev/ui add sidebar-01`) - [Sidebar 02](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar with collapsible sections. (`npx @webjsdev/ui add sidebar-02`) - [Sidebar 03](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar with submenus. (`npx @webjsdev/ui add sidebar-03`) - [Sidebar 04](https://webjs.dev/ui/llm/blocks/sidebar): A floating sidebar with submenus. (`npx @webjsdev/ui add sidebar-04`) - [Sidebar 05](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar with collapsible submenus. (`npx @webjsdev/ui add sidebar-05`) - [Sidebar 06](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar with submenus as dropdowns. (`npx @webjsdev/ui add sidebar-06`) - [Sidebar 07](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar that collapses to icons. (`npx @webjsdev/ui add sidebar-07`) - [Sidebar 08](https://webjs.dev/ui/llm/blocks/sidebar): An inset sidebar with secondary navigation. (`npx @webjsdev/ui add sidebar-08`) - [Sidebar 09](https://webjs.dev/ui/llm/blocks/sidebar): Collapsible nested sidebars. (`npx @webjsdev/ui add sidebar-09`) - [Sidebar 10](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar in a popover. (`npx @webjsdev/ui add sidebar-10`) - [Sidebar 11](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar with a collapsible file tree. (`npx @webjsdev/ui add sidebar-11`) - [Sidebar 12](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar with a calendar. (`npx @webjsdev/ui add sidebar-12`) - [Sidebar 13](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar in a dialog. (`npx @webjsdev/ui add sidebar-13`) - [Sidebar 14](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar on the right. (`npx @webjsdev/ui add sidebar-14`) - [Sidebar 15](https://webjs.dev/ui/llm/blocks/sidebar): A left and right sidebar. (`npx @webjsdev/ui add sidebar-15`) - [Sidebar 16](https://webjs.dev/ui/llm/blocks/sidebar): A sidebar with a sticky site header. (`npx @webjsdev/ui add sidebar-16`) - [Signup 01](https://webjs.dev/ui/llm/blocks/signup): A simple signup form. (`npx @webjsdev/ui add signup-01`) - [Signup 02](https://webjs.dev/ui/llm/blocks/signup): A two column signup page with a cover image. (`npx @webjsdev/ui add signup-02`) - [Signup 03](https://webjs.dev/ui/llm/blocks/signup): A signup page with a muted background color. (`npx @webjsdev/ui add signup-03`) - [Signup 04](https://webjs.dev/ui/llm/blocks/signup): A signup page with form and image. (`npx @webjsdev/ui add signup-04`) - [Signup 05](https://webjs.dev/ui/llm/blocks/signup): A simple signup form with social providers. (`npx @webjsdev/ui add signup-05`)