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

json-schema-ui

v0.0.3

Published

A library of web components transforming a JSON schema (draft-07) into a simple UI.

Readme

Json Schema UI

[!CAUTION] Work in progress. Schema error handling is not yet supported.

A library of web components (build with StencilJS) that transforms a JSON schema (draft-07) into a simple UI. This UI consists of unstyled standard web components. No other dependencies are used than json-schema-tools.

Using web component

You can start using <json-schema-ui/> component right after including this script in your project:

<script type="module" src="https://unpkg.com/json-schema-ui"></script>

Then, you can immediately include the component:

<json-schema-ui href="https://example.com/some-json-schema"></json-schema-ui>

If your JSON Schema contains many definitions and you want to refer to only one of them, add path of the subschema:

<json-schema-ui href="https://example.com/some-json-schema" path="#/definitions/my-subschema"></json-schema-ui>

Installing as dependency

Add our web components to your project as an npm package:

npm i json-schema-ui

Extensibility

JsonSchemaParser

You can subclass JsonSchemaParser abstract class to implement your own Json Schema UI. It is stateless.

JsonSchemaUI

The main class that uses JsonSchemaParser and already overrides some of it parsing methods to inject some state-driven UI (e.g. json-schema-ui-array).

Dependencies

json-schema-ui is a web component library built with "not-a-framework" StencilJS.

We use json-schema-tools to parse the JSON Schema object.

Development

[!NOTE]
Next minor version goal: "schema not loaded" error fallbacks.

[!NOTE]
Next minor version goal: Handling JSON schema from metaschema.

[!NOTE]
Next minor version goal: Unit tests succeed before publishing.

[!NOTE]
Next MAJOR version goal: Unit tests succeed before publishing.