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

jp-weld

v0.2.9

Published

jp-weld is a miniature web compiler, allowing for a component based web app architecture.

Readme

jp-weld

Weld is a minimalistic component framework and web compiler for simpler frontend web applications.
Just a side project that kind of got started while building something else, so decided to export it into its own thing.

Install

npm i -D jp-weld

Setup

weldconfig.json

Create a weldconfig.json in the root directory of your project. It is optional but currently supports the following settings:

{
  "input": "src",
  "output": "dist",
  "netlify": {
    "_redirects": false
  }
}

input specifies the path you wish to use the root of your project. Default is src.
output specifies the path to which you wish to compile your project. Default is dist.
_redirects tells Weld to look for a netlify _redirects file and copy it to your output directory on compilation. Default is false.

Boilerplate

Initialize a boilderplate by running npx weld init.

Usage

In your project root folder you need this folder structure:

|-- /src
  |-- /assets     (will be exported as is)
  |-- index.html  (requires a <div class="root"></div> in the body tag)
  |-- root.html   (inject first parent component here)
  |-- script.js
  |-- style.css
  |-- /Components
      |-- /ComponentName
        |-- ComponentName.html
        |-- ComponentName.js
        |-- ComponentName.css

Weld is also directory agnostic, meaning you can put any component in any sub directory inside /components. Components must be injected in each html as <ComponentName />, using the same name as the file. Initiating the boilerplate explained above will help you understand how it works.

Routing

Rudimentary routing is now added, VERY beta and untested at the moment:

  • In the component HTML, on the wrapping tag, add a data-routecomponent="ComponentName" attribute to it.
  • Wherever you wish to load this, add the component as <Route component="ComponentName" />.
  • If you wish for a route to load immediately on page load, you add DefaultRoute to the Route tag - <Route component="ComponentName" DefaultRoute />.
  • In the element you wish to use as link, put a loadComponent="ComponentName" attribute to it. This will be replaced with an onclick-function.
  • To run specific code on route load, wrap it all in a function called ComponentName (it will be called after html loads).
  • Loading one route will hide all the other.
  • No parameter handling is available at the moment.
  • This is not added to the boilerplate yet but that's in the works.

Compiling

  • Run npx weld build to build and compile your app and to a single index.html, script.js and style.css and if provided /assets to your output directory.

Development

WIP - Slice 3

  • Improve routing
  • Implement further error handling (pretty much none atm...)
  • Allow for some kind of data-binding to make components more flexible and reusable
  • More config settings: Make files to copy on compilation generic.
  • Suggestions?
    ✔ Added Routing

Complete

Slice 2

  • Rewrite project in TS
  • Initiating project boilerplate by running npx weld init
  • Support for custom folder structure inside /components
  • Make config to enable custom things like input and output directories
  • Started off graceful error handling on the congfig file.

Slice 1

  • Develop basic but working component system
  • Implement compiling functionality