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

@nospt/plugin-dev-ai-hub-common

v1.1.2

Published

Common types and schemas for Dev AI Hub

Readme

@nospt/plugin-dev-ai-hub-common

Isomorphic contracts shared by the Dev AI Hub frontend and backend plugins.

Requires Backstage 1.54 or later. The AiResource kind comes from Backstage's own alpha catalog module, and these packages depend on @backstage/catalog-model@^1.10.0 — first shipped in 1.54.0, along with the plugin and marketplace subtypes.

You do not install this package directly. It arrives as a dependency of @nospt/plugin-dev-ai-hub and @nospt/plugin-dev-ai-hub-backend, and the three publish in lockstep at the same version.

Why it exists

A contract duplicated across two packages is a contract that will drift. Anything the frontend and backend must agree on lives here exactly once, and neither plugin imports the other.

It is genuinely isomorphic — no Node-only and no browser-only code — which is why the same package can back both halves.

The main contract

ResourceSummary is the flat shape the backend serves and the frontend consumes. The frontend never sees a raw catalog Entity; this is the whole of what it knows about a resource.

interface ResourceSummary {
  entityRef: string; // "airesource:default/azure-devops-cli"
  name: string;
  title?: string;
  description?: string;
  tags: string[];
  type: ResourceType;
  lifecycle: string;
  owner?: string;
  sourceLocation?: string; // absent → browsable, not installable
  frameworks: string[]; // "claude-code", "github-copilot", …
  version?: string;
  kind: string;
  children: string[]; // renderable container members (spec.skills/spec.plugins)
  parents: string[]; // in-memory inverse of children
  childCount?: number; // = children.length
  helpText?: string;
  annotations: Record<string, string>;
}

toResourceSummary(entity) maps one Entity; toResourceSummaries(entities) maps a whole catalog read and resolves containment in both directions (ADR-0015). Both are exported here so the backend router and the test fixtures cannot disagree about them.

Also in here

  • The ResourceType vocabularyskill, agent, hook, mcp-config, plugin, marketplace — and the rules derived from it: which body shape a type renders as (mcp-config is JSON, the rest markdown), whether its body is a downloadable artifact or merely a pointer, and its per-framework install paths.
  • Framework tokens and normalisation, so claude-code means the same thing on both sides.
  • Telemetry schemas for the event contract.

Full documentation

See the repository README for setup, and docs/AIRESOURCE-SPEC.md for the full AiResource entity spec.

License

Apache-2.0