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

catliondb

v0.0.6

Published

A simple and intuitive database engine using JSON files.

Readme

CatlionDB

Written by CatLion (Alexa)

CatlionDB is a customizable JSON database engine made to be easy to use. CatlionDB Features at a glance:

  • Internel DB option
  • Ability to destroy databases
  • Ability to change database file path
  • Colored console text :o

Documentation:

Code Sample

const CatlionDB = require("CatLionDB")
const DB = new CatlionDB.JSONDB("./Database.json");

DB.value = {"Key1":"Value1"}
DB.value["ExampleArray"] = [{"Name":"Alexa"}, {"Favorite Color":"Pink"}]
DB.write().then(Result => {
    console.log(Result)
}).catch(Error => {
    console.log(Error)
})

Functions

Initalize Database

new CatlionDB.JSONDB(file,[options]);

  • file Path where the database JSON file is located or will be created.
  • options Json object containing options listed below.
    • DEBUG_INFO Enable or disable extra info in console.
    • INTERNAL_DB Enable internal database. Database will be stored in CatlionDB's node_modules folder.

Set database Value

#value = [Json Object]

  • Json Object The data to be written to database. This is a regular JSON Object so you can use all the supported methods of JSON manipulation on it.

Write to database

#write()

  • Retrurns a promise which resolves on successful write and rejects on error. Details are always returned in the resolve/reject.

Destroy Database

#destroy()

  • Retrurns a promise which resolves on successful destruction and rejects on error. Details are always returned in the resolve/reject. You can create the database again with #setFile()

Set database file

#setFile(path, [options])

  • Retrurns a promise which resolves on successful set and rejects on error. Details are always returned in the resolve/reject.
  • file Path where the database JSON file is located or will be created.
  • options This option is INTERNAL_DB. Weather to create the database internally or not Setting this value will set the value the same way it would be set when you first ilitalize the database. You will need to unset it to turn it off.

##Please report any bugs on github. Thanks. ###Suggestions are also apritiated.