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

@oconnectortechnology/abs-langgraph

v1.0.0-rc1

Published

ABS CORE Governance Adapter for LangGraph/LangChain

Downloads

51

Readme

@oconnectortechnology/abs-langgraph

ABS CORE Governance Adapter for LangGraph/LangChain

Wrap your LangGraph tools with enterprise-grade governance in one line of code.

Installation

npm install @oconnectortechnology/abs-langgraph

Quick Start

import { tool } from "@langchain/core/tools";
import { absGuard } from "@oconnectortechnology/abs-langgraph";
import { z } from "zod";

// 1. Define your dangerous tool
const deleteUser = tool(
  async ({ userId }) => {
    return `User ${userId} deleted from production DB.`;
  },
  {
    name: "delete_user",
    description: "Permanently deletes a user.",
    schema: z.object({ userId: z.string() }),
  }
);

// 2. Wrap with ABS governance
const protectedDelete = absGuard(deleteUser, {
  policy: "gdpr-right-to-erasure",
  riskLevel: "critical"
});

// 3. Use in your LangGraph agent
const tools = [protectedDelete];

Configuration

interface ABSConfig {
  policy: string;                    // Required: policy tag
  riskLevel?: "critical" | "high" | "medium" | "low";
  runtimeUrl?: string;               // Default: https://api.abscore.app
  apiKey?: string;                   // Default: process.env.ABS_API_KEY
  agentId?: string;                  // Default: "langgraph-agent"
  shadowMode?: boolean;              // Log without blocking
}

Environment Variables

ABS_API_KEY=your-api-key
ABS_RUNTIME_URL=https://api.abscore.app  # optional
ABS_AGENT_ID=my-agent                     # optional

Batch Protection

import { absGuardAll } from "@oconnectortechnology/abs-langgraph";

const protectedTools = absGuardAll([tool1, tool2, tool3], {
  policy: "financial-strict"
});

Factory Pattern

import { createABSGuard } from "@oconnectortechnology/abs-langgraph";

const financialGuard = createABSGuard({
  policy: "financial-strict",
  riskLevel: "critical"
});

const safeTool = financialGuard(dangerousTool);

How It Works

  1. INTERCEPT: Tool call is captured before execution
  2. VALIDATE: Request sent to ABS Runtime for policy check
  3. JUDGMENT: Runtime returns ALLOWED or DENIED with audit proof
  4. EXECUTE: If allowed, original tool runs. If denied, error is thrown.

Fail-Close

If ABS Runtime is unreachable, the tool is blocked by default. This ensures no action executes without governance approval.

Shadow Mode

Enable shadow mode to log violations without blocking:

absGuard(tool, {
  policy: "pii-protection",
  shadowMode: true  // Violations logged, not blocked
});

License

Apache-2.0