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

@geonovum/standards-checker-ui

v1.0.0

Published

Standards checker UI components for web-based validation tools

Downloads

1,006

Readme

@geonovum/standards-checker-ui

React components and router for building Spectral-based checker web apps.

Part of the standards-checker workspace. Depends on @geonovum/standards-checker for engine types and shared utilities.

Installation

npm install @geonovum/standards-checker-ui

Peer dependencies: react ^19, react-dom ^19.

Exports

| Entry point | Description | | ------------------------------------------ | ----------------------------------------------------------- | | @geonovum/standards-checker-ui | All UI exports: components, router, store, types, utilities | | @geonovum/standards-checker-ui/index.css | Tailwind-based stylesheet (must be imported in your app) |

Quick start

1. Define specs

Connect each specification to its Spectral rulesets:

import { Spec, spectralLinter } from '@geonovum/standards-checker-ui';
import rulesets from './rulesets';
import example from './examples/feature.json';

export const mySpec: Spec = {
  name: 'My Spec',
  slug: 'my-spec',
  example: JSON.stringify(example, undefined, 2),
  linters: Object.entries(rulesets).map(([name, ruleset]) => ({
    name,
    linter: spectralLinter(name, ruleset),
  })),
};

2. Create the router and mount

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { RouterProvider } from 'react-router-dom';
import { createRouter } from '@geonovum/standards-checker-ui';
import '@geonovum/standards-checker-ui/index.css';
import specs from './specs';

const router = createRouter(specs);

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <RouterProvider router={router} />
  </StrictMode>,
);

3. Customize UI text (optional)

const router = createRouter(specs, {
  strings: {
    noViolations: 'Geen fouten gevonden.',
    showInEditor: 'Toon in editor',
    documentation: 'Hoe op te lossen?',
  },
});

Available string keys:

| Key | Default | Description | | ---------------------- | ----------------------------------- | ---------------------------------------- | | checking | "Checking..." | Shown while validation runs | | noMatchingRulesets | "No matching rulesets found." | When no linters match the spec | | noViolations | "No violations found." | Success message per linter | | lintingErrorsSummary | "Found {count} linting error(s)." | Summary ({count} is replaced) | | showInEditor | "Show in editor" | Button label for jumping to a diagnostic | | documentation | "Documentation" | Link label for rule documentation |

URL input and response mapping

Specs can optionally define a responseMapper to support loading documents from a URL. When a user enters a URL, the app fetches it and passes the response through the mapper, which can resolve linked resources (e.g., fetching an OpenAPI spec from a service-desc link):

import { SpecResponseMapper, handleResponse, handleResponseJson } from '@geonovum/standards-checker-ui';

const responseMapper: SpecResponseMapper = async responseText => {
  const doc = JSON.parse(responseText);
  // Resolve linked documents, select rulesets based on conformance classes, etc.
  return { content: resolvedContent, linters: matchedLinters };
};

Components

All components are exported and can be used individually:

  • App — Full checker layout (header + editor + diagnostics)
  • CodeEditor — CodeMirror-based JSON editor with inline linting
  • SpecSelector — Dropdown to switch between specs (uses react-router)
  • UriInput — URL input form for loading remote documents
  • GitHubIcon — GitHub SVG icon

State management

The useChecker Zustand store manages shared state between components:

import { useChecker } from '@geonovum/standards-checker-ui';

const { content, setContent, linters, checking, error } = useChecker();

License

EUPL-1.2