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

wick.db

v1.0.0

Published

A simple, lightweight, and versatile JSON-based database for Node.js, proudly brought to you by Wick Studio. Wick.db is designed for small to medium-scale projects requiring a straightforward, file-based database solution with an emphasis on ease of use a

Downloads

5

Readme

Wick.db

A simple, lightweight, and versatile JSON-based database for Node.js, proudly brought to you by Wick Studio. Wick.db is designed for small to medium-scale projects requiring a straightforward, file-based database solution with an emphasis on ease of use and minimal setup.

Features

  • Lightweight & Fast : Quick to set up and requires minimal dependencies.
  • Easy to Use : Intuitive API for CRUD operations.
  • Flexible : Works well for a wide range of JavaScript and Node.js projects.
  • No External Database Management : No need to manage a separate database server.
  • Open Source : Feel free to contribute, fork, or suggest improvements!

Installation

Install wick.db using npm :

npm install wick.db

Or using yarn :

yarn add wick.db

Quick Start

const WickDB = require('wick.db');
const db = new WickDB('./wick.json');

async function demo() {
    // Setting a value
    await db.set('hello', 'world');
    console.log('Value set!');

    // Getting a value
    const value = await db.get('hello');
    console.log('Got value:', value);

    // Deleting a value
    await db.delete('hello');
    console.log('Value deleted');

    // Getting all entries
    const allEntries = await db.all();
    console.log(allEntries);

    // Clearing the database
    await db.clear();
    console.log('Database cleared');
}

demo();

API Reference

  • set(key, value) : Sets a value for a given key.
  • get(key) : Retrieves a value by key.
  • delete(key) : Deletes a key-value pair by key.
  • all() : Returns all entries in the database.
  • clear() : Clears the database.
  • update(key, value) : Updates the value for a given key.

Contributing

We welcome contributions to wick.db! Whether it's submitting bugs, requesting features, or submitting your own code changes, all through GitHub :

  • Repo: https://github.com/wickstudio/wick.db
  • Issues: https://github.com/wickstudio/wick.db/issues

Join Our Community

Have questions, suggestions, or want to discuss wick.db and other projects? Join us on Discord : discord.gg/wicks

License

wick.db is MIT licensed. See the LICENSE file for more details.