GitHub

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.

Teamboard (SaaS) needs server

Teams with invitations and roles, tenant Models with migrations, forms, lists that update live in every tab, a background job, a webhook, API tokens and an admin; installable.

examples/saas/app.pyweb

Counter live demo

Signals, a computed value and a bound number input.

examples/counter/app.pyweb

Todos live demo

Components, list mutation, filters and keyed lists, with rows that animate in and out.

examples/todo/app.pyweb

UI kit and motion live demo

Dialogs, menus, pickers, toasts, a data table and charts from pyweb.ui, plus staggered, layout, drag and shared-element animations.

examples/ui/app.pyweb

Blog needs server

A Model, server functions, route parameters, 404s and validation errors.

examples/blog/app.pyweb

Accounts needs server

Your own registration, password hashing, sessions and protected pages.

examples/auth/app.pyweb

Chat rooms needs server

Route parameters, shared server state and live updates with publish() and subscribe().

examples/chat/app.pyweb

Showcase needs server

Reactive state, derived values and a server-backed search on one page.

examples/showcase/app.pyweb

Plant shop needs server

A layout, client-side navigation, typed query parameters, page titles and a 404 page.

examples/site/app.pyweb

Sales dashboard needs server

Live queries, counters that count up, the kit's bar chart and a Chart.js chart from npm, updating in every open window.

examples/dashboard/app.pyweb

AI 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

Notes (desktop) needs server

A Markdown notes app for pyweb desktop: its own window, data in the user's folder, and export through the system's Save dialog.

examples/desktop/app.pyweb