Skip to content

About

A local browser lab for dedicated Web Worker messaging, structured cloning, transferable ArrayBuffers, message order, and worker lifecycle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Header

Typing title

License Language Stars Last commit

Worker message flow illustration

🧭 Overview

A local browser lab for dedicated Web Workers. Send structured objects, transfer an ArrayBuffer, and observe message order, worker errors, and termination.

✨ Features

  • 📨 Send nested objects through postMessage().
  • 🔁 Transfer an ArrayBuffer and observe the sender's detached buffer.
  • 🔢 Queue ordered messages and inspect their replies.
  • ⏹️ Restart or terminate the Worker.
  • 🔒 All examples run inside the browser; nothing is uploaded.

🖥️ Demo

Run the local Node.js server; no hosted demo is configured.

🚀 Quick Start

npm start

Open http://127.0.0.1:4175.

🧰 Tech Stack

  • Node.js built-in HTTP server
  • Dedicated Web Workers
  • Structured Clone Algorithm and Transferable Objects
  • Vanilla JavaScript, HTML, and CSS

🗂️ Folder Structure

.
├── assets/mark.svg
├── public/app.js
├── public/index.html
├── public/styles.css
├── public/worker.js
├── package.json
├── server.js
└── README.md

🗺️ Roadmap

  • Add a SharedWorker comparison.
  • Demonstrate messageerror with an unsupported payload.
  • Add a small transferable typed-array exercise.

🤝 Contributing

Keep examples deterministic and document which data is cloned versus transferred.

📄 License

MIT. See LICENSE.

Footer

About

A local browser lab for dedicated Web Worker messaging, structured cloning, transferable ArrayBuffers, message order, and worker lifecycle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages