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

@jgalego/teamapi-rest-api

v0.7.1

Published

Read-only REST API over a resolved Team API org graph

Readme

@jgalego/teamapi-rest-api

npm CI Node License: MIT

A read-only Fastify REST API over a resolved Team API as Code org graph — teams, roles, services, interactions, dependencies, cognitive load, the three org checks (/gaps, /policy, /topology), DDD context mapping, context bundles, a cross-resource knowledge graph, every AI-native document domain, and diagrams. Every collection route paginates (limit/offset, X-Total-Count, RFC 8288 Link) and every GET carries a content-derived ETag.

On top of the JSON routes:

  • /dashboard — a live browser dashboard: team cards with cognitive-load bars, health checks, an agent roster with unowned agents marked, the context map with its conflicts, a walkable knowledge graph, search, diagrams, and (when enabled) an "edit this team → open a PR" form. One static page, no separate process or build step.
  • /docs — interactive Swagger UI.
  • Opt-in surfaces — /metrics (Prometheus), POST /mcp (MCP over Streamable HTTP), GET /backstage/catalog, POST /teams/:id/proposals, semantic /search. GET /health reports which of them this server has, so clients can adapt.

Searching the dashboard for "oauth" and "architecture" surfaces steering docs, prompts, ADRs, sessions, a specification, an AI agent, and a memory entry — all through the same search box.

Normally started via the teamapi serve-api CLI command rather than embedded directly, but it's a plain Fastify plugin if you want to mount it yourself.

Local by default, exposable on purpose. The CLI binds 127.0.0.1 with no auth, which is right for local use. Binding beyond loopback requires a bearer token (--token / TEAMAPI_API_TOKEN) or an explicit --allow-anonymous; CORS origins and a per-minute rate limit are options rather than defaults. The org data this serves — team structure, cognitive load self-assessments, member names and contacts — is not something to expose unauthenticated on a shared network, so the server refuses to do it silently.

Install

npm install @jgalego/teamapi-rest-api

Usage

import { OrgGraphStore } from "@jgalego/teamapi-core";
import { buildServer } from "@jgalego/teamapi-rest-api";

const store = new OrgGraphStore({ seedUris: [...] });
await store.load();
const app = await buildServer(store, { logger: true });
await app.listen({ port: 3000, host: "127.0.0.1" });

Full docs, endpoint reference, and examples: https://github.com/JGalego/TeamAPI

The TeamAPI toolchain

One org graph, seven doors into it — install only the ones you need:

| Package | What it does | | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- | | @jgalego/teamapi | The CLI — validate, diagram, check, import, reconcile, serve and chat with your org | | @jgalego/teamapi-core | The engine: $ref resolution, the org graph, scoring, checks, diagrams, generators | | @jgalego/teamapi-schema | Zod schemas and TypeScript types for the extended spec | | @jgalego/teamapi-rest-api (this package) | REST API, live dashboard, Swagger UI, Prometheus metrics | | @jgalego/teamapi-mcp-server | The org graph as MCP tools for LLM assistants | | @jgalego/teamapi-chat | Chat as a team or member — Anthropic or any OpenAI-compatible endpoint | | @jgalego/teamapi-backstage | Live Backstage catalog entity provider |

Docs, examples and the extended spec: teamapi.dev · github.com/JGalego/TeamAPI

License

MIT