Stop manually configuring new MongoDB database clusters for every small website and Vercel app. Generate a project API key in seconds and store persistent JSON data immediately.
import { NafijDB } from "@nafij/db";
// Automatically connects using process.env.NAFIJ_DB_KEY
const db = new NafijDB();
// 1. Quick Storage (High-Speed Key-Value)
await db.quick.set("site_settings", {
theme: "dark",
maintenance: false
});
const settings = await db.quick.get("site_settings");
// 2. Collection & Document API
const users = db.collection("users");
await users.insert({ name: "Nafij", role: "admin" });
const allUsers = await users.find({ limit: 50 });Built specifically to solve MongoDB connection limits and setup friction
Connect dozens of websites and Vercel functions to a single MongoDB Atlas cluster with cached connection pooling.
Every request is authenticated via SHA-256 salted API keys. Queries and documents are strictly scoped to the project ID.
Choose between ultra-fast Quick Storage (key-value JSON) for site settings, and MongoDB Collection API for structured documents.