# @travetto/worker

> Process management utilities, with a focus on inter-process communication

Latest version **8.0.1** (published 2026-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @travetto/worker
pnpm add @travetto/worker
yarn add @travetto/worker
bun add @travetto/worker
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 8.0.1 |
| Published | 2026-09-05 |
| First published | 2019-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Travetto Framework |
| Maintainers | arcsine |
| Keywords | child-process, exec, ipc, travetto, typescript |

## Links

- npm: https://www.npmjs.com/package/@travetto/worker
- Repository: https://github.com/travetto/travetto
- Homepage: https://travetto.io
- Issues: https://github.com/travetto/travetto/issues
- npm.io page: https://npm.io/package/@travetto/worker

## Dependencies (2)

- [generic-pool](https://npm.io/package/generic-pool.md) ^3.9.0
- [@travetto/runtime](https://npm.io/package/@travetto/runtime.md) ^8.0.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 8.0.1 (latest) — 2026-09-05
- 8.1.0-rc.1 (rc) — 2026-11-01
- 8.0.0-alpha.25 (alpha) — 2026-08-24
- 1.1.0-rc.0 (next) — 2020-09-20
- 1.0.0-beta.1 (beta) — 2019-08-16
- 8.1.0-rc.0 — 2026-10-31
- 8.0.0 — 2026-09-05
- 8.0.0-alpha.24 — 2026-08-24
- 8.0.0-alpha.23 — 2026-08-02
- 8.0.0-alpha.22 — 2026-07-25
- 8.0.0-alpha.21 — 2026-07-25
- 8.0.0-alpha.20 — 2026-07-18
- 8.0.0-alpha.19 — 2026-07-12
- 8.0.0-alpha.18 — 2026-06-14
- 8.0.0-alpha.17 — 2026-06-13
- … 226 more at https://npm.io/package/@travetto/worker/versions

## README

<!-- This file was generated by @travetto/doc and should not be modified directly -->
<!-- Please modify https://github.com/travetto/travetto/tree/main/module/worker/DOC.tsx and execute "npx trv doc" to rebuild -->
# Worker

## Process management utilities, with a focus on inter-process communication

**Install: @travetto/worker**
```bash
npm install @travetto/worker

# or

yarn add @travetto/worker
```

This module provides the necessary primitives for handling dependent workers. A worker can be an individual actor or could be a pool of workers. Node provides ipc (inter-process communication) functionality out of the box. This module builds upon that by providing enhanced event management, richer process management, as well as constructs for orchestrating a conversation between two processes.

## Execution Pools
With respect to managing multiple executions, [WorkPool](https://github.com/travetto/travetto/tree/main/module/worker/src/pool.ts#L21) is provided to allow for concurrent operation, and processing of jobs concurrently. To manage the flow of jobs, [AsyncQueue](https://github.com/travetto/travetto/tree/main/module/runtime/src/queue.ts#L4) is used to support a wide range of use cases. [AsyncQueue](https://github.com/travetto/travetto/tree/main/module/runtime/src/queue.ts#L4) allows for manual control of iteration, which is useful for event driven work loads. 

## IPC Support
To handle communication between processes, [IpcChannel](https://github.com/travetto/travetto/tree/main/module/worker/src/ipc.ts#L9) is provided. This class abstracts the underlying IPC mechanism and provides a simple interface for sending and receiving messages. It also includes event management capabilities, allowing for easy handling of different message types. By default the class assumes it is running in a child process, but it can also be used in a parent process (by passing in the child process) to communicate with child processes.

---
_Source: https://npm.io/package/@travetto/worker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
