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

@wipp/wsmt

v0.0.1

Published

An extensible JavaScript framework for statistical modeling on the web. See it in action on https://isg.nist.gov.

Downloads

2

Readme

Web Stat Modeling Toolkit (WSMT)

An extensible JavaScript framework for statistical modeling on the web. See it in action on https://isg.nist.gov.

All the functionalities are described in the https://isg.nist.gov/deepzoomweb/help.

Development

Building

We use Grunt for the building and testing scripts. To get started you need to:

  1. Install Node.js.
  2. Install Grunt via npm install -g grunt-cli.
  3. Clone the WSMT repository.
  4. Run npm install inside the cloned repository.
  5. Install bower npm install -g bower.
  6. Run bower install.

You are now ready to build via grunt. If you want to build and execute the tests type grunt all.

Running a local instance

  1. Install http-server npm install -g http-server.
  2. Start you local server http-server -p 0 . The URL of the running instance will be displayed in the console, for example:
Starting up http-server, serving .
Available on:
  http://127.0.0.1:8080
  http://x.x.x.x:8080

You can now test the system at http://localhost:8080 (for debugging, using the debug.html file at http://localhost:8080/debug.html is more convenient). The port 8080 should be replaced by the actual port displayed by http-server.

Folders contents

The repository is organized as follow:

  • / contains the readme, license, build files as well as html files for testing.
  • /closure-compiler contains the google closure compiler jar
  • /css contains all the project's css files
  • /data contains small test datasets
  • /images contains the icons used by WSMT
  • /libs contains the project dependencies
  • /src contains the source code divided in the following sub-folders:
    • /src/ for the core components
    • /src/logic for logic code potentially reused by multiple modules
    • /src/modules for the modules
    • /stc/widgets for UI widgets potentially reused across multiple modules
  • /test contains the qUnit tests with one test file for each src file

Modules development

To implement a new module, create a new file your-module.js under src/modules and extend the module class. Add your module in the debug.html file for easy debugging. You should also create the corresponding unit tests under test/modules/your-module.js. Your test file should be included in both test.html and test-debug.html.

Pull requests are appreciated!

License

This software was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code his software is not subject to copyright protection and is in the public domain. This software is an experimental system. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic. We would appreciate acknowledgement if the software is used.