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

@bentolabs/ams

v0.1.2

Published

TypeScript SDK for BentoLabs AMS

Readme

@bentolabs/ams

JavaScript/TypeScript SDK for BentoLabs AMS — an open-source observability platform for AI agents.

Trace, evaluate, annotate, and analyze LLM data. Bring LLM applications to production with confidence.

Quickstart

npm install @bentolabs/ams

And then in the code:

import { AMS } from '@bentolabs/ams'

AMS.initialize({ projectApiKey: '<PROJECT_API_KEY>' })

This will automatically instrument most LLM, Vector DB, and related calls with OpenTelemetry-compatible instrumentation.

Where to place AMS.initialize()

AMS.initialize() must be called:

  • once in your application
  • as early as possible, but after other instrumentation libraries

Instrumentation

In addition to automatic instrumentation, we provide a simple observe() wrapper for tracing individual functions.

Example

import { OpenAI } from 'openai';
import { AMS as L, observe } from '@bentolabs/ams';

L.initialize({ projectApiKey: "<AMS_PROJECT_API_KEY>" });

const client = new OpenAI({ apiKey: '<OPENAI_API_KEY>' });

const poemWriter = async (topic = "turbulence") => {
  const prompt = `write a poem about ${topic}`;
  const response = await client.chat.completions.create({
    model: "gpt-4o",
    messages: [
      { role: "system", content: "You are a helpful assistant." },
      { role: "user", content: prompt }
    ]
  });

  return response.choices[0].message.content;
}

await observe({ name: 'poemWriter' }, async () => await poemWriter('turbulence'))

Evaluations

npm install @bentolabs/ams
import { evaluate } from '@bentolabs/ams';

const writePoem = ({ topic }: { topic: string }) => {
  return `This is a good poem about ${topic}`;
};

evaluate({
  data: [
    { data: { topic: 'flowers' }, target: { poem: 'This is a good poem about flowers' } },
    { data: { topic: 'cars' }, target: { poem: 'I like cars' } },
  ],
  executor: (data) => writePoem(data),
  evaluators: {
    containsPoem: (output, target) => target.poem.includes(output) ? 1 : 0,
  },
  groupId: 'my_first_feature',
});

Run:

export AMS_PROJECT_API_KEY=<AMS_PROJECT_API_KEY>
npx ams eval my-first-eval.ts

Client

import { AMSClient } from '@bentolabs/ams';

const client = new AMSClient({ projectApiKey: '<AMS_PROJECT_API_KEY>' });