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

salvage.db

v1.2.4

Published

Salvage.DB is a fast, lightweight, easy-to-use database. It was created by **Salvage_Dev**.

Readme

Salvage.DB

Salvage.DB is a fast, lightweight, easy-to-use database. It was created by Salvage_Dev.

About

Salvage.DB can help you in many ways:

  • Save data to MongoDB in seconds - Using this database, you can save data to your database in seconds! Add new Schemas/Collections to your MongoDB Atlas in the blink of an eye!
  • Fast and lightweight - Compared to databases like quick.db, salvage.db is the flash! It is much easier to use and doesn't have a lot of folders, making it very compact!
  • Easy to use - Making a new client and saving data is very easy! You can do it in seconds!

Installation

To install Salvage.DB, simply run this command in the terminal:

npm i salvage.db

Examples

If you do not know how to use Salvage.DB, follow the examples below to get you started!

Creating a Client

To create a new MongoDB Client, use this code:

Create Client

This will save the data that you have inputted through your database. This will save a new Schema/Collection into your MongoDB Atlas, with the properties in the "schema". This means the name would be the name inputted in "name" and the MongoURI would be "mongoURI". The last line waits until it connects to your database, and after it has done that, it saves all the data.

Setting and Getting Data

Here are some examples to introduce you to setting, getting, and finding values.

Setting getting hasing data This example saves the key of "Key1" with the value of "Value" to the database. Then, it will console.log "Value" as that is the value of the key. When awaiting db.has it will return true or false. In this example it would console.log true, as Key1 exists. It would then console.log false as Key2 does not exist.

Dependencies

Salvage.DB has 2 Dependencies:

  1. Mongoose
  2. This.db Update: 19/06/2020 Added the long awaited db.cached! This will return all data stored, and if it get's deleted, it will be deleted from the cache. This will actually make the getting route faster, as if it is cached we can fetch it much quicker. New methods:
await db.clearCache(); //Clear the cache

Thank you.