Examples
Three worked projects. Each is a complete project: file layout, source, build commands, deploy notes.
- Frontend — todo list with reactive DOM updates. Vite + vanilla DOM. Output is static.
- Backend — WebSocket server with per-connection signals and an SSE stats endpoint. Node 18+.
- Edge — HTTP handler with per-request signal scope and a Durable Object rate limiter. Cloudflare Workers.
Common setup
Section titled “Common setup”All three projects use the same setup:
npm install parabun-browser-shims…plus a one-line bundler alias mapping para:* to parabun-browser-shims/* (see the install guide for the per-bundler snippets), and bun build to transpile .pts files.
Build targets
Section titled “Build targets”| Project | Bun build target | Bundler |
|---|---|---|
| Frontend | --target browser | Vite |
| Backend | --target node | (Bun build alone) |
| Edge | --target browser | Wrangler |