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

@pouchy_ai/admin-sdk

v0.5.0

Published

Typed TypeScript client for the Pouchy Admin API — manage agents, keys, end users, knowledge, skills, channels, schedules, webhooks and credentials headlessly, with a project Admin key.

Readme

@pouchy_ai/admin-sdk

Typed TypeScript client for the Pouchy Admin API — everything the dashboard does, headless. Manage agents, secret keys, end users, knowledge, skills, channels, schedules, webhooks and credentials; read usage, billing, traces and audit logs. Zero runtime dependencies (uses the global fetch).

The Admin API is authenticated with a project-scoped Admin key (pchy_admin_…, from the dashboard Admin Keys page). The project is implied by the key — you never pass a project id.

Install

npm i @pouchy_ai/admin-sdk

Quickstart

import { createAdminClient } from '@pouchy_ai/admin-sdk';

const admin = createAdminClient({ adminKey: process.env.POUCHY_ADMIN_KEY! });

// List agents
const { agents } = await admin.listAgents();

// Create + publish an agent
const { agent } = await admin.createAgent({
  name: 'Support Bot',
  archetype: 'support',
  systemPrompt: 'You are a concise, friendly support agent.'
});
await admin.updateAgent(agent.agentId, { status: 'published' });

// Mint a secret key for your backend to open end-user sessions with
const { key } = await admin.createKey({ label: 'prod-backend', env: 'live' });
console.log(key); // the plaintext token — shown ONCE

// Read this month's usage
const { usage } = await admin.getUsage();
console.log(usage.mau, '/', usage.mauLimit, 'MAU');

// Equip an agent with ANY skill — including a docs-only skill.md that has no
// `tools:` block — entirely via the API:
const { skill } = await admin.installSkill({
  md: '---\nname: echo-probe\nallowed_domains:\n  - postman-echo.com\n---\nGET https://postman-echo.com/get echoes the request.'
});
await admin.updateAgent(agent.agentId, { skills: [skill.slug] }); // attach to the agent
const armed = await admin.grantSkill(skill.slug, {
  freeHttp: true,
  grantedDomains: ['postman-echo.com'] // unioned with the manifest's allowed_domains
});
console.log(`armed — ${armed.reprovisioned} running instance(s) updated`);
// The agent can now drive the API from the skill's prose via http_request.

Options

createAdminClient({
  adminKey: 'pchy_admin_…',   // required
  baseUrl: 'https://pouchy.ai/v1/admin', // optional (self-host / staging)
  fetch: myFetch,             // optional (Node <18, or tests)
  timeoutMs: 30_000           // optional per-request timeout (default 30s)
});

Errors

Every method throws AdminApiError on failure — a non-2xx response, a network error, or a timeout. Transport failures (network/DNS/timeout) carry status: 0; HTTP errors carry the real status and the server's error string:

import { AdminApiError } from '@pouchy_ai/admin-sdk';
try {
  await admin.getAgent('nope');
} catch (e) {
  if (e instanceof AdminApiError) console.error(e.status, e.message); // 404 "unknown agent"
}

Surface

| Area | Methods | | --- | --- | | Agents | listAgents · createAgent · getAgent · updateAgent · deleteAgent | | Voices | listVoices({ gender?, age?, locale? }) — catalog for programmatic voice selection (each CatalogVoice carries age) | | Secret keys | listKeys · createKey · revokeKey · rotateKey (24 h grace) | | End users | listUsers({ limit?, cursor? }) (cursor-paginated — the response's nextCursor feeds the next page; filter variants: external_user_id / external_user_prefix) · setUserSuspended · deleteUser · getUserWallet · getUserTraces · importUsers · exportUser · getUserSessions · getUserTurns | | Knowledge | listKnowledge · ingestKnowledge · deleteKnowledge | | Skills | listSkills · installSkill · updateSkill · setSkillRate · setSkillDailyCap · grantSkill (free-HTTP) · compileSkill (prose→tools) · uninstallSkill | | Credentials | listCredentials · putCredentials · deleteCredentials | | Channels | listChannels · createChannel · getChannel · updateChannel · deleteChannel | | Schedules | listSchedules · createSchedule · getSchedule · updateSchedule · deleteSchedule | | Webhooks | listWebhooks · createWebhook · updateWebhook · rotateWebhookSecret · deleteWebhook · testWebhook · redeliverWebhook | | Reporting | getUsage · getBilling · getTracesSummary · getRecentTraces · getLogs · getProject · updateProject | | Escape hatch | request(method, path, body?) — any endpoint not yet typed |

OpenAPI

The machine-readable contract is served at GET https://pouchy.ai/v1/admin/openapi (OpenAPI 3.1, public). Import it into Postman / Swagger UI, or generate a client in any other language with openapi-generator.

License

SEE LICENSE IN LICENSE.