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/backstage-plugin-tech-radar-ng-common

v0.9.4

Published

Common functionalities for the tech-radar-ng plugin

Downloads

705

Readme

@nospt/backstage-plugin-tech-radar-ng-common

Shared library for the Tech Radar NG suite.

License Backstage Beta

[!WARNING] BETA — This package is under active development. Types, schemas, and enums may change between versions.


Overview

This package contains the shared types, enums, and Zod validation schemas used by both the frontend and backend plugins of the Tech Radar NG suite. It is the foundation that keeps the contract between client and server in sync.


Installation

yarn add @nospt/backstage-plugin-tech-radar-ng-common

Note: This package is automatically installed as a dependency of both @nospt/backstage-plugin-tech-radar-ng and @nospt/backstage-plugin-tech-radar-ng-backend. You typically do not need to install it directly.


Exports

Enums

| Enum | Values | Description | | ------------------ | ------------------------------------------------------------- | ---------------------------------- | | RingValues | adopt, trial, assess, hold | Radar ring identifiers | | Platform | github | Discovery source platforms | | CandidateOrderBy | name, popularity_score, usage_score, last_activity_at | Sort options for candidate queries |

Types

| Type | Description | | ----------------------- | --------------------------------------------------------------- | | Segment | Radar segment with name and search params | | Ring | Radar ring with name and color | | Candidate | Discovered technology candidate with metrics and classification | | PaginatedResult<T> | Generic paginated response wrapper | | CandidateQueryOptions | Input type for candidate list queries | | CandidatesPatch | Batch candidate classification payload | | RingPatch | Ring update payload | | SegmentPatch | Segment update payload |

Zod Schemas

| Schema | Description | | ---------------------- | ------------------------------------------------------------------------------- | | candidateQuerySchema | Validates and coerces candidate query parameters (pagination, filters, sorting) | | candidatePatchSchema | Validates batch candidate classification requests | | segmentPatchSchema | Validates segment update payloads | | ringPatchSchema | Validates ring update payloads |

All schemas use Zod v4 with safeParse + z.treeifyError for structured error responses.


Usage

import { RingValues, Platform, candidateQuerySchema, type Candidate } from '@nospt/backstage-plugin-tech-radar-ng-common';

// Validate query params
const result = candidateQuerySchema.safeParse(req.query);
if (!result.success) {
  const errors = z.treeifyError(result.error);
  // handle errors
}

// Use types
const candidate: Candidate = {
  id: 'uuid',
  name: 'langchain',
  url: 'https://github.com/langchain-ai/langchain',
  popularity_score: 12500,
  usage_score: 3400,
  popularity_score_variation: 5.2,
  usage_score_variation: 3.1,
  in_radar: true,
  is_active: true,
  platform: Platform.GITHUB,
};

Development

cd plugins/tech-radar-ng-common
yarn build       # Build (must be built before frontend/backend)
yarn test        # Run tests
yarn lint        # Lint

Important: This package must be built before building the frontend or backend packages, as they depend on it.


Related Packages

| Package | Description | | --------------------------------------------------------------------------- | ------------------------------------------------- | | @nospt/backstage-plugin-tech-radar-ng | Frontend — Radar visualization and Back Office UI | | @nospt/backstage-plugin-tech-radar-ng-backend | Backend — Discovery engine, metrics, REST API |


License

Apache License 2.0