[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10163":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":20,"defaultBranch":21,"hasWiki":19,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":32,"discoverSource":33},10163,"napajs","microsoft\u002Fnapajs","microsoft","Napa.js: a multi-threaded JavaScript runtime","",null,"C++",9181,330,2,58,0,38.56,"Other",true,false,"master",[23,24,25,5,26,27,28],"javascript","multi-core","multithreading","nodejs","parallel","runtime","2026-06-12 02:02:17","[![Build Status for Linux\u002FMacOS](https:\u002F\u002Ftravis-ci.org\u002FMicrosoft\u002Fnapajs.svg?branch=master)](https:\u002F\u002Ftravis-ci.org\u002FMicrosoft\u002Fnapajs)\n[![Build Status for Windows](https:\u002F\u002Fci.appveyor.com\u002Fapi\u002Fprojects\u002Fstatus\u002Fgithub\u002FMicrosoft\u002Fnapajs?branch=master&svg=true)](https:\u002F\u002Fci.appveyor.com\u002Fproject\u002Fnapajs\u002Fnapajs)\n[![npm version](https:\u002F\u002Fbadge.fury.io\u002Fjs\u002Fnapajs.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fnapajs)\n[![Downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002Fnapajs.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fnapajs)\n\n# Napa.js\nNapa.js is a multi-threaded JavaScript runtime built on [V8](https:\u002F\u002Fgithub.com\u002Fv8\u002Fv8), which was originally designed to develop highly iterative services with non-compromised performance in Bing. As it evolves, we find it useful to complement [Node.js](https:\u002F\u002Fnodejs.org) in CPU-bound tasks, with the capability of executing JavaScript in multiple V8 isolates and communicating between them. Napa.js is exposed as a Node.js module, while it can also be embedded in a host process without Node.js dependency.\n\n## Installation\nInstall the latest stable version:\n```\nnpm install napajs\n```\nOther options can be found in [Build Napa.js](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fnapajs\u002Fwiki\u002Fbuild-napa.js).\n\n## Quick Start\n```js\nconst napa = require('napajs');\nconst zone1 = napa.zone.create('zone1', { workers: 4 });\n\n\u002F\u002F Broadcast code to all 4 workers in 'zone1'.\nzone1.broadcast('console.log(\"hello world\");');\n\n\u002F\u002F Execute an anonymous function in any worker thread in 'zone1'.\nzone1.execute(\n    (text) => text, \n    ['hello napa'])\n    .then((result) => {\n        console.log(result.value);\n    });\n```\nMore examples:\n* [Estimate PI in parallel](.\u002Fexamples\u002Ftutorial\u002Festimate-pi-in-parallel)\n* [Max sub-matrix of 1s with layered parallelism](.\u002Fexamples\u002Ftutorial\u002Fmax-square-sub-matrix)\n* [Parallel Quick Sort](.\u002Fexamples\u002Ftutorial\u002Fparallel-quick-sort)\n* [Recursive Fibonacci with multiple JavaScript threads](.\u002Fexamples\u002Ftutorial\u002Frecursive-fibonacci)\n* [Synchronized loading](.\u002Fexamples\u002Ftutorial\u002Fsynchronized-loading)\n\n## Features\n- Multi-threaded JavaScript runtime.\n- Node.js compatible module architecture with NPM support.\n- API for object transportation, object sharing and synchronization across JavaScript threads.\n- API for pluggable logging, metric and memory allocator.\n- Distributed as a Node.js module, as well as supporting embed scenarios.\n\n## Documentation\n- [Napa.js Home](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fnapajs\u002Fwiki)\n- [API Reference](.\u002Fdocs\u002Fapi\u002Findex.md)\n- [FAQ](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fnapajs\u002Fwiki\u002FFAQ)\n\n# Contribute\nYou can contribute to Napa.js in following ways:\n\n* [Report issues](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fnapajs\u002Fissues) and help us verify fixes as they are checked in.\n* Review the [source code changes](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fnapajs\u002Fpulls).\n* Contribute to core module compatibility with Node.\n* Contribute bug fixes.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https:\u002F\u002Fopensource.microsoft.com\u002Fcodeofconduct\u002F).\u003Cbr> For more information see the [Code of Conduct FAQ](https:\u002F\u002Fopensource.microsoft.com\u002Fcodeofconduct\u002Ffaq\u002F) or contact opencode@microsoft.com with any additional questions or comments.\n\n# License\nCopyright (c) Microsoft Corporation. All rights reserved.\n\nLicensed under the [MIT](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fnapajs\u002Fblob\u002Fmaster\u002FLICENSE.txt) License.\n","Napa.js 是一个基于 V8 引擎构建的多线程 JavaScript 运行时，旨在为 Bing 开发高性能迭代服务。其核心功能包括支持在多个 V8 isolate 中执行 JavaScript 代码，并提供跨线程的对象传输、共享和同步API。此外，它还具备可插拔的日志记录、度量和内存分配器接口。Napa.js 既可作为 Node.js 模块使用，也能够独立嵌入到其他进程中运行，无需依赖 Node.js 环境。该工具特别适用于需要处理 CPU 密集型任务的应用场景，如并行计算、大规模数据处理等，能够显著提升程序性能。","2026-06-11 03:26:57","top_topic"]