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

metusbase

v2.0.1

Published

This package is an NPM module that makes using JSON and Mongo fast, secure and easy. Developer: mete52

Readme

MetusDB

Join our discord!

What's new in v1.0.0?

  • Json and Mongo database system.

Document

Turkish document

Developer

Metehan Ibrahim

🌍 Welcome to the English Guide!

✨ Version 1.0.8

npm install metusbase

or

pnpm install metusbase

⏰ Long-term Plans

  • Special protected databases.
  • Link database, yml databases will be added.

🏅 Example Usage

CommonJS:

const { Database, MongoDatabase } = require("metusbase");
const mongoose = require("mongoose");

ESM:

import { Database, MongoDatabase } from "metusbase";
import mongoose from "mongoose";

📦 Database settings (JSON)

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

db.set("key.object1.object2", "value"); // result: { key: { object1: { object2: "value" } } }
db.add("key", "value"); // result: { key: { list: ["item"] } }

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", "mete52"); // result: {value: "mete52"}
  db.set("key2", { name: "mete52", age: 21 }); // result: {"value": {name:"mete52",age:21}}

  await db.get("key"); // result: mete52
  await db.get("key2"); // result: {name:"mete52",age:21}
  await db.getAll(); // result: {key:"mete52",key2:{name:"mete52",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(
    "Projenizdeki verilerden tamamen siz sorumlusunuz. Bu veriler silinecektir. Onaylıyor musunuz? (onaylıyorum)"
  ); // result: {} => deletes all data in the database
})();

⚠️ Warning

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