The official TypeScript library for the Privy API
npm install @privy-io/node !npm bundle size
This library provides convenient access to the Privy REST API from server-side TypeScript or JavaScript.
The REST API documentation can be found on docs.privy.io.
It is generated with Stainless.
``sh`
npm install @privy-io/node
See Privy's Node SDK guide for setup and usage.
TypeScript >= 4.9 is supported.
The following runtimes are supported:
- Node.js 20 LTS or later (non-EOL) versions.
- Deno v1.28.0 or higher.
- Bun 1.0 or later.
- Cloudflare Workers.
- Vercel Edge Runtime.
- Jest 28 or greater with the "node" environment ("jsdom"` is not supported at this time).
- Nitro v2.6 or greater.
> [!WARNING]
> Web browser runtimes aren't supported. The SDK will throw an error if used in a browser environment.
Note that React Native is not supported at this time.
If you are interested in other runtime environments, please open or upvote an issue on GitHub.
Our changelog contains the latest information about new releases, including features, fixes, and upcoming changes.
We use Semantic Versioning to track breaking changes.