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

@lupid/agentum-sdk

v0.1.0

Published

TypeScript/JavaScript SDK for the Agentum Agentic IAM platform

Readme

@lupid/agentum-sdk

What is Agentum?

In-process governance for AI agents. The SDK patches your LLM/MCP clients (OpenAI, Anthropic, LangChain, Vercel AI SDK, MCP stdio) to enforce Cedar policies, capture audit trails, and gate tool calls before they execute. v1's enforcement plane is the SDK; the Rust backend provides policy storage, audit ingest, and HITL approvals.

Install

npm install @lupid/agentum-sdk

All peer dependencies are optional (declared in peerDependenciesMeta) — install whichever you use:

  • openai (≥ 4.0.0)
  • @anthropic-ai/sdk (≥ 0.27.0)
  • @langchain/core (≥ 0.2.0)
  • ai (≥ 3.0.0) — Vercel AI SDK
  • fastify (≥ 4.0.0) — only if using the Fastify integration
  • @nestjs/common (≥ 9.0.0) — only if using the NestJS integration

No Cohere or Gemini SDK peer dep is declared today; those providers are governed via the fetch interceptor only.

Quick start

import { init } from "@lupid/agentum-sdk";

await init({
  apiKey:    process.env.AGENTUM_API_KEY!,
  baseUrl:   process.env.AGENTUM_BASE_URL!,    // e.g. https://api.agentum.ai
  agentName: "my-agent",
});

// From this point, OpenAI / Anthropic / LangChain / Vercel-AI / MCP-stdio
// calls in this process are governed by Agentum policies.

init() derives the tenant from the API key server-side; do not pass a tenantId.

Environment variables

| Variable | Required | Default | Purpose | |---|---|---|---| | AGENTUM_BASE_URL | yes | — | Gateway URL, e.g. http://localhost:7071. | | AGENTUM_API_KEY | yes | — | Provisioned via agentum keys create. | | AGENTUM_AGENT_NAME | yes | — | Stable identifier for this agent. | | AGENTUM_AGENT_FRAMEWORK | no | agentum-sdk | Reported framework label. | | AGENTUM_DECLARED_TOOLS | no | — | CSV of tool names declared at register. | | AGENTUM_DEFAULT_SESSION_ID | no | auto-generated | Pin a default session_id (test/CI). | | AGENTUM_DEFAULT_USER_ID | no | — | Pin a default user_id for context enrichment. |

Programmatic callers can pass any of these as options to init({...}).

Supported runtimes

  • Node ≥ 18 (per engines.node).
  • Vercel Edge / Cloudflare Workers / browser environments work via the same import / require entries — the package does not declare browser or workerd export conditions today. Edge-safety is achieved via lazy node:* imports inside the source rather than separate runtime entries.
  • Node-http interception is Node-only; edge/browser runtimes get fetch-only interception.
  • ESM + CJS dual-published.

Known limitations

  • Cohere/Gemini streaming response-side enforcement is pre-flight-only today (G-016).
  • OpenAI Responses API streaming response-side enforcement is pending (G-017).
  • MCP-over-HTTP enforcement is pending (G-018).
  • Pre-init detection of LLM clients is advisory (warning only) — call init() before importing OpenAI/Anthropic clients (G-029).
  • The endpoint/MITM enforcement plane is out-of-scope for v1 — for hard prevention against a malicious or compromised app, the SDK alone is detection-rich but in-process. See roadmap.

Links

  • Homepage: https://github.com/akashsebastian333/agentum
  • Issue tracker: https://github.com/akashsebastian333/agentum/issues
  • Changelog: ./CHANGELOG.md