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

sale

v0.0.1

Published

Cart Widget turning any Site into Shop

Downloads

2

Readme

Cart Widget that can be embedded into sites in order to allow its users to buy products and send orders to the site owner.

Step by step explanation how project has been built.

Steps

There's a git tag for every step, use it to see state of project for every step - type git checkout <tag-name> and git checkout master to set project to the latest state.

  • HTML Mockups - html-mockups.

How to install NodeJS

We need it to use LESS, and as our web server.

Don't use NodeJS pre-packaged installer because it will install it with sudo and you don't want that, also don't install it via brew or other package manager because for some reason unknown to me all of them install it somehow wrongly. It's better to built NodeJS from sources.

wget http://nodejs.org/dist/vX.X.X/node-vX.X.X.tar.gz
tar -xzf node-vX.X.X.tar.gz
cd node-vX.X.X
./configure
make
make install

How to install LESS

NodeJS should be installed, then type npm install less -g

How to namespace Twitter Bootstrap styles

Download Twitter Bootstrap http://getbootstrap.com, go to css folder, create bootstrap.less file and copy content of bootstrap.css there (LESS is superset of CSS so it will be fine).

Create file bootstrap-widget.less and put import bootstrap styles into namespace.

.bootstrap {@import "./bootstrap.less";}

Now run LESS and convert it to CSS

lessc bootstrap-widget.less > bootstrap-widget.css

You should get file bootstrap-widget.css with all bootstrap styles put under the bootstrap namespace.

Copyright (c) Alexey Petrushin, http://petrush.in, released under the MIT license.