Skip to content

bengal-chirp 0.1.6

Choose a tag to compare

@lbliii lbliii released this 06 Mar 19:28
· 252 commits to main since this release
ccbd262

v0.1.6

Released: March 6, 2026

PageComposition API, Suspense + layout chain, htmx debug overlay, and kanban_shell example.

Added

  • PageComposition API — Python-first composition with ViewRef, RegionUpdate, and PageComposition. Explicit fragment_block / page_block semantics and region updates for shell actions.
  • Suspense + layout chain — Handlers that return Suspense from mount_pages routes now receive the full layout shell. layout_context is merged so cascade values reach Suspense templates.
  • kanban_shell example — Full example with app shell, chirp-ui, mount_pages, OOB swaps, SSE, filter sidebar, and CRUD.
  • htmx debug overlay — S-tier debug panel with activity log, inspector, and swap flash when config.debug=True.
  • HX-Reselect header — Fragment responses send HX-Reselect: * so htmx re-parses OOB swaps correctly.
  • Data layout patterns — chirp-ui guide documents UI layout patterns for app shells and content regions.

Changed

  • Shell-actions OOB — Region updates for #chirp-shell-actions now use hx-swap-oob="innerHTML" to preserve container attributes during boosted navigation.
  • Contractsextract_mutation_target_ids() uses \baction\b in regex to avoid false positives.

Fixed

  • TemplateNotFoundError — Shell-actions OOB render catches TemplateNotFoundError when chirp-ui is not installed and falls back to empty OOB.

Installation

pip install bengal-chirp==0.1.6
# or
uv add bengal-chirp==0.1.6

With chirp-ui:

pip install bengal-chirp[ui]

Links