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

jsonforms-esm

v3.5.1

Published

## Background and Wrapper Notes

Readme

JSONForms Vue WebComponent ESM

Background and Wrapper Notes

This Repo contains a Vue wrapper for the JSONForms library.

The Vue3 wrapper builds a WebComponent. The standard Vue3 build tools cannot yield a webcomponent.

But! Using Vite as a build tool allows us to build the WebComponent and bundle it into into an ECMAScript module.

ECMAScript modules can be imported directly into a browser, or included as a <script> tag.

WebComponents are a web standard (a built-in part of JavaScript) that allows users to create user-defined HTML Tags that can be used in HTML <like></like> <this></this>.

OK... Why bother?

This allows you to use JSONForms in a totally vanilla web browser environment in HTML with no modification, using only a <script> tag.

Well, and a <link> tag if you want CSS.

But, for your target application, this means: use JSONForms with no NodeJS, no NPM, and no build step.

This stems from a development philosophy:

  • use a simple tool, not a complicated tool
  • avoid JavaScript
  • avoid node, npm and friends
  • avoid transpiling

Why would I want JSONForms?

You probably already know if you're here, but JSONForms allows you to render a form based on a JSON Schema.

OK, I'm sold, how do I use it?

You include a <script> tag, and then use the <json-form> tag.

Here's a complete code listing:

<!DOCTYPE html>
<html>
<head>
    <title>JSONForms Demo</title>

    <!-- load CSS Styling for JSONForms from unpkg -->
    <link rel='stylesheet' type='text/css' href='https://unpkg.com/[email protected]/dist/jsonforms.css'>
    <!-- load JSONForms from unpkg -->
    <script src='https://unpkg.com/[email protected]/dist/jsonforms.esm.js'></script>
</head>
<body>
    <json-form></json-form>
</body>
</html>

Live demo

https://unpkg.com/[email protected]/dist/index.html

What if I want to version pin or serve a copy? (Flat-file lifecycle management)

  • Use your favorite download tool (web browser, curl, fetch, etc) to retrieve a copy of the ESM file: https://unpkg.com/[email protected]/dist/jsonforms.esm.js

  • Use your favorite download tool (web browser, curl, fetch, etc) to retrieve a copy of the CSS file: https://unpkg.com/[email protected]/dist/jsonforms.css

  • You now have the whole library

  • put these in your project in folder called /lib, with a version suffix, like:

    cp /path/to/downloaded/jsonforms.esm.js /path/to/project/lib/jsonforms.3.5.1.esm.js
    cp /path/to/downloaded/jsonforms.css /path/to/project/lib/jsonforms.3.5.1.css
  • now, create symlinks, so you can manage the versions in the future. (Use the link in your HTML, the link's target is an ephemeral copy)

    ln -s jsonforms.3.5.1.esm.js jsonforms.esm.js
    ln -s jsonforms.3.5.1.css jsonforms.css
  • commit the whole /lib directory

  • now, in your project you can use a link and script tag like this:

    <link rel='stylesheet' type='text/css' href='lib/jsonforms.css'>
    <script src='lib/jsonforms.esm.js'></script>

If you don't understand why you'd need this form element, you should probably just use jsonforms from the canonical upstream repo with real documentation: https://jsonforms.io/