Examples
Every example is a single app.pyweb file in the repository, and every one is
driven in a real browser by the test suite. Each page shows the source, where the compiler placed each name, and the
JavaScript it generated.
Counter live demo
Signals, a computed value and a bound number input.
examples/counter/app.pywebTodos live demo
Components, list mutation, filters and keyed lists.
examples/todo/app.pywebBlog needs server
SQL database, server functions, route parameters, 404s and validation errors.
examples/blog/app.pywebAccounts needs server
Registration, password hashing, sessions and protected pages.
examples/auth/app.pywebChat rooms needs server
Route parameters, shared server state and live updates over Server-Sent Events.
examples/chat/app.pywebShowcase needs server
Reactive state, derived values and a server-backed search on one page.
examples/showcase/app.pywebPlant shop needs server
A layout, client-side navigation, typed query parameters, page titles and a 404 page.
examples/site/app.pywebSales dashboard needs server
Live queries and a Chart.js chart from npm, updating in every open window.
examples/dashboard/app.pywebAI chat needs server
Streaming replies with a Stop button and Markdown, from Anthropic, an OpenAI-compatible server or a demo model.
examples/ai-chat/app.pyweb