DirtyHairy/async-mutex
A mutex for synchronizing async workflows in Javascript observed · 2026-08-28
Health v2 · maintenance only
47/100
- Activity 32
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3612
- days_rel: n/a
- days_push: 410
- n_releases_24m: 0
Adoption not part of the score
1430 stars · 70 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A TypeScript library providing mutex and semaphore primitives for synchronizing asynchronous JavaScript workflows. Locking returns a promise that resolves when the resource becomes available, preventing race conditions in single-threaded async code.
Use cases
- serialize access to a shared async resource in JavaScript
- limit concurrent requests in a web crawler
- prevent race conditions when exchanging messages with a web worker
- control parallelism of async tasks with a semaphore
- guard async workflows against reentrant calls
When to choose
- you need promise-based locking for async/await code
- you want to cap the number of concurrent async operations
- you need a tiny, dependency-free synchronization primitive in Node or the browser
When to avoid
- you need true multi-threaded synchronization (use worker threads with Atomics)
- your code is fully synchronous and single-threaded without interleaving
- you need distributed locking across processes or machines
Facets
library · maturity stable
concurrency developer-tools developer-tools web-development browser cross-platform mutex semaphore async typescript synchronization promise-based javascript nodejs
2 sources
- readme: https://github.com/DirtyHairy/async-mutex · fetched 2026-08-28 · dc1b82c31732
- registry_npm: https://registry.npmjs.org/async-mutex · fetched 2026-08-29 · 3864bbb6d897
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| DirtyHairy/async-mutex | main | 47 |
For agents
markdown · JSON · MCP: product_card(name="DirtyHairy/async-mutex")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem