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 🙏

© 2026 – Pkg Stats / Ryan Hefner

nonogo

v0.0.6

Published

Document-based database designed for and written in Node.js

Readme

nonogo v0.0.5

Description

nonogo is a document-based database designed for and written in node.js

Installation

npm install nonogo

Usage

So let's get down to the nitty gritty. Here are the functions you need to know to use nonogo.

nonogo.open(path, cryptoFlag, cryptoAlgo, cryptoKey, callback)

Opens a nonogo database file, or creates it if it doesn't exist. Callback is given two arguments, error and collection.

A word on cryptography...cryptoFlag determines whether the database will be encrypted or plain text. cryptoAlgo is the algorithm to be used for encryption/decryption, usually dictated by algorithms supported by OpenSSL. cryptoKey is the key/password to be used in the encryption/decryption, do not lose or forget this, 'cause there is no way of getting it back, well...I'm sure there is :-)

Example:
nonogo.open('nonogodb', '1', 'RC4', 'asdf', function(error, collection) {
	// Do stuff with collection.
});

The Collection Object

OK, before we move any futher, let's go over this collection object. You really don't even have to name it 'collection', I usually just name it 'd'.

You can use the collection object just as you would any JSON object. Google 'json' if you haven't used it, you'll be up to speed in like 3 minutes, trust me.

Here's an example for referring to the 'name' field in the 60th row of the 'People' key.

Given that the collection object is named 'data'...

var name = data.People[59].name;

or,

var name = data['People'][59]['name'];

This allows you to create all kinds of iterations in order to find data. This is something that will be included in version 0.1.0.

Moving on...


nonogo.addRow(key, value, callback)

Adds a row to a key. If the key does not exist it is created. If null is passed as the key name, one will be generated for you. Callback is given two arguments, error and collection.

Example:
nonogo.addRow('People', {name:'Julio', age:'30'}, function(error, collection) {
	// Do stuff with collection.
});

nonogo.addField(key, index, field, value, callback)

Adds a field to a row. Callback is given two arguments, error and collection.

Example:
nonogo.addField('People', 59, sex, 'male', function(error, collection) {
	// Do stuff with collection.
});

nonogo.editRow(key, index, value, callback)

Edits an entire row. Callback is given two arguments, error and collection.

Example:
nonogo.editRow('People', 59, {name:'Sara', age:'31'}, function(error, collection) {
	// Do stuff with collection.
});

nonogo.editField(key, index, field, value, callback)

Edits a single field. Callback is given two arguments, error and collection.

Example:
nonogo.editField('People', 59, sex, 'female', function(error, collection) {
	// Do stuff with collection.
});

nonogo.deleteKey(key, callback)

Deletes an entire key. Callback is given two arguments, error and collection.

Example:
nonogo.deleteKey('People', function(error, collection) {
	// Do stuff with collection.
});

nonogo.deleteRow(key, index, callback)

Deletes an entire row. Callback is given two arguments, error and collection.

Example:
nonogo.deleteRow('People', 59, function(error, collection) {
	// Do stuff with collection.
});

nonogo.deleteField(key, index, field, callback)

Deletes a single field. Callback is given two arguments, error and collection.

Example:
nonogo.deleteField('People', 59, 'name', function(error, collection) {
	// Do stuff with collection.
});

nonogo.deleteAll(callback)

Deletes entire database. Callback is given one argument, error.

Example:
nonogo.deleteAll(function(error) {
	// Do stuff with collection.
});

nonogo.commit(callback)

Commits changes to the collection object to database file. Callback is given one argument, error.

Example:
nonogo.commit(function(error) {
	// Do stuff with collection.
});