# @local-logic/channel

> This module defines a 'Channel', built upon the CustomEvent API. This abstraction provides a simple, Promise-based way for managing async events.

Latest version **1.5.16** (published 2026-09-14) · 0 weekly downloads

## Install

```sh
npm install @local-logic/channel
pnpm add @local-logic/channel
yarn add @local-logic/channel
bun add @local-logic/channel
```

## Health

**Score 65/100 (B)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.5.16 |
| Published | 2026-09-14 |
| First published | 2022-07-12 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 31.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | locallogicit, cmburcus, amurphyll, bradleyexton, katialira |

## Links

- npm: https://www.npmjs.com/package/@local-logic/channel
- npm.io page: https://npm.io/package/@local-logic/channel

## Dependencies (2)

- [async-mutex](https://npm.io/package/async-mutex.md) ^0.5.0
- [short-unique-id](https://npm.io/package/short-unique-id.md) ^5.3.2

## Recent versions

- 1.5.16 (latest) — 2026-09-14
- 1.1.0-beta.1 (beta) — 2022-07-12
- 1.5.15 — 2026-05-06
- 1.5.14 — 2026-04-08
- 1.5.13 — 2026-02-10
- 1.5.12 — 2026-01-28
- 1.5.11 — 2025-11-26
- 1.5.10 — 2025-11-19
- 1.5.9 — 2025-11-11
- 1.5.8 — 2025-11-03
- 1.5.7 — 2025-09-24
- 1.5.6 — 2025-09-04
- 1.5.5 — 2025-08-13
- 1.5.4 — 2025-08-11
- 1.5.3 — 2025-02-20
- … 19 more at https://npm.io/package/@local-logic/channel/versions

## README

# Channel
This module defines a 'Channel', built upon the CustomEvent API. This abstraction provides a simple, Promise-based way for managing async events.

A Channel assumes two nodes: a Leader and a Follower. The Leader is instantiated first, and its 'connection' Promise will resolve only when the Follower has suscessfully connected.

When a connection is established, events can be freely sent to and from each Node, thereby creating a Channel!

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