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

@evalguard/sdk

v2.0.2

Published

Official EvalGuard SDK — LLM evaluation, red-team security, runtime guardrails, observability, and FinOps. Note: a third-party package named `evalguard` exists on npm and is not affiliated with EvalGuard, Inc.

Downloads

480

Readme

evalguard

npm version License: MIT

Official Node.js/TypeScript SDK for the EvalGuard API -- evaluate, red-team, and guard LLM applications programmatically.

Installation

npm install evalguard

Quick Start

import { EvalGuard } from "evalguard";

const client = new EvalGuard({ apiKey: "eg_live_..." });

// Run an evaluation
const evalResult = await client.eval({
  name: "qa-check",
  projectId: "my-project",
  model: "gpt-4o",
  prompt: "Answer: {{input}}",
  cases: [
    { input: "What is 2+2?", expectedOutput: "4" },
  ],
  scorers: ["exact-match", "contains"],
});
console.log(`Eval ID: ${evalResult.id}`);

// Run a security scan
const scan = await client.securityScan({
  projectId: "my-project",
  model: "gpt-4o",
  prompt: "You are a helpful assistant.",
  attackTypes: ["prompt-injection", "jailbreak", "data-extraction"],
});
console.log(`Scan ID: ${scan.id}`);

// Get eval results
const run = await client.getEvalRun(evalResult.id);
console.log(`Status: ${run.status}, Score: ${run.score}`);

// Send trace data
await client.trace({
  projectId: "my-project",
  sessionId: "session-123",
  steps: [
    { type: "llm", input: "Hello", output: "Hi there!", duration: 450 },
  ],
});

Configuration

const client = new EvalGuard({
  apiKey: "eg_live_...",
  baseUrl: "https://your-self-hosted-instance.com/api/v1", // optional
});

Methods

| Method | Description | |---|---| | client.eval(params) | Run an evaluation with scorers and test cases | | client.getEvalRun(id) | Fetch results of a specific eval run | | client.securityScan(params) | Run a red-team security scan against a model | | client.trace(params) | Send agent/LLM trace data for monitoring |

TypeScript

The SDK exports all types from @evalguard/core for full type safety:

import type { EvalGuardConfig } from "evalguard";

Documentation

Full documentation at evalguard.ai/docs/sdk.

License

MIT -- see LICENSE for details.