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

@simpleapps-com/augur-api

v2026.3.1

Published

TypeScript client library for Augur microservices API endpoints

Readme

@simpleapps-com/augur-api

TypeScript client library for Augur microservices.

Installation

npm install @simpleapps-com/augur-api

Quick Start

import { AugurAPI } from '@simpleapps-com/augur-api';

const api = new AugurAPI({
  siteId: process.env.AUGUR_SITE_ID,
  bearerToken: process.env.AUGUR_TOKEN,
});

// Access any service via api.{serviceName}
const items = await api.items.invMast.list({ limit: 10 });
const customers = await api.customers.customer.list({ limit: 10 });
const orders = await api.orders.orders.lookup({ limit: 10 });

Service Access Pattern

All services are accessed through the unified AugurAPI client:

api.items        // Items service
api.customers    // Customers service
api.orders       // Orders service
api.pricing      // Pricing service
api.commerce     // Commerce service
// ... 27 services total

Documentation

| Resource | URL | |----------|-----| | Full API Reference | https://augur-api.info | | Endpoint Hints | https://{service}.augur-api.com/llms.txt | | Parameters | https://{service}.augur-api.com/endpoints.jsonl | | OpenAPI Spec | https://{service}.augur-api.com/openapi.json |

Example: Items Service

  • https://items.augur-api.com/llms.txt
  • https://items.augur-api.com/endpoints.jsonl
  • https://items.augur-api.com/openapi.json

Each llms.txt lists all other available services for discovery.

Authentication

All endpoints require:

  • siteId - Site identifier
  • bearerToken - Bearer authentication token
const api = new AugurAPI({
  siteId: 'your-site-id',
  bearerToken: 'your-bearer-token',
});

Configuration

import { AugurAPI, AugurAPIConfig } from '@simpleapps-com/augur-api';

// With custom configuration
const config: AugurAPIConfig = {
  bearerToken: 'your-bearer-token',
  siteId: 'your-site-id',
  timeout: 30000,
  retries: 3,
  retryDelay: 1000,
};
const api = new AugurAPI(config);

// From context (for framework integration)
const api = AugurAPI.fromContext(context);

Edge Caching

Enable Cloudflare edge caching on any GET request using the edgeCache parameter:

// Sub-hour caching
const items = await api.items.invMast.list({ limit: 10, edgeCache: '30s' }); // 30 seconds
const items = await api.items.invMast.list({ limit: 10, edgeCache: '1m' });  // 1 minute
const items = await api.items.invMast.list({ limit: 10, edgeCache: '5m' });  // 5 minutes

// Hourly caching (1, 2, 3, 4, 5, or 8 hours)
const items = await api.items.invMast.list({ limit: 10, edgeCache: 1 });     // 1 hour
const items = await api.items.invMast.list({ limit: 10, edgeCache: 8 });     // 8 hours

| Value | Duration | |-------|----------| | '30s' | 30 seconds | | '1m' | 1 minute | | '5m' | 5 minutes | | 1 - 5, 8 | 1-5 or 8 hours |

The client automatically transforms edgeCache to Cloudflare's cacheSiteId{N} format.

Error Handling

import { AugurAPI } from '@simpleapps-com/augur-api';
import {
  AugurError,
  AuthenticationError,
  NotFoundError,
  RateLimitError,
  ValidationError,
} from '@simpleapps-com/augur-api';

const api = new AugurAPI({ siteId: '...', bearerToken: '...' });

try {
  const response = await api.items.invMast.get(12345);
} catch (error) {
  if (error instanceof NotFoundError) {
    console.log(`Item not found: ${error.message}`);
  } else if (error instanceof AuthenticationError) {
    console.log(`Auth failed: ${error.message}`);
  } else if (error instanceof RateLimitError) {
    console.log(`Rate limited: ${error.message}`);
  } else if (error instanceof AugurError) {
    console.log(`API error: ${error.code} - ${error.message}`);
  }
}

For AI Agents

See SKILL.md for guidance on using this package with AI assistance.

License

MIT