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

@hiai-gg/hiai-observe

v0.2.0

Published

HiAi Observe — client SDK, CLI, MCP server, and Mastra exporter for the HiAi Observe observability platform.

Readme

@hiai-gg/hiai-observe

Client SDK, CLI, MCP server, and Mastra exporter for HiAi Observe — the unified, self-hosted observability platform for AI agents and TypeScript backends.

One package, four entry points. Works on Node ≥ 18 and Bun.

npm install @hiai-gg/hiai-observe      # library + CLIs
# or run a CLI without installing:
npx @hiai-gg/hiai-observe dashboard

Configure with two env vars (used by the CLI and MCP server):

| Var | Default | | |-----|---------|--| | HIAI_OBSERVE_URL | http://localhost:8001 | Observe base URL | | HIAI_OBSERVE_API_KEY | — | project API key (ho_…), required |

1. CLI — hiai-observe

export HIAI_OBSERVE_API_KEY=ho_your_key
hiai-observe dashboard                 # health overview
hiai-observe issues --status unresolved
hiai-observe ai-cost --group-by model
hiai-observe traces --status error
hiai-observe uptime
hiai-observe logs --search ECONNREFUSED
hiai-observe infra                     # CPU / RAM / GPU / containers
hiai-observe alerts

Add --json to any command for machine-readable output.

2. MCP server — hiai-observe-mcp

Lets AI agents (Claude Code / Desktop, any MCP client) query Observe directly — 9 read tools (observe_dashboard, observe_ai_cost, observe_list_issues, …).

{
  "mcpServers": {
    "hiai-observe": {
      "command": "npx",
      "args": ["-y", "-p", "@hiai-gg/hiai-observe", "hiai-observe-mcp"],
      "env": { "HIAI_OBSERVE_URL": "http://localhost:8001", "HIAI_OBSERVE_API_KEY": "ho_your_key" }
    }
  }
}

3. Client SDK

import { HiaiClient } from "@hiai-gg/hiai-observe";

const observe = new HiaiClient({ baseUrl: "http://localhost:8001", apiKey: "ho_your_key" });
const { data: issues } = await observe.issues.list({ status: "unresolved" });

4. Mastra exporter

import { Mastra } from "@mastra/core";
import { HiaiObserveExporter } from "@hiai-gg/hiai-observe/mastra";

const mastra = new Mastra({
  observability: {
    exporters: [new HiaiObserveExporter({
      endpoint: "http://localhost:8001",
      apiKey: process.env.HIAI_OBSERVE_API_KEY,
    })],
  },
});

5. Host metrics agent — hiai-observe-agent (Bun only)

A lightweight collector that reports host CPU/memory/uptime to a central Observe instance for multi-host monitoring. It reads /proc via Bun APIs, so it requires the Bun runtime — on Node it exits with a clear message.

HIAI_OBSERVE_URL=http://observe-host:8001 API_KEY=ho_your_key \
  bunx -p @hiai-gg/hiai-observe hiai-observe-agent

Future improvements (disk/network/per-container/temperature/GPU from remote hosts) are tracked in the project ROADMAP (PM-INF-1).

Runtime support: the SDK, CLI (hiai-observe), and MCP server (hiai-observe-mcp) run on Node ≥ 18 and Bun. The agent (hiai-observe-agent) is Bun-only.

License

MIT