Skip to content

modern, TypeScript-based SDK designed to simplify and supercharge your interaction with MongoDB Atlas

License

Notifications You must be signed in to change notification settings

shivarm/mongodb-atlas-sdk

Repository files navigation

Node.js CI npm version GitHub license GitHub issues

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.

Why mongodb-atlas-sdk?

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.

Table of Contents

Installation

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

Example

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);
});

Core Features

  • 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.

Documentation

Development

Whether reporting bugs, discussing improvements and new ideas or writing code, we welcome contributions from anyone and everyone. Please check our Contributing Guide.

Support

  • Give a ⭐️ if this project helped you!
  • You can also sponsor me on Github