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

osm-edit-report

v0.0.9

Published

Reports editing activity for a number of users on OpenStreetMap.

Downloads

7

Readme

Data Team Report

Reports editing activity for a number of users on OpenStreetMap.

Installation

For installing and running the Data Team Report, you need to:

  1. Install data server
  2. Configure users
  3. Load data
  4. Run data server
  5. Configure and serve web UI

System requirements:

  • Node 0.10.x
  • PostGreSQL

1. Set up data server

## Install data server
npm install

# Set up database
createdb dbstatistic
psql dbstatistic -f query/tables.sql

2. Configure users

Add each user whose OpenStreetMap edits you'd like to track to the osm_user table like so:

SELECT add_user(589596,'lxbarth','FFFF00',true);
  • 589596 : user id on OpenStreetMap
  • lxbarth : name of user
  • FFFF00: color of user for to show in line graph
  • true : state of user: if you don’t want to show one user on line graph , just update the user using state as false

Or use Mapbox data team users included in the project:

psql dbstatistic -f query/add_user.sql

3. Load data

You can start loading data starting with any replication file found in http://planet.openstreetmap.org/replication/hour/

For instance, to start loading with 2015-03-22 run:

node load/load.js --num_file=117 --num_directory=22 --user=<dbuser> --password=<dbpassword> --database=dbstatistic

Or to start loading with 2016-01-26 run:

node load/load.js --num_file=551 --num_directory=29 --user=<dbuser> --password=<dbpassword> --database=dbstatistic

4. Run data server

node server/server.js --user=<dbuser> --password=<dbpassword> --database=dbstatistic

This will run the server at port 3021. Use forever to run as a daemon.

5. Configure and serve web UI

Copy settings-example.js to settings.js and enter the host information under which you started the data server.

For instance run serve from project root:

serve