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

@podiumcommerce/node-sdk

v0.4.0

Published

TypeScript SDK for Podium API with namespace-style API and environment detection

Downloads

109

Readme

Podium TypeScript SDK

Official TypeScript SDK for the Podium API.

Installation

npm install @podiumcommerce/node-sdk

Quick Start

import { createPodiumClient } from '@podiumcommerce/node-sdk'

const client = createPodiumClient({
  apiKey: 'podium_live_your-api-key',
})

// List products
const products = await client.product.list({ page: 1 })

// Get a creator
const creator = await client.merchant.get({ creatorId: 'creator-id' })

Configuration

API Key

Provide your API key directly:

const client = createPodiumClient({
  apiKey: 'podium_live_your-api-key',
})

Or set the PODIUM_API_KEY environment variable:

export PODIUM_API_KEY=podium_live_your-api-key
const client = createPodiumClient()

Environment Detection

The SDK automatically routes to the correct environment based on your API key:

  • podium_test_* → Staging API
  • podium_live_* → Production API

Custom Base URL

Override the API URL for local development or custom deployments:

const client = createPodiumClient({
  apiKey: 'podium_test_your-api-key',
  baseUrl: 'http://localhost:3030/api/v1',
})

Or via environment variable:

export PODIUM_API_URL=http://localhost:3030/api/v1

Custom Headers

Add headers to all requests:

const client = createPodiumClient({
  apiKey: 'podium_live_your-api-key',
  defaultHeaders: {
    'X-Custom-Header': 'value',
  },
})

API Reference

Products

// List products
const products = await client.product.list({
  page: 1,
  limit: 20,
  categories: '1,2,3',
})

// Buy product
const order = await client.product.create({
  id: 'product-id',
  requestBody: {
    quantity: 2,
  },
})

Creators (Merchants)

// Get creator by ID
const creator = await client.merchant.get({
  creatorId: 'creator-id',
})

// List creator products
const products = await client.merchantProducts.list({
  creatorId: 'creator-id',
})

// Get creator orders
const orders = await client.merchantOrders.list({
  creatorId: 'creator-id',
})

Users

// Create user
const user = await client.user.create({
  requestBody: {
    email: '[email protected]',
    privyId: 'did:privy:xxx',
  },
})

// Get user orders
const orders = await client.userOrders.list({
  id: 'user-id',
})

// Create order for user
const order = await client.userOrder.create({
  id: 'user-id',
  requestBody: {
    productId: 'product-id',
    quantity: 1,
  },
})

NFTs

// Get NFT details
const nft = await client.nft.get({
  network: 'base',
  address: '0x1234...',
  tokenId: '42',
})

// List user NFTs
const nfts = await client.userNfTs.list({
  id: 'user-id',
})

Token Presales

// List presales
const presales = await client.tokenPresales.list()

// Get presale details
const presale = await client.tokenPresales.get({
  id: 'presale-id',
})

// Buy tokens
const purchase = await client.tokenPresales.buy({
  id: 'presale-id',
  requestBody: {
    amount: 100,
  },
})

Search

// Universal search
const results = await client.universalSearch.get({
  q: 'search query',
})

// Product search
const products = await client.search.search({
  query: 'product name',
})

Agentic Commerce (ACP)

// Get product feed for agents
const feed = await client.agentic.list({
  page: 1,
  limit: 20,
})

// Create checkout session
const session = await client.agentic.create({
  requestBody: {
    items: [{ id: 'product-id', quantity: 1 }],
  },
})

// Get checkout session
const state = await client.agentic.get({
  id: 'session-id',
})

// Update checkout session
const updated = await client.agentic.update({
  id: 'session-id',
  requestBody: {
    email: '[email protected]',
    shippingAddress: { ... },
  },
})

Available Namespaces

| Namespace | Description | |-----------|-------------| | product | Product listing and purchase | | merchant | Creator/merchant profiles | | merchantProducts | Creator product management | | merchantOrders | Creator order management | | merchantPayouts | Payout management | | user | User management | | userOrder | User order operations | | userOrders | User order listing | | userNfTs | User NFT operations | | userWallets | User wallet management | | nft | NFT details | | tokenPresales | Token presale operations | | campaigns | Campaign operations | | search | Product search | | universalSearch | Cross-entity search | | agentic | Agentic commerce (ACP) | | categories | Product categories | | discover | Discovery feed | | forYou | Personalized feed |

See the full list of 64+ namespaces in the generated type definitions.

Error Handling

import { ApiError } from '@podiumcommerce/node-sdk'

try {
  const products = await client.product.list({ page: 1 })
} catch (error) {
  if (error instanceof ApiError) {
    console.error(`API Error ${error.status}: ${error.message}`)
    console.error('Response:', error.body)
  }
}

TypeScript Support

The SDK is fully typed. Request parameters and responses have TypeScript definitions:

// Parameters are typed
const products = await client.product.list({
  page: 1,      // number
  limit: 10,    // number
  categories: '1,2', // string
})

// IDE autocomplete works
products.data    // typed array
products.total   // number

License

MIT