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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tageery/sdk

v1.0.0

Published

Official SDK for Tageery Developer API

Readme

tageery-sdk

Official TypeScript/JavaScript SDK for Tageery Developer API.

Installation

npm install tageery-sdk
# or
pnpm add tageery-sdk
# or
yarn add tageery-sdk

Usage

Using API Key (Developer API)

import { PlatformClient } from 'tageery-sdk';

const client = new PlatformClient({
  apiKey: process.env.PLATFORM_API_KEY!,
  baseURL: 'https://api.yourplatform.com', // optional
});

// List your apps
const { apps } = await client.apps.list();

// Create a new app
const { app } = await client.apps.create({
  name: 'My App',
  description: 'A great app',
  category: 'marketing',
});

Using OAuth Access Token (Store API)

import { PlatformClient } from 'tageery-sdk';

const client = new PlatformClient({
  accessToken: process.env.PLATFORM_ACCESS_TOKEN!,
  baseURL: 'https://api.yourplatform.com',
});

// List products for a store
const { products } = await client.products.list('store_123', {
  limit: 50,
  status: 'active',
});

// Create a product
const { product } = await client.products.create('store_123', {
  name: 'New Product',
  basePrice: 29.99,
  status: 'active',
});

// List orders
const { orders } = await client.orders.list('store_123', {
  status: 'pending',
});

Webhook Handling

import { WebhookHandler } from 'tageery-sdk/webhooks';
import express from 'express';

const app = express();
const handler = new WebhookHandler(process.env.WEBHOOK_SECRET!);

app.post('/webhooks', express.raw({ type: 'application/json' }), (req, res) => {
  const signature = req.headers['x-platform-signature'] as string;
  const body = req.body.toString();
  
  if (!handler.verify(signature, body)) {
    return res.status(401).send('Invalid signature');
  }
  
  const event = handler.parse(body);
  
  // Handle event
  switch (event.event) {
    case 'order.created':
      console.log('New order:', event.data);
      break;
    case 'product.updated':
      console.log('Product updated:', event.data);
      break;
  }
  
  res.status(200).send('OK');
});

API Reference

Products

  • client.products.list(storeId, params?) - List products
  • client.products.get(storeId, productId) - Get product
  • client.products.create(storeId, product) - Create product
  • client.products.update(storeId, productId, updates) - Update product
  • client.products.delete(storeId, productId) - Delete product

Orders

  • client.orders.list(storeId, params?) - List orders
  • client.orders.get(storeId, orderId) - Get order
  • client.orders.update(storeId, orderId, updates) - Update order

Apps

  • client.apps.list(params?) - List your apps
  • client.apps.get(appId) - Get app
  • client.apps.create(app) - Create app
  • client.apps.update(appId, updates) - Update app
  • client.apps.publish(appId) - Publish app for review

Webhooks

  • client.webhooks.list(appId?) - List webhooks
  • client.webhooks.create(webhook) - Create webhook
  • client.webhooks.get(webhookId) - Get webhook
  • client.webhooks.update(webhookId, updates) - Update webhook
  • client.webhooks.delete(webhookId) - Delete webhook

License

MIT