← Articles
Streamflow JS SDK: vesting, airdrops, staking from npm logo
solana

Streamflow JS SDK: vesting, airdrops, staking from npm

· SEP 1, 2026 ·
Read
Share

npm i @streamflow/stream. Browser runtimes need node: crypto polyfills.

devrels.xyz/a/289

Streamflow is a token vesting and airdrop protocol on Solana. The JavaScript SDK lives in streamflow-finance/js-sdk. App: app.streamflow.finance. Typedoc: js-sdk-docs.streamflow.finance. Program IDs and account model: Streamflow programs.

Current npm line is 13.4.0 across the published packages. @streamflow/stream creates vesting streams, token locks, and price-based aligned streams. @streamflow/distributor does merkle airdrops. @streamflow/staking and @streamflow/launchpad ship from the same repo. @streamflow/common is shared types. Rust CPI is a different repo: rust-sdk.

npm packages in js-sdk
PackageJob
@streamflow/streamcreate, createMultiple, withdraw, cancel, topup, transfer, update, getOne, get
@streamflow/distributorMerkle airdrops. Install with @streamflow/common.
@streamflow/stakingStaking package in the same monorepo
@streamflow/launchpadLaunchpad package in the same monorepo
typescript
npm i @streamflow/stream

import { StreamflowSolana } from "@streamflow/stream"
const solanaClient = new StreamflowSolana.SolanaStreamClient(
  "https://api.mainnet-beta.solana.com"
)

Browser bundlers need node:crypto polyfills. The repo points at vite-plugin-node-polyfills, rsbuild-plugin-node-polyfill, and node-polyfill-webpack-plugin. Amounts go through getBN / getNumberFromBN.

Keep reading

Get new articles in your inbox

Technical deep-dives on Solana tooling, infrastructure, and ecosystem. No noise.

Streamflow JS SDK: vesting, airdrops, staking from npm | devrels.xyz