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 🙏

© 2025 – Pkg Stats / Ryan Hefner

js.new

v0.0.23

Published

This is the easiest way to get a prototyping environment up locally. All you've gotta do is run `npx js.new my-cool-app`. This'll create a new folder with a basic react app, start it up, and bring up vscode and a browser. You can run the exact same comman

Readme

js.new

This is the easiest way to get a prototyping environment up locally. All you've gotta do is run npx js.new my-cool-app. This'll create a new folder with a basic react app, start it up, and bring up vscode and a browser. You can run the exact same command to get the environment back up later.

Features

  • Dead simple (zero-install) to set up and run
  • Live Reload included with HMR
  • No npm install needed, dependencies are pulled straight from skypack
  • Auto-generated Netlify config
  • Blazing Fast!! Emoji, emoji, something, something... Did I do that right?

Dependencies

You can pull in dependencies by just importing them. For example, when you type import shortid from 'shortid', you'll pull in that dep automatically. There is no step 2! If you're having issues with versions you can pin to a specific version: import shortid from '[email protected]'.

Builders

We support loading the following filetypes: js, jsx, ts, tsx, css, json, jpg, png, bmp. If you want to support a different file type, you can add this to your .js.new.js file.

  builders: {
    ...config.builders,
    '.svg': ({ url, filePath, babel, dev }) => `export default ${JSON.stringify(url)}`
  }
  • url is a string you can use to reach your file from the browser
  • filepath is a string you can use to read your file contents from the builder
  • babel is a synchronous function you can call to transpile js/ts code. It's mainly used for macros (see below)
  • dev is a boolean. whether or not you're running the build command (see below)

Macros

If you name your file with a .macro.js or .macro.ts suffix, then we'll run your code server-side and whatever you export default from that file will be sent to the client. In this case, you will actually have to npm install your dependencies. We aren't pulling macro dependencies from skypack cuz it's not running in the browser.

Deploying

This tool is meant for extremely rapid prototyping. We don't have bundling, minifying, etc. With that in mind, you can still run npx js.new build from within your project folder to generate a folder of your built assets. This folder can be hosted without the js.new server. Throw it on netlify, cloudfront, whatever. Remember though that your dependencies aren't pinned to a specific version by default. One of your dependencies might update and break you.

Error Theming

If you don't like how the errors look you're in luck! You can re-theme them by adding something like this to your .js.new.js file. You'll have to mess with the colors to see what they affect.

  theme: {
    fg: '#CCC',
    bg: '#0C0C0C',
    colors: {
      1: '#FF3366',
      2: '#13A10E',
      3: '#C19C00',
      6: '#3A96DD',
      8: '#767676'
    }
  }

Typescript

You can start a typescript project with npx js.new my-cool-app -t react-ts. That's experimental though. I don't use typescript. Please file bugs.