{"version":"v1.0","client_state":{"DocsNavigation.default":{"fields":{"query":""},"persist":"memory","send_to_server":true},"ColorScheme.default":{"fields":{"mode":"system"},"persist":"local","send_to_server":true}},"endpoints":{"action":"/_bretzel/action","sse":"/_bretzel/sse","refetch":"/_bretzel/refetch"},"csrf":"2fbfbbbc03434d0d3c7e486bffa1fa54","page_id":"007adefab7f1488b80dd23654bdc8c7d","address":""}

Recipes

One complete app per common request, with why it works. Each one is also served as raw Markdown: the form an AI agent reads first.

Edit a row in a dialog

Show my ten customers in a table, with an Edit button on each row that opens a dialog where I change the customer and save.

Add screens to a FastAPI app

I already have a FastAPI app with GET and POST /api/books. Add Bretzel screens to it without breaking the API.

A JSON route beside a page

A page that lists our products, and a JSON endpoint /api/products that returns the same list.

Pages with a navbar

Three pages, Home, Projects and Contact, with a navigation bar at the top.

Sign in with a password

I need a sign-in page with an email and a password, and an /account page that only signed-in users can see.

A list shared live

Two people should see the same to-do list, and what one adds, ticks or deletes should show up on the other's screen right away.