sync-message-port
npmv1.2.0TypeScriptA Node.js communication port that can pass messages synchronously between workers
Safe to adopt
Yes — sync-message-port scores well across adoption, maintenance, weight, supply chain, and licensing. 4.8M downloads per week and 1 known dependents. Last published 224 days ago. 6 releases in the last 2 years.
- AAdoption: grade A, Excellent.
4.8M downloads per week and 1 known dependents.
- BMaintenance: grade B, Good.
Last published 224 days ago. 6 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 105 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding sync-message-port to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=16.0.0
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the sync-message-port README.
import {Worker} from 'node:worker_threads';
import {SyncMessagePort} from 'sync-message-port';
// or
// const {SyncMessagePort} = require('sync-message-port');
// Channels must be created using this function. A MessageChannel created by
// hand won't work.
const channel = SyncMessagePort.createChannel();
const localPort = new SyncMessagePort(channel.port1);
const worker = new Worker(`
import {workerData} from 'node:worker_threads';
import {SyncMessagePort} from 'sync-message-port';
Dependencies
Declared by sync-message-port v1.2.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (10)
Used by
Popular packages that depend on sync-message-port.
Relationship graph
Dependencies (left) and dependents (right) of sync-message-port.
Frequently installed together
Release history
1 release in the last two years, typically about 3 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.2.0latest | 7 months ago | 105 KB | MIT |
| 1.1.3 | 1 year ago | 59 KB | MIT |
| 1.1.2 | 1 year ago | 58 KB | MIT |
| 1.1.1 | 1 year ago | 58 KB | MIT |
| 1.1.0 | 1 year ago | 7.3 KB | MIT |
| 1.0.0 | 1 year ago | 54 KB | MIT |
Overview
sync-message-port is an npm package that a Node.js communication port that can pass messages synchronously between workers. It is very popular, with about 4.8M downloads per week and 1 known dependents in the graph. The latest version is 1.2.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a Node.js communication port that can pass messages synchronously between workers and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (4.8M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use sync-message-port?
Yes — sync-message-port scores well across adoption, maintenance, weight, supply chain, and licensing. 4.8M downloads per week and 1 known dependents. Last published 224 days ago. 6 releases in the last 2 years.
How do I install sync-message-port?
Run `npm install sync-message-port` to add sync-message-port to your npm project.
What license is sync-message-port released under?
sync-message-port is distributed under the MIT license.
How popular is sync-message-port?
sync-message-port has approximately 4,828,340 downloads per week and 1 known dependent packages.
Is sync-message-port still maintained?
The most recent release of sync-message-port (v1.2.0) was published 7 months ago.
Does sync-message-port run install scripts?
No. sync-message-port does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.