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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@urbaninstitute/baines

v0.2.0

Published

Baines

Downloads

2

Readme

Baines

A gulp flavored build tool for quick and modular charts, features, and pym iframes.

rough getting started guide

  • clone this repo
  • run npm install
  • change name/details inside package.json
  • modify github remote accordingly

Available commands

See gulpfile.js for full list of tasks

gulp run will compile everything

gulp watch will watch for changes

In order to compile the public/ folder, set the node environment to production by entering the following:

export NODE_ENV=production

Then run gulp run and check that the public/ folder looks correct.

Note! Each time you restart your terminal your NODE_ENV will reset

After this, if you want to push to the gh-pages branch use the following command:

git add public && git commit -m "Some commit message" git subtree push --prefix public origin gh-pages

cf: https://gist.github.com/cobyism/4730490

Modifying and adjusting for your needs

  • adjust available browsers to compile to at the bottom of the package.json (see Browserslist for more info)

Tools and Resources

Getting started, I followed this tutorial but note that it is run with Gulp 3.x, and not 4.x. The substantive differences are in the following items:

HTML templating and precompile injection: Gulp-hb

Transpiling: Babel and Browserslist

Ordering of JS

  • deporder: this allows us to order the js without using imports/require statements.

Needed improvements

  • clean out .tmp/,build/, and public/ on deploys
  • full readme
  • Continuous integration
  • Pym.js support
  • More sophisticated require or webpack type js management
  • more sophisticated html template/partial injection with conditionals, a la nunjucks