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

@goderash/sdk

v0.1.1

Published

Goderash SDK — audit any AI agent with one import. Tamper-evident, hash-chained, regulator-ready.

Downloads

325

Readme

@goderash/sdk

Audit any AI agent with one import. Tamper-evident, hash-chained, regulator-ready.

npm version npm downloads license

Goderash is the audit & governance fabric for regulated AI agents. One decorator turns every tool call, LLM call, and policy decision into a typed, immutable, SHA-256 hash-chained event in a per-tenant ledger. From there: signed evidence packs for SOC 2, HIPAA, FFIEC, FINRA, and SEC Rule 17a-4 in one click.

Install

npm i @goderash/sdk
# or
pnpm add @goderash/sdk
# or
yarn add @goderash/sdk

60-second quickstart

import { GoderashClient, wrapTool } from '@goderash/sdk'

const goderash = new GoderashClient({
  apiKey: process.env.GODERASH_API_KEY!,
  tenant: 'acme-finance',
  agentId: 'portfolio-advisor-v1',
})

const transferMoney = wrapTool(
  goderash,
  { name: 'transfer_money', category: 'action', confirmation: 'biometric' },
  async (src: string, dst: string, amount: number) => {
    // ... your logic ...
    return { status: 'queued' }
  },
)

const ctx = goderash.newContext()
await transferMoney('checking', 'savings', 100, { goderashContext: ctx })
// → emits: tool.invoked, tool.completed
// → hash-chained into the per-tenant ledger
// → ready to be included in your next SOC 2 / HIPAA evidence pack

What wrap* does

| Decorator | What it wraps | Events emitted | |---|---|---| | wrapTool | Any function the agent can call | tool.invoked, tool.completed / tool.failed, plus any contract.violated events | | wrapLLM | Your LLM call (OpenAI, Anthropic, etc.) | llm.call.started, llm.call.completed (with token usage) | | wrapAgent | The full agent turn boundary | agent.turn.started, agent.turn.completed (parent of every tool/LLM event in the turn) |

Every event carries tenant_id, agent_id, conversation_id, turn_id, parent_event_id, occurred_at, recorded_at, prev_hash, hash — the chain-of-custody auditors require.

Runtime guards

The same SDK ships the runtime safety stack we built for an AI banking agent in production:

import {
  GuardChain,
  FraudGuard,
  PermissionModeGate,
  VelocityLimiter,
  ConversationBudget,
  CancellationToken,
} from '@goderash/sdk/guards'

const guards = new GuardChain([
  new PermissionModeGate({ mode: 'STRICT' }),
  new FraudGuard(),
  new VelocityLimiter({
    rules: {
      transfer_money: [{ windowSec: 3600, maxCount: 5, label: '5/hour' }],
    },
  }),
  new ConversationBudget({ maxToolCalls: 20, maxTokens: 200_000 }),
])

const decision = await guards.evaluate(goderash, ctx, {
  tool: 'transfer_money',
  input: { amount: 500 },
})
if (decision.allow) {
  await transferMoney(...)
}

| Guard | What it stops | |---|---| | PermissionModeGate | Tools your current mode (PLAN / DEFAULT / AUTO / STRICT) doesn't authorize | | FraudGuard | Pattern-based attack signatures at the input boundary | | VelocityLimiter | Per-tool rate limit (Redis-backed in production) | | ConversationBudget | Runaway loops (max tool calls, max tokens per conversation) | | CancellationToken | Irreversible actions cancelled mid-flight |

Drop-in framework adapters

| Framework | Package | |---|---| | Anthropic Messages / Claude SDK | @goderash/adapter-claude-sdk | | OpenAI Assistants | @goderash/adapter-openai-assistants | | LangGraph.js / LangChain.js | @goderash/adapter-langgraph |

License

Apache-2.0