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

educator

v0.1.1

Published

Clone this repo and then in command line type:

Downloads

7

Readme

#How to use

Clone this repo and then in command line type:

  • npm install - install all dependencies
  • gulp - run dev-server and let magic happen, or
  • gulp build - build project from sources

--

List of Gulp tasks

To run separate task type in command line gulp [task_name]. Almost all tasks also have watch mode - gulp [task_name]:watch, but you don't need to use it directly.

Main tasks

Task name | Description
:------------------|:---------------------------------- default | will start all tasks required by project in dev mode: initial build, watch files, run server with livereload build:dev | build dev version of project (without code optimizations) build | build production-ready project (with code optimizations)

Other tasks

Task name | Description
:------------------|:---------------------------------- sass | compile .sass/.scss to .css. We also use postcss for autoprefixer, so feel free to include other awesome postcss plugins when needed webpack | compile .js sources into bundle file copy | copy common files from ./src path to ./dist path swig | compile swig templates nunjucks | compile Mozilla's awesome nunjucks templates jade | compile jade templates svgo | optimize svg files with svgo iconfont | compile iconfonts from svg sources sprite:svg | create svg symbol sprites (css-tricks) sprite:png | create png sprites server | run dev-server powered by BrowserSync clean | remove ./dist folder index-page | create index file with links to all project pages

This is a full list of tasks, that we use in our projects, but not all of them should be available in current project. For example, we only use one template engine out of these three [jade, nunjucks, swig]. All available tasks are placed in a folder ./gulp/tasks as separate *.js files. Usually, file name = task name.

Flags

We have several useful flags.

  • gulp --open or gulp server --open - run dev server and then open preview in browser
  • gulp --tunnel=[name] or gulp server --tunnel [name] - runs dev server and allows you to easily share a web service on your local development machine (powered by localtunnel.me). Your local site will be available at [name].localtunnel.me.
  • gulp [task_name] --prod or gulp [task_name] --production - run task in production mode. Some of the tasks (like, sass or js compilation) have additional settings for production mode (such as code minification), so with this flag you can force production mode. gulp build uses this mode by default.

##Other You can also use npm scripts:

  • npm run ghpages to push only ./dist folder to gh-pages branch on github (very useful for previews).
  • npm run start - same as gulp default.
  • npm run build - same as gulp build.