server.islands

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

Framework-agnostic islands runtime bootstrap.

Injects a lightweight browser runtime that discovers[data-island]roots, parses serialized props, and emits lifecycle events. Frontend adapters can listen to these events to mount/unmount framework islands.

It…

Framework-agnostic islands runtime bootstrap.

Injects a lightweight browser runtime that discovers[data-island]roots, parses serialized props, and emits lifecycle events. Frontend adapters can listen to these events to mount/unmount framework islands.

It also ships ONE blessed, client-resident primitive:optimistic_apply (see_OPTIMISTIC_ADAPTER_JS). Mounting data-island-primitive optimistic_applyJust Works with a contract guarantee — Chirp holds zero per-client server view state; the rollback baseline is the client's OWN pre-mutation DOM snapshot, never a server-held copy.

server.islands

Name Type Default Description
type
qualified_name
element_type
description
source_file
line_number
is_autodoc
autodoc_element
_autodoc_template
_autodoc_url_path
_autodoc_page_type
title
doc_content_hash

Symbols on this page

islands_snippet
function
def islands_snippet(version: str, *, nonce: str = '') -> str

Return runtime bootstrap script for island lifecycle events.

When nonce is non-empty the<script> carries a nonce="..." attribute so it survives a nonce-based CSP that no longer ships 'unsafe-inline'.

Parameters

Name Type Default Description
version str
nonce str ''

View source · /home/runner/work/chirp/chirp/site/../src/chirp/server/islands.py:1