mongodb-atlas-sdk is a modern, TypeScript-based SDK designed to simplify and supercharge your interaction with MongoDB Atlas. Built with scalability, ease of use, and extensibility in mind, mongodb-atlas-sdk is the perfect solution for developers who need a flexible and robust tool to handle their database operations.
Unlike other MongoDB SDKs, mongodb-atlas-sdk
focuses on developer productivity, scalability, and modern application needs. Whether you’re building a high-performance REST API, a real-time app, data backup or a distributed system, mongodb-atlas-sdk
is here to empower your database operations.
Let's start by installing mongodb-atlas-sdk. You can install it with the following any package manager.
npm install mongodb-atlas-sdk
pnpm add mongodb-atlas-sdk
yarn add mongodb-atlas-sdk
import express from 'express';
import dotenv from 'dotenv';
import { MongoDbConnection } from 'mongodb-atlas-sdk';
import userRoutes from './routes/userRoutes';
dotenv.config();
const mongoKit = new MongoDbConnection(process.env.DB_URI!);
mongoKit.connect();
const PORT = process.env.PORT || 5000;
const app = express();
app.use(express.json({ limit: '10mb' }));
app.use('/users', userRoutes);
app.listen(PORT, () => {
console.log('Server is running on http://localhost:' + PORT);
});
- Easy MongoDB Atlas Connection: Establish secure and reliable connections with MongoDB Atlas using simple configuration.
- Backup and Restore: Effortlessly backup and restore your MongoDB collections with our built-in methods.
- Schema Validation: Ensure data integrity with JSON schema validation powered by Zod.
- TypeScript-First: Enjoy fully typed APIs for improved developer experience and better code quality.
- Getting Started
- Connect to MongoDB Atlas
- Create Schema and Model
- Connection Pooling
- Query Caching
- Audit Logging
- Backup and Restore
Whether reporting bugs, discussing improvements and new ideas or writing code, we welcome contributions from anyone and everyone. Please check our Contributing Guide.
- Give a ⭐️ if this project helped you!
- You can also sponsor me on Github