Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.03 KB

File metadata and controls

41 lines (32 loc) · 2.03 KB

Async Framework Examples

These examples run from the source checkout. Most examples are no-build static HTML plus ESM modules that import from ../../src/index.js. Vite examples have their own package files and run from their example directories.

Static Examples

From the repo root:

python3 -m http.server 4173

Then open the example URL, such as http://127.0.0.1:4173/examples/counter/.

Example Index

Example Shows Start
counter Signal text binding and delegated handlers http://127.0.0.1:4173/examples/counter/
product Async signal loading, ready, and error boundaries http://127.0.0.1:4173/examples/product/
components Scoped fragment components and lifecycle hooks http://127.0.0.1:4173/examples/components/
streaming Boundary swaps with rescanned handlers http://127.0.0.1:4173/examples/streaming/
server-call Command events calling server functions http://127.0.0.1:4173/examples/server-call/
router CSR first render and local route boundary swaps http://127.0.0.1:4173/examples/router/
partials Server-rendered partial fragments http://127.0.0.1:4173/examples/partials/
cache Browser and server cache declarations http://127.0.0.1:4173/examples/cache/
ssr Server render output and browser activation snapshot http://127.0.0.1:4173/examples/ssr/
vite-hono Hono-backed Vite dev server plus client asset build pnpm run dev
vite-jsx-streaming JSX optimizer bootstrap with stream runtime slice selection pnpm run dev
size Scenario-size fixtures for bundle and runtime slices pnpm run scenario:size:check

Verification

pnpm run examples:check
pnpm run registry:lint
pnpm run scenario:size:check