# wonka

> A tiny but capable push & pull stream library for TypeScript and Flow

Latest version **6.3.6** (published 2026-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install wonka
pnpm add wonka
yarn add wonka
bun add wonka
```

## Health

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

Positive: has types; esm support; no vulnerabilities; has provenance; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.3.6 |
| Published | 2026-03-24 |
| First published | 2018-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 300.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 739 |
| Author | 0no.co |
| Maintainers | philpl |
| Keywords | wonka, typescript, events, callbag, callback, observable, iterable, stream |

## Links

- npm: https://www.npmjs.com/package/wonka
- Repository: https://github.com/0no-co/wonka
- Homepage: https://github.com/0no-co/wonka#readme
- Issues: https://github.com/0no-co/wonka/issues
- npm.io page: https://npm.io/package/wonka

## 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

- 6.3.6 (latest) — 2026-03-24
- 6.3.6-canary-8bdb42c9bcf34a50c25e9d9b5223159f212753df (canary) — 2026-03-24
- 5.0.0-rc.1 (rc) — 2020-10-16
- 6.3.5 — 2025-03-03
- 6.3.5-canary-48c2d62f6dc090c73f6cd77f7bddda4d951c0ee8 — 2025-03-03
- 6.3.4 — 2023-08-03
- 6.3.4-canary-f028aa3 — 2023-08-03
- 6.3.3 — 2023-07-20
- 6.3.3-canary-c160e1d — 2023-07-20
- 6.3.2 — 2023-04-25
- 0.0.0-canary-20230425125537 — 2023-04-25
- 6.3.1 — 2023-03-28
- 0.0.0-canary-20230328165206 — 2023-03-28
- 6.3.0 — 2023-03-27
- 0.0.0-canary-20230327141302 — 2023-03-27
- … 72 more at https://npm.io/package/wonka/versions

## README

# Wonka

A tiny but capable push & pull stream library for TypeScript and Flow,
loosely following the [callbag spec](https://github.com/callbag/callbag)

> **NOTE:** The currently released version v6 is only compatible now with TypeScript, Flow, and JavaScript.
> If you're looking for Reason/OCaml/esy/dune support, please check v5, and if you're looking for the legacy version
> of this library check v4.

<br>
<a href="https://npmjs.com/package/wonka">
  <img alt="NPM Version" src="https://img.shields.io/npm/v/wonka.svg" />
</a>
<a href="https://npmjs.com/package/wonka">
  <img alt="License" src="https://img.shields.io/npm/l/wonka.svg" />
</a>
<a href="https://coveralls.io/github/kitten/wonka?branch=master">
  <img src="https://coveralls.io/repos/github/kitten/wonka/badge.svg?branch=master" alt="Test Coverage" />
</a>
<a href="https://bundlephobia.com/result?p=wonka">
  <img alt="Minified gzip size" src="https://img.shields.io/bundlephobia/minzip/wonka.svg?label=gzip%20size" />
</a>
<br>

> “There’s no earthly way of knowing<br>
> Which direction we are going<br>
> There’s no knowing where we’re rowing<br>
> Or which way the river’s flowing” － **Willy Wonka**

<br>

![Wonka](/docs/wonka.jpg?raw=true)

Wonka is a lightweight iterable and observable library loosely based on
the [callbag spec](https://github.com/callbag/callbag). It exposes a set of helpers to create streams,
which are sources of multiple values, which allow you to create, transform
and consume event streams or iterable sets of data.

## [Documentation](https://wonka.kitten.sh/)

**See the documentation at [wonka.kitten.sh](https://wonka.kitten.sh)** for more information about using `wonka`!

- [Introduction](https://wonka.kitten.sh/)
- [**Getting started**](https://wonka.kitten.sh/getting-started)
- [Basics](https://wonka.kitten.sh/basics/)
- [API Reference](https://wonka.kitten.sh/api/)

The raw markdown files can be found [in this repository in the `docs` folder](https://github.com/kitten/wonka/tree/master/docs).

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