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:
# Install the @para/* packages your code uses, e.g.:npm install @para/signals @para/parallel @para/pipeline…plus a one-line bundler alias mapping para:* to @para/* (see the install guide for the per-bundler snippets), and parabun build to transpile .pts files.
Build targets
Section titled “Build targets”| Project | parabun build target | Bundler |
|---|---|---|
| Frontend | --target browser | Vite |
| Backend | --target node | (parabun build alone) |
| Edge | --target browser | Wrangler |