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

@general-augment/sdk

v0.1.1

Published

TypeScript SDK for General Augment, the agent backend for your app.

Downloads

29

Readme

General Augment TypeScript SDK

General Augment is the agent backend for your app. This TypeScript SDK is for trusted server-side app integrations.

Project-scoped keys are for app traffic such as Responses and memory calls. Admin and setup helpers require a management/admin-capable key and send it as X-Admin-Key.

During private beta, package publishing may not be available in every npm index. If installing the package fails, use the repository package path for local tests or raw HTTP examples in the public docs until scripts/package-registry-readiness.py reports the expected package version as published.

npm install @general-augment/sdk
import {
  GeneralAugmentClient,
  VERSION,
  responseOutputText,
  responseStructuredOutput,
} from "@general-augment/sdk";

const client = new GeneralAugmentClient({
  apiKey: process.env.GENAUG_API_KEY!,
  baseUrl: process.env.GENAUG_API_BASE_URL ?? "https://api.generalaugment.com",
  timeoutMs: 60_000,
});

console.log(`General Augment SDK ${VERSION}`);

timeoutMs defaults to 60 seconds and raises a typed request_timeout API error when the platform request does not receive a response in time. Set timeoutMs: 0 only when your app already applies its own fetch timeout policy.

Responses

const response = await client.createResponse(
  {
    model: "balanced",
    user: "app-user-123",
    input: "Reply with a concise onboarding summary.",
    metadata: { feature: "onboarding" },
  },
  { idempotencyKey: "onboarding-turn-1", requestId: "req_app_123" },
);

console.log(responseOutputText(response));

Structured output:

const structuredResponse = await client.createResponse({
  model: "balanced",
  user: "app-user-123",
  input: "Extract the user's preference: window seat.",
  text: {
    format: {
      type: "json_schema",
      name: "preference",
      strict: true,
      schema: {
        type: "object",
        required: ["seat"],
        properties: { seat: { type: "string" } },
        additionalProperties: false,
      },
    },
  },
});

const preference = responseStructuredOutput<{ seat: string }>(structuredResponse);

Streaming:

for await (const event of client.streamResponse({
  model: "balanced",
  user: "app-user-123",
  input: "Draft a two sentence welcome message.",
})) {
  if (event.event === "response.output_text.delta") {
    process.stdout.write(String((event.data as any).delta ?? ""));
  }
}

Memory

const stored = await client.storeMemory({
  user_id: "app-user-123",
  fact: "User prefers window seats",
  fact_type: "preference",
  importance_score: 0.9,
  idempotency_key: "memory-window-seat-1",
});

await client.searchMemory({ user_id: "app-user-123", query: "seat preference" });
await client.memoryProfile("app-user-123");
await client.deleteMemory(String(stored.memory_id), "app-user-123");
await client.purgeUserMemory("app-user-123");

Usage

const usage = await client.usage("project_123", {
  startDate: "2026-04-01",
  endDate: "2026-04-24",
});
console.log(usage.totals);

Local Tests

Run the local mock server and point the SDK at it:

uv run --project packages/cli genaug mock --host 127.0.0.1 --port 8787 --quiet
export GENAUG_API_BASE_URL="http://127.0.0.1:8787"
export GENAUG_API_KEY="local-test"
npm install
npm run build
node examples/contract-test.mjs

The contract example covers a Responses turn plus memory store/search against the same deterministic routes used by app backend CI.

Other Helpers

The SDK also includes createProjectFromConfig, registerOpenAPITools, linkUser, usage, and testAgent for admin and integration workflows.