7 个仓库
Runs JavaScript in separate OS threads with isolated V8 instances and shared memory via ArrayBuffer transfer.
Distinct from Worker Thread Patterns: Distinct from Worker Thread Patterns: specifically implements JavaScript worker threads with V8 isolation, not a general task distribution pattern.
Explore 7 awesome GitHub repositories matching software engineering & architecture · JavaScript Worker Threads. Refine with filters or upvote what's useful.
Node.js is an open-source, cross-platform JavaScript runtime environment built on the V8 engine, designed for executing JavaScript code outside a web browser. It operates as a server-side JavaScript platform with an event-driven, non-blocking I/O architecture that enables building scalable network applications and web servers. The runtime integrates the CommonJS module system for synchronous module loading and the npm ecosystem for sharing and reusing packages. The platform provides comprehensive capabilities for web server development, including creating HTTP and HTTPS servers, managing HTTP
Provides worker threads for parallel JavaScript execution with isolated V8 instances and shared memory.
electron-vite 是一个构建系统和多进程打包编排工具,利用 Vite 为 Electron 应用编译和打包主进程、预加载脚本及渲染进程。它作为桌面应用脚手架,提供多种模板,可将各类前端框架集成到标准化的项目结构中。 该项目通过集成源码保护脱颖而出,利用 V8 字节码混淆器将 JavaScript 编译为字节码并混淆字符串,从而防止逆向工程。它还能通过隔离多个窗口和执行上下文中的包及共享代码块,来管理复杂的桌面架构。 该工具集涵盖了广泛的功能,包括用于跨平台安装程序的自动化打包流水线、支持热模块替换的开发服务器编排,以及原生模块和 WebAssembly 的管理。此外,它还支持环境作用域划分和二进制模块外部化配置,以优化生产环境构建。
Resolves worker imports into bundle paths during the build process for multi-threaded background execution.
wmr 是一个 Web 应用开发工具和构建系统,充当 ES 模块打包器、静态站点生成器和本地开发服务器。它为创建现代 Web 应用提供了完整的环境,将生产编译器与支持热重载的服务器相结合。 该项目以其对后台脚本和路由的集成方法而著称,既作为 Service Worker 打包器,又作为基于文件系统的路由工具。它支持通过预渲染生成静态 HTML,并提供用于生成 Web Worker 以处理繁重计算的原生集成。 该系统涵盖了广泛的构建自动化功能,包括按需编译、基于中间件的请求处理,以及用于扩展构建逻辑的插件驱动流水线。它还包括用于管理环境变量、映射导入路径和分析包大小以优化生产资产的实用程序。
Compiles and bundles service worker scripts to enable offline asset management.
Greenlet 是一个多线程异步执行器和 Web Worker 任务运行器。它作为执行包装器,将繁重的计算卸载到后台工作线程,以保持用户界面的响应性并防止主执行线程阻塞。 该项目包括一个可传输对象处理程序,旨在在线程之间移动大型数据缓冲区。这种机制避免了内存复制的开销,从而优化了数据传输。 该库涵盖了 Web Worker 的管理,促进了异步任务隔离和主线程卸载。
Executes JavaScript in separate OS threads to ensure the main UI thread remains free for user interactions.
Workerize 是一个 Web Worker 模块加载器和主线程卸载器。它作为一个异步代理包装器,允许 JavaScript 模块在后台 Worker 中运行,通过将计算密集型任务委托给单独的线程来防止浏览器 UI 冻结。 该项目利用基于代理的接口来调用后台 Worker 内部的函数,就像它们是本地异步调用一样。这种机制使得能够在并行 Worker 中执行模块,以保持主线程的响应性。 该系统涵盖了异步模块执行和 Web Worker 集成,专注于通过将繁重逻辑移出主执行线程来优化主线程。
Loads and runs JavaScript modules in Web Workers to move heavy logic off the main thread.
该项目是一个函数式代码示例和可运行演示的参考库。它提供了使用浏览器 API、CSS 特性、DOM 操作和 Web 组件的实现指南及实用代码片段。 该集合展示了现代样式能力的实时演示,包括高级布局模式和绘图 API。它还包含使用 Shadow DOM 结构构建可重用自定义元素的参考示例,用于模块化用户界面开发。 该库涵盖了广泛的浏览器功能,包括具有实时视频帧修改功能的媒体流处理、窗口与 iframe 之间的上下文间通信模式,以及程序化 DOM 元素操作。它还提供了设备硬件集成的示例,例如折叠屏的姿态检测,以及用于联系人选择等任务的原生系统接口桥接。 该仓库包含旨在在实时浏览器环境中执行的 JavaScript 示例。
Implements JavaScript worker threads to move heavy computations off the main user interface thread.
This project is a browser-based digital audio workstation that provides a professional-grade environment for composing, arranging, and editing musical tracks. It functions as a complete audio sequencer, enabling users to manipulate digital audio signals and construct complex musical compositions directly within a web browser. The platform distinguishes itself through a cloud-synced architecture that stores musical projects on remote servers, ensuring that creative work remains accessible and synchronized across multiple devices. By leveraging the browser as a primary workspace, it facilitates
Offloads intensive digital signal processing to background worker threads to maintain interface responsiveness.