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

snipes

v1.0.1

Published

Unobtrusive realtime mouse-tracking analytics for node.js

Downloads

17

Readme

Snipes.js

Unobtrusive Realtime Mouse-Tracking Analytics for Node.js

Features

  • Realtime mousemove, click, scroll, resize, connect, and disconnect observers
  • Only broadcast cursor positions to admin, not to other clients. This way visitors won't be bothered with cursor positions they don't care about.
  • Works in Safari 3+, Google Chrome 4+, Firefox 3+, Opera 10.61+, Internet Explorer 5.5+

Demo

Run server.js in node (see step 4 of How to Use, below) and then open index.html in one browser window and admin.html in another. Try with multiple index.html windows open to test concurrent connections.

How to Install

npm install snipes

or

git clone git://github.com/jasonbarry/snipes.git

How to Use

  • Paste the following right before your </body> tag on the page you'd like to observe:
<script src="./js/snipes-client.js"></script>
  • Edit the last line of snipes-admin.js and snipes-client.js from 'localhost' to the URI of your server.
  • Change the src attribute of the iframe in admin.html to the path of the page you're observing.
  • Then just node server.js and you're good to go! (or nohup node server.js & if you want it to run in the background)

Dependencies

  • Node.js - an event-driven I/O server-side JavaScript environment based on V8.
  • Socket.io - client/server communication leveraging HTML5 WebSockets with a Flash-based fallback.
  • jQuery - JavaScript library, only needed on admin side.

Known Issues

Please report issues on the GitHub page.

  • Admin view can only view one page at a time
  • Cursor positions are not accurate with fluid widths or when the window width is less than the body width

Planned Features

  • Filter cursors by user agent, referral page, country, language, etc
  • Live heatmaps ala heatmap.js
  • Hosting...?