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

@wallstack-aa-caas/sdk

v0.2.0

Published

Official TypeScript SDK for WallStack AA-CaaS™ REST v2 API — AI Training datasets, DI+Wet paired audio, neural amp modeling

Readme

@wallstack-aa-caas/sdk

CI npm version License: MIT

Official TypeScript SDK for the WallStack AA-CaaS™ REST v2 API — human-performed analog guitar assets (stems, full mixes, DI layers) from a physical Mesa Boogie studio, delivered via a Stripe-style REST API.


Features

  • 19 endpoints across 6 sub-clients
  • Dual auth — Bearer API key + JWT cookie
  • Stripe-style errors — 7 types + 25 error codes
  • { data, meta } responses — consistent envelope
  • Idempotency-Key support (/auth/token, /auth/refresh, /dashboard/download)
  • Retry with exponential backoff on 429 / 5xx
  • Full TypeScript types — synced with OpenAPI 3.1
  • Dual ESM + CJS build
  • Node.js >= 18

Installation

npm install @wallstack-aa-caas/sdk

Quick Start

import { WallStackClient } from "@wallstack-aa-caas/sdk";

const client = new WallStackClient({
  apiKey: process.env.WALLSTACK_API_KEY, // ws_live_* or ws_sandbox_*
});

// 1. Public — browse the release catalog
const { releases, total } = await client.releases.list({
  status: "available",
  limit: 20,
});
console.log(`${total} releases available`);

// 2. Public — get a release with tracks
const detail = await client.releases.get("wss-ccg-vol-1");
console.log(`${detail.title} — ${detail.tracks.length} tracks`);

// 3. Bearer — download a track asset
const dl = await client.tracks.download("the-loop-of-hope", "FULL_MIX");
console.log(dl.download_url, "expires in", dl.expires_in, "s");

Authentication

The SDK supports two auth modes, matching the API:

| Mode | Header | Used by | |---|---|---| | Bearer | Authorization: Bearer ws_live_* | /tracks/*, /user/*, /auth/refresh | | Cookie | Cookie: ws_session=<jwt> | /auth/*, /dashboard/*, /admin/* |

const client = new WallStackClient({
  apiKey: "ws_live_...",
  jwtCookie: "eyJhbGciOi...",
});

// Or at runtime:
client.setApiKey("ws_live_...");
client.setJwtCookie("eyJhbGciOi...");

Endpoints (19)

Health (public)

await client.health.check();     // GET /health
await client.health.openapi();   // GET /openapi

Releases (public)

await client.releases.list({ status: "available", limit: 20, offset: 0 });
await client.releases.get("wss-ccg-vol-1");
await client.releases.tracks("wss-ccg-vol-1");

Tracks (Bearer)

await client.tracks.download("the-loop-of-hope", "FULL_MIX");

Auth

await client.auth.register({ email, password, fullName, company }); // public
await client.auth.login({ email, password });                        // public
await client.auth.logout();                                          // cookie
await client.auth.me();                                              // cookie
await client.auth.createToken({ name: "prod" }, "idem-key");         // cookie + idem
await client.auth.refreshToken("idem-key");                          // bearer + idem

User (Bearer)

await client.user.usage();
await client.user.subscription();

Dashboard (Cookie, idempotent)

await client.dashboard.download(
  { trackSlug: "the-loop-of-hope", assetType: "FULL_MIX" },
  "idem-key-001"
);

Asset Types (7)

FULL_MIX | STEM_RHYTHM | STEM_ARPEGGIO | STEM_SOLO | DI_RHYTHM | DI_ARPEGGIO | DI_SOLO


Errors

All errors extend WallStackError. Each maps to a Stripe-style type:

| Class | Status | Type | |---|---|---| | AuthenticationError | 401 | authentication_error | | PermissionError | 403 | permission_error | | NotFoundError | 404 | not_found_error | | ValidationError | 400 | invalid_request_error | | ConflictError | 409 | conflict_error | | RateLimitError | 429 | rate_limit_error | | ServerError | 500+ | api_error |

import { NotFoundError, RateLimitError } from "@wallstack-aa-caas/sdk";

try {
  await client.releases.get("does-not-exist");
} catch (err) {
  if (err instanceof NotFoundError) {
    console.error(err.code);       // "release_not_found"
    console.error(err.requestId);
  } else if (err instanceof RateLimitError) {
    console.error(err.retryAfter); // seconds
  }
}

All error codes are exported:

import { ErrorCode } from "@wallstack-aa-caas/sdk";
ErrorCode.RATE_LIMITED;          // "rate_limit_exceeded"
ErrorCode.RELEASE_NOT_FOUND;     // "release_not_found"

Rate Limits

| Preset | Limit | Applies to | |---|---|---| | AUTH | 300 req/min | Auth endpoints | | PUBLIC | 60 req/min | /releases, /health | | DOWNLOAD | 30 req/min | File download |


Idempotency

Pass an Idempotency-Key on supported endpoints (24h TTL):

await client.dashboard.download(
  { trackSlug: "the-loop-of-hope", assetType: "FULL_MIX" },
  "order-42-20261004"
);

Requirements

  • Node.js >= 18 (uses global fetch)
  • TypeScript >= 5.0
  • Works in edge runtimes — pass fetch in options

Development

npm install
npm run typecheck    # tsc --noEmit
npm run lint         # eslint src
npm run build        # tsup (ESM + CJS + DTS)
npm test             # vitest run

License

MIT (c) 2026 WallStack · B2B CaaS Audio

Author: Andrey S. Yarovenko Contact: [email protected] Docs: https://wallstackaudio.com/api-docs