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

hawkwhisper

v1.0.7

Published

Lightweight, simplistic JSON database

Downloads

26

Readme

Please report any bugs to [email protected]

1.0.7: Small patch. getItem's callback data will now return 'false' if item is not found. This was crucial but I overlooked it. Fixed now, though.

1.0.6: A tweak to the clone system. The setClone function is removed while you would now use an array. See example. This lets you create unlimited backups in any location(s) you want.

FEATURES Encryption (use Crypto combined with the encryption default for increased security) Simple read/write database system; resource light. Scalable

Simple Database This package lets you create a very lightweight database system using JSON. To make a long story short, it creates a folder with the name of your specified database at the path you set. Here's an example

const hawk=require('hawkwhisper');
const os=require('os');

/* Set a custom encryption algorithm
    main.encrypt_algorithm = (args, callback) => {
        args[0] will be JSON DATA
        args[1] will be the key you set

        callback(encrypted_str);
        
        The callback() function MUST return the encrypted string.
        Please report any bugs to [email protected]
    }

    main.decrypt_algorithm = (args, callback) => {
        args[0] will be the key you set
        args[1] will be the encrypted string you're decrypting.

        callback(decrypted_str);

        The callback() function MUST return a decrypted string that
        can be parsed into JSON data using JSON.parse().
    }

    data and key must be set. data is JSON format and
    key is the key used for encryption. 
*/

let main = new hawk.base('hawk', [
    `${os.homedir()}/.hawk`,
    `${os.homedir()}/.hawk_backup1`,
    `${os.homedir()}/.hawk_backup2`
    ], () => {
    console.log('database Created');
    main.newTable('sample', (err, path) => {
        main.newItem('sample', 'user', 'secret', {data:256}, (err, path) => {
            main.getItem('sample', 'user', 'secret', (data) => {console.log(data);});
        })
    });
});

This will create a database called 'hawk' in your user's home directory inside of a folder called '.hawk'

Properties

  • require: const hawk=require('hawkwhisper');

  • create database: let item = new hawk.base(database_name, [directory1, directory2 ...], callback() => {})

    • Creates a new database.
  • create table: item.newTable('users', (err, path) => {})

    • Creates a table for the database.
  • create item: item.newItem('users', 'sample_user', 'secret_key', JSON_Data, (err, path) => {})

    • Creates an item for a table inside the database.
  • get item: item.getItem('users', 'sample_user', 'secret_key', (data) => {})

    • Gets data from an item inside of a table. If secret_key is incorrect, data will be returned as 'DECRYPT ERROR', else it'll return JSON data.
  • view tables: item.viewTables();

    • Returns tables for database
  • view items: item.viewItems('users');

    • Returns a list of all items of a table.