npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@prestige-app-cloud/sdk

v0.3.0

Published

TypeScript SDK for Prestige Cloud BaaS — Auth, APIs, Billing, AI Proxy, Push, Files, Lookup Tables

Readme

@prestige-cloud/sdk

TypeScript SDK for Prestige Cloud OAuth 2.0 API.

Handles the full PKCE authorization flow, automatic token refresh, vault access, API connections, and proxy calls.

Installation

npm install @prestige-cloud/sdk

Quick Start

import { PrestigeClient } from "@prestige-cloud/sdk";

const client = new PrestigeClient({
  clientId: "your-client-id",
  redirectUri: "http://localhost:3000/callback",
  scopes: ["profile", "vault:standard_api", "connections:proxy"],
  storage: "localStorage",
});

// Start OAuth login
const loginUrl = await client.getLoginUrl();
window.open(loginUrl);

// After callback
await client.handleCallback(code);

// Read vault entries
const entries = await client.getVaultEntries("standard_api");

// Proxy API call (key never leaves Prestige Cloud)
const response = await client.proxy("openai-chat", {
  body: { model: "gpt-4", messages: [{ role: "user", content: "Hello" }] },
});

API

OAuth Flow

  • getLoginUrl(state?) — Generate OAuth authorization URL with PKCE
  • handleCallback(code) — Exchange authorization code for tokens
  • refreshTokens() — Refresh the access token using the stored refresh token
  • setTokens(tokens) — Set tokens directly (e.g. restoring from storage)
  • getTokens() — Get the current token set, or null if not authenticated
  • clearTokens() — Clear tokens from memory and persistent storage

Vault

  • getVaultEntries(category) — Read vault entries for a category
  • writeVaultEntries(category, entries) — Write vault entries (write-if-empty semantics)

Connections

  • getConnections() — List API connections with per-placeholder fill status
  • createConnection(templateId, placeholderValues) — Create a connection for an API template

User

  • getUserProfile() — Fetch the authenticated user's profile (requires profile scope)

Proxy

  • proxy(templateSlug, options?) — Forward a request through Prestige Cloud to a connected API

App Config

  • getAppConfig() — Get app integration config (requires authentication)
  • getPublicAppConfig() — Get app config without authentication (identified by client ID)

Manual Storage (Local)

  • saveManualValues(templateId, values) — Save API key values to local storage
  • getManualValues(templateId) — Load saved values for a specific template
  • getAllManualValues() — Load all manually saved values across every template

Configuration

interface PrestigeClientConfig {
  /** OAuth client ID issued by Prestige Cloud. */
  clientId: string;
  /** URI that Prestige Cloud redirects to after authorization. */
  redirectUri: string;
  /** OAuth scopes to request. */
  scopes: string[];
  /** Base URL of the Prestige Cloud instance. Defaults to "https://prestige.cloud". */
  baseUrl?: string;
  /** Token storage strategy. Defaults to "none". */
  storage?: "localStorage" | "sessionStorage" | "none";
  /** Key used for web storage. Defaults to "prestige_tokens". */
  storageKey?: string;
}

Exported Types

  • PrestigeClientConfig
  • TokenSet
  • VaultEntry
  • WriteVaultResult
  • Connection
  • CreateConnectionResult
  • UserProfile
  • AppConfig
  • StorageType

License

MIT