mongodb-mongoose

Installation
SKILL.md

MongoDB + Mongoose

Setup

bun add mongoose
bun add -D @types/mongoose  # if needed

Connection

// lib/mongodb.ts
import mongoose from 'mongoose'

const MONGODB_URI = process.env.MONGODB_URI!

// Next.js / serverless: cache connection across hot reloads
let cached = (global as any).mongoose ?? { conn: null, promise: null }
Installs
2
GitHub Stars
4
First Seen
Jun 15, 2026
mongodb-mongoose — heldinhow/awesome-opencode-dev-skills