MongoDB-Backed Serverless DBaaS

One Central MongoDB Cluster.
Unlimited Isolated Projects.

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.

Zero Cluster Overhead
Strict Project Isolation
Connection Pool Caching
Quick Storage & Documents
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 });

Engineered for Modern Serverless Development

Built specifically to solve MongoDB connection limits and setup friction

Centralized Architecture

Connect dozens of websites and Vercel functions to a single MongoDB Atlas cluster with cached connection pooling.

Cryptographic Project Isolation

Every request is authenticated via SHA-256 salted API keys. Queries and documents are strictly scoped to the project ID.

Dual Storage Models

Choose between ultra-fast Quick Storage (key-value JSON) for site settings, and MongoDB Collection API for structured documents.