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

rainstack

v5.0.0

Published

a simple mongo/json database.

Downloads

162

Readme

Rainstack

Join our discord!

What's new in v5.0.0?

  • Mongo and JSON database systems.
  • Language system.

Document

Turkish document

🌍 Welcome to the English Guide!

✨ Version 5.0.0

npm install rainstack

or

pnpm install rainstack

⏰ Long-term Plans

  • Language system, for console.log()
  • Database will now give all the data it can, for example: db.set(“slenzy.code”, “value”).then((response)=>{console.log(response.data)}) where it will access all information about the data using response.data
  • Link database (the user will run an express server on his/her computer e.g. http://localhost:5000 where link databases will be separated /database/user.json, /database/passward.json etc.)
  • Yml database (I have no idea, I don't know yml, I will investigate)
  • Detailed document (5 different languages: Turkish, English, German, French, German, French and Latin)
  • Storing the database of private users will be as follows: we will open a server for private users, we will open a server for private users, everyone will be able to see a certain channel, everyone will be able to see a certain channel, all data records will take place in that channel, for example, data set, there will send the whole database, data deleted, send it again, if there is a data loss, the man will be able to access even the data from a long time ago.

🏅 Example Usage

CommonJS:

const { Database, writeLang, MongoDatabase } = require("rainstack");

ESM:

import { Database, writeLang, MongoDatabase } from "rainstack";

📦 Language settings

writeLang("en"); // en or tr

📦 Database settings (JSON)

const db = new Database("path.json"); // not required

db.set("key.object1.object2", "value"); // result: { key: { object1: { object2: "value" } } }

db.get("key"); // result: { object1: { object2: "value" } }
db.get("key.object1"); // result: { object2: "value" }
db.get("key.object1.object2"); // result: "value"
db.getAll(); // result: { key: { object1: { object2: "value" } } } => all keys

db.push("key.array", "value1"); // result: { key: { array: ["value1"] } }
db.push("key.array", "value2"); // result: { key: { array: ["value1", "value2"] } }
db.unpush("key.array", "value1"); // result: { key: { array: ["value2"] } }
db.unpush("key.array"); // result: { key: {} } removes the entire array

db.has("key.object1.object2"); // result: true
db.delete("key.object1.object2"); // result: { key: { object1: {} } }
db.delete("key.object1"); // result: { key: {} }
db.delete("key"); // result: {}
db.deleteAll(
  "You are fully responsible for the data in your project. This data will be deleted. Do you confirm? (I confirm)"
); // result: {} => deletes all data in the database

📦 Database settings (Mongo)

const db = new MongoDatabase();
const mongo = "mongodburl";

(async () => {
  await mongoose
    .connect(mongo)
    .then(() => {
      console.log("Mongodb connection successful!");
    })
    .catch((e) => {
      console.error(e);
    });
})();

(async () => {
  db.set("key", "testValue"); // result: {value: "testValue"}
  db.set("key2", { name: "testValue", age: 21 }); // result: {"value": {name:"testValue",age:21}}

  await db.get("key"); // result: testValue
  await db.get("key2"); // result: {name:"testValue",age:21}
  await db.getAll(); // result: {key:"testValue",key2:{name:"testValue",age:21}}

  db.push("newKey", "value1"); // result: ["value1"]
  db.unpush("newKey"); // result: []
  db.unpush("newKey", "value1"); // result []

  db.has("key"); // result: true
  db.delete("key"); // result: {}
  db.delete("key2"); // result: {}
  db.deleteAll(
    "You are fully responsible for the data in your project. This data will be deleted. Do you confirm? (I confirm)"
  ); // result: {} => deletes all data in the database
})();

⚠️ Warning

--All issues when using this npm package will be considered accepted by you, please act accordingly.--