Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
userhubdev/js-sdkUserHub JavaScript SDK
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
82%
Published
a day ago (0.8.0)
UserHub JavaScript SDK
The official UserHub JavaScript SDK.
Requirements
- Node 18 or later
- Deno 1.28 or later
- Bun 1 or later
Getting Started
Install SDK
npm install @userhub/sdk
Example
import { AdminApi } from "@userhub/sdk"; const adminApi = new AdminApi("userhub_admin_123"); const res = await adminApi.users.list({ pageSize: 5 }); for (const user of res.users) { console.log(user.id, user.displayName); }
See the examples
directory for more examples.
Built and signed on
GitHub Actions
Add Package
deno add jsr:@userhub/sdk
Import symbol
import * as sdk from "@userhub/sdk";
Import directly with a jsr specifier
import * as sdk from "jsr:@userhub/sdk";
Add Package
pnpm i jsr:@userhub/sdk
pnpm dlx jsr add @userhub/sdk
Import symbol
import * as sdk from "@userhub/sdk";
Add Package
yarn add jsr:@userhub/sdk
yarn dlx jsr add @userhub/sdk
Import symbol
import * as sdk from "@userhub/sdk";
Add Package
npx jsr add @userhub/sdk
Import symbol
import * as sdk from "@userhub/sdk";
Add Package
bunx jsr add @userhub/sdk
Import symbol
import * as sdk from "@userhub/sdk";