# @streamflow/common

> Common utilities and types used by streamflow packages.

Latest version **13.4.0** (published 2026-08-31) · 0 weekly downloads

## Install

```sh
npm install @streamflow/common
pnpm add @streamflow/common
yarn add @streamflow/common
bun add @streamflow/common
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 13.4.0 |
| Published | 2026-08-31 |
| First published | 2024-03-06 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 10 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 165 |
| Maintainers | imprfekt, olegsf, romanstreamflow, dperdic-streamflow |

## Links

- npm: https://www.npmjs.com/package/@streamflow/common
- Repository: https://github.com/streamflow-finance/js-sdk
- Homepage: https://github.com/streamflow-finance/js-sdk/
- Issues: https://github.com/streamflow-finance/js-sdk/issues
- npm.io page: https://npm.io/package/@streamflow/common

## Dependencies (10)

- [bs58](https://npm.io/package/bs58.md) 5.0.0
- [bn.js](https://npm.io/package/bn.js.md) 5.2.3
- [borsh](https://npm.io/package/borsh.md) ^2.0.0
- [p-queue](https://npm.io/package/p-queue.md) ^8.0.1
- [@solana/web3.js](https://npm.io/package/@solana/web3.js.md) 1.98.4
- [@coral-xyz/borsh](https://npm.io/package/@coral-xyz/borsh.md) 0.32.1
- [@coral-xyz/anchor](https://npm.io/package/@coral-xyz/anchor.md) ^0.32.1
- [@solana/spl-token](https://npm.io/package/@solana/spl-token.md) 0.4.9
- [@solana/buffer-layout](https://npm.io/package/@solana/buffer-layout.md) 4.0.1
- [@solana/wallet-adapter-base](https://npm.io/package/@solana/wallet-adapter-base.md) 0.9.19

## Recent versions

- 13.4.0 (latest) — 2026-08-31
- 13.3.1-alpha.p371.561653f (alpha) — 2026-07-29
- 13.3.1 — 2026-07-29
- 13.3.0 — 2026-07-29
- 13.2.1-alpha.p371.2d28b7a — 2026-07-29
- 13.3.0-alpha.p370.7748e31 — 2026-07-29
- 13.2.0 — 2026-07-29
- 13.2.0-alpha.p369.a6f3583 — 2026-07-28
- 13.1.0 — 2026-07-20
- 13.0.0 — 2026-07-16
- 12.5.0 — 2026-07-02
- 12.5.0-alpha.p366.24de361 — 2026-07-01
- 12.4.0 — 2026-06-11
- 12.3.0 — 2026-06-11
- 12.2.1-alpha.p361.52afa92 — 2026-05-25
- … 197 more at https://npm.io/package/@streamflow/common/versions

## README

# Streamflow

Streamflow is a token vesting platform.

There are several ways to use **Streamflow**:

- **(easiest) [app.streamflow.finance](https://app.streamflow.finance?utm_medium=github.com&utm_source=referral&utm_campaign=js-sdk-repo)** (React application that uses JS SDK directly)
- **[JS SDK](https://github.com/streamflow-finance/js-sdk)** to interact with the protocol => [NPM package](https://www.npmjs.com/package/@streamflow/stream)
- **[Rust SDK](https://github.com/streamflow-finance/rust-sdk)** to integrate within a Solana program => [Rust Crate](https://docs.rs/streamflow-sdk/)

**Security audit passed ✅**

Protocol audits available [here](https://www.notion.so/streamflow/Streamflow-Security-Audits-3250070c0b3a4a0690385d96316d645c).  
Partner oracle audit available [here](https://github.com/streamflow-finance/rust-sdk/blob/main/partner_oracle_audit.pdf).

## Documentation

Have an SDK question? Head over to the AI-powered Q&A platform. Just type your query or search the docs, and get instant answers [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/streamflow-finance/js-sdk)

API Documentation available here:  
[![Streamflow](https://img.shields.io/badge/Streamflow-Typedoc-white?labelColor=7187ff&style=flat&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDI0MzIgM0MzLjQyODU1IDMgMSA1LjQxODA1IDEgOC4zOTk5OUgxNy4yQzIwLjE4MjMgOC4zOTk5OSAyMi41OTk5IDUuOTgyMzQgMjIuNTk5OSAzTDYuNDI0MzIgM1oiIGZpbGw9IiMxOTNERjkiLz4KPHBhdGggZD0iTTYuNDI0MzIgMTUuNkMzLjQyODU0IDE1LjYgMSAxOC4wMTgxIDEgMjFINi4zOTk5OUM5LjM4MjMyIDIxIDExLjggMTguNTgyMyAxMS44IDE1LjZINi40MjQzMloiIGZpbGw9IiMxOTNERjkiLz4KPHBhdGggZD0iTTEgOS4yOTk5OEgxNy4zNTc0QzIwLjI1MjggOS4yOTk5OCAyMi41OTk5IDExLjc2NzMgMjIuNTk5OSAxNC43SDYuMjQyMkMzLjM0Njc4IDE0LjcgMSAxMi4yMzI2IDEgOS4yOTk5OFoiIGZpbGw9IiMxOTNERjkiLz4KPC9zdmc+Cg==&link=https://js-sdk-docs.streamflow.finance)](https://js-sdk-docs.streamflow.finance)

## JS SDK to interact with Streamflow protocols

This repo consists of js-sdk to interact with several protocol exposed by streamflow:
- `packages/stream` - [Core Streamflow Protocol](packages/stream/README.md) that allows to create a vesting/lock Stream to a Recipient;
- `packages/distributor` - [Distributor Streamflow Protocol](packages/distributor/README.md) that allows to Airdrop tokens to large amount of Recipients (thousands or even millions);
- `packages/common` - Common utilities and types used by Streamflow SDK;

## Installation

### Install Stream Protocol SDK

```bash
npm i -s @streamflow/stream
# or
yarn add @streamflow/stream
```

### Install Distributor Protocol SDK

```bash
npm i -s @streamflow/common @streamflow/distributor
# or
yarn add @streamflow/common @streamflow/distributor
```

## Environments
For web browser runtimes polyfills might be required. SDKs use `node:` prefixed modules, for instance: `node:crypto`. However, transitive 3rd parties might use non-prefixed modules so both ways of importing should be polyfilled.

The easiest way to achieve it is using a bundler's plugin.
For polyfills take a look on these libraries:
1. Vite - https://www.npmjs.com/package/vite-plugin-node-polyfills
2. Rsbuild - https://github.com/rspack-contrib/rsbuild-plugin-node-polyfill
3. Webpack - https://www.npmjs.com/package/node-polyfill-webpack-plugin

## Contributing

To contribute to this repository, please follow these steps:
[CONTRIBUTING](./CONTRIBUTING.md)

## Release Notes
Check out our [RELEASE NOTES](./RELEASE_NOTES.md) for the latest updates and migration guides.

## News
Stay updated on our [X/Twitter](https://x.com/streamflow_fi).

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