AbsoluteJS

absolutejs-web-worker-example

absolutejs-web-worker-examplev0.0.1betaDev Tools

A demo project showcasing web workers across 5 frontend frameworks (React, Svelte, Vue, Angular, HTML) — all running in a single app powered by AbsoluteJS.

#Installation

BASH
# Private workspace project: ~/abs/examples/web-worker

#Capabilities

Overview

A 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

Show 5 more

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

Development

Starts the dev server with HMR at http://localhost:3000.

Production

Builds assets, bundles the server, and runs in production mode.

Compile to Standalone Executable

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

Show 3 more

Embeds all JS, CSS, images, and web workers into the executable

Serves everything from Bun's virtual filesystem

Works on any machine without dependencies

Static Config

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

What you can build

Build on the supported package contract

Use absolutejs-web-worker-example through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed absolutejs-web-worker-example version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical absolutejs-web-worker-example example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Setup

Partial snippet

Working example for Setup.

BASH
bun install

#Production

Partial snippet

Working example for Production.

BASH
bun run start

#Development

Partial snippet

Working example for Development.

BASH
bun run dev

#Compile to Standalone Executable

Partial snippet

Working example for Compile to Standalone Executable.

BASH
bun run compile

#Package commands

Scripts declared by this package manifest.

bun run devabsolute dev
bun run formatabsolute prettier --write
bun run lintabsolute eslint
bun run startabsolute start
bun run typecheckbun run vue-tsc --noEmit
Private workspace project
This project is maintained inside the workspace and is not published as a standalone npm package.