Skip to main content
Home

Built and signed on GitHub Actions

UserHub JavaScript SDK

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
82%
Published
a day ago (0.8.0)

UserHub JavaScript SDK

npm Latest Version JSR Latest Version

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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@userhub/sdk

Import symbol

import * as sdk from "@userhub/sdk";
or

Import directly with a jsr specifier

import * as sdk from "jsr:@userhub/sdk";

Add Package

pnpm i jsr:@userhub/sdk
or (using pnpm 10.8 or older)
pnpm dlx jsr add @userhub/sdk

Import symbol

import * as sdk from "@userhub/sdk";

Add Package

yarn add jsr:@userhub/sdk
or (using Yarn 4.8 or older)
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";