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

@obyflow/node

v1.1.2

Published

Node.js instrumentation SDK for [Obyflow](https://github.com/Obyflow/obyflow) — an AI-native, CLI-first observability platform for tracing, debugging, and understanding modern applications (LLM calls, vector-store queries, LangChain steps, and plain HTTP

Readme

@obyflow/node

Node.js instrumentation SDK for Obyflow — an AI-native, CLI-first observability platform for tracing, debugging, and understanding modern applications (LLM calls, vector-store queries, LangChain steps, and plain HTTP included).

Events are captured locally to SQLite (no external backend required) and can then be explored, correlated, and investigated with the obyflow CLI.

Install

npm install @obyflow/node

Requires Node.js ≥ 22.

Quick start

import { start } from "@obyflow/node";

const obyflow = start({ service: "checkout-api" });

// Inbound AND outbound HTTP are both instrumented automatically by start(),
// including automatic trace-context propagation (x-obyflow-trace-id /
// x-obyflow-parent-span-id headers) across outbound calls to other services.

// Wrap vector-db clients, embedding clients, and LangChain explicitly as needed:
const pineconeIndex = obyflow.instrument.pinecone(index);
const langchainHandler = obyflow.instrument.langchain();

Then, in the same project:

npx obyflow init
npx obyflow traces
npx obyflow investigate --since 15m

What's instrumented

  • HTTP — inbound requests and outbound http/https/fetch calls, with automatic cross-service trace propagation
  • LangChain — chain/tool/LLM call events via a callback handler (instrument.langchain()); no dependency on langchain itself, works structurally against any compatible version
  • Vector databases — Pinecone, Qdrant, Weaviate, Chroma, pgvector, and Milvus (instrument.pinecone, .qdrant, .weaviate, .chroma, .pgvector, .milvus)
  • Embeddings — OpenAI, Anthropic, and Cohere embedding calls (instrument.openaiEmbeddings, .anthropicEmbeddings, .cohereEmbeddings)

Every instrumented event is automatically tagged with resource attributes — hostname, PID, Node version, and the current git commit SHA (from CI env vars or a local git rev-parse HEAD) — which is what powers commit-based "what changed" correlation in the CLI, with no extra setup.

API

const obyflow = start({
  service: "checkout-api",     // required
  dbPath: "obyflow.db",         // optional, defaults to obyflow.db / config
  deploymentId: "v1.2.3",       // optional
  redaction: { ... },            // optional, overrides obyflow.config.json
  resourceAttributes: { ... },   // optional extra tags, object or () => object
});

obyflow.emit({ type: "custom", service: "checkout-api", attributes: { ... } });
obyflow.getTrace(traceId);
obyflow.stop();

The same instrumentation helpers are also exported directly if you'd rather not go through obyflow.instrument.*: instrumentOutboundHttp, instrumentLangChain, instrumentPinecone/Qdrant/Weaviate/Chroma/PgVector/Milvus, instrumentOpenAIEmbeddings/AnthropicEmbeddings/CohereEmbeddings, plus trace-context helpers runWithTraceContext/getActiveTraceId/getActiveRequestId for manual instrumentation.

Sensitive fields (passwords, tokens, credit cards, SSNs, API keys) are redacted before storage by default — see redaction config.

Links

License

MIT © Anupam Kumar