Build on the supported package contract
Use absolutejs-web-worker-example through its supported public entry points.
absolutejs-web-worker-examplev0.0.1betaDev ToolsA demo project showcasing web workers across 5 frontend frameworks (React, Svelte, Vue, Angular, HTML) — all running in a single app powered by AbsoluteJS.
# Private workspace project: ~/abs/examples/web-workerA demo project showcasing web workers across 5 frontend frameworks (React, Svelte, Vue, Angular, HTML) — all running in a single app powered by AbsoluteJS.
Each framework page demonstrates 6 web worker patterns:
SHA-256 Hash — cryptographic hashing offloaded to a worker
Prime Finder — CPU-bound computation off the main thread
Sort Array — sorting 1M numbers without blocking the UI
Thread Race — worker vs main thread timer comparison
Image Processing — grayscale conversion via transferable pixel data
Parallel Race — 3 concurrent workers with different workloads
Starts the dev server with HMR at http://localhost:3000.
Builds assets, bundles the server, and runs in production mode.
Compiles the entire app into a single standalone binary (./compiled-server) with all assets embedded — no node_modules, no dist/ folder, no Bun installation needed on the target machine.
The compiled binary:
Pre-renders all pages at build time
Embeds all JS, CSS, images, and web workers into the executable
Serves everything from Bun's virtual filesystem
Works on any machine without dependencies
Pages can be pre-rendered at build time via the static config in absolute.config.ts:
Without revalidate, pages are rendered once at build time (SSG). With revalidate, stale pages are served immediately while a fresh version renders in the background (ISR).
Outcomes
Use absolutejs-web-worker-example through its supported public entry points.
Hardening checklist
Follow in order
Working example for Setup.
bun installWorking example for Production.
bun run startWorking example for Development.
bun run devWorking example for Compile to Standalone Executable.
bun run compileScripts declared by this package manifest.