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 🙏

© 2025 – Pkg Stats / Ryan Hefner

nodetoy

v1.0.2

Published

A REST/JSON backend

Downloads

59

Readme

nodetoy

Node toy is a server that does JSON CRUD, so you can write desktop APPs that use the browser by writing just HTML and JavaScript.

The server has no database, JSON is stored directly on the file system.

The server responds to AJAX requests containing JSON and follows REST principals.

The Rules

All requests to process JSON data must start with /data/.

If you POST {"userID" : 1, "Bob"} to /data/user/Bob.json

The server will create a file called users/Bob.json in the directory configured to store data (by default, ./data).

The JSON can be retrieved by doing a GET from /data/user/Bob.json

The file is deleted by sending a DELETE to /data/user/Bob.json.

To get a list of all the *.json files in a directory send a GET to the directory /data/user/.

The Test Page

If that was not simple enough already you can try it out using the test page at /app/test.html before you write any JavaScript. This gives you a GUI view of the requests.

The server also serves HTML, CSS, JS and images from a directory called /app/ this is where you add your front end code.

Configuration

Configuration is simple, there is an XML file conf/config.xml containing a few variables including the port to listen on, the location of /app/ and the location of /data/

You can add other parameters in the config file, the whole file config it is made available as JSON if you send a GE to /config/

Server Side Includes

All HTML has SSI includes processed, although the full spec of Apache SSI is not supported, including files and variables is.

You can add variables to the SSI environment (Like Apache's SetEnv command) by editing the /config/ssi-environment.xml file.

Security

There is no security, there are no users, no logins and all files are accessible even if the files are not JSON.
If that bothers you, use a firewall.

If your app ever grows up to the extent that you want to publish on t'internet it you can add a security filter.

Example

At /app/todo.html there is a simple TODO list app for the FireFox sidebar as an example.

Download

You can run from source or download a tar here code.abnoctus.com downloads