Bun Read and Write Data to MongoDB Using Mongoose and Bun
Read and write data to MongoDB using Mongoose and Bun
Install
npx skills add jarle/bun-skills --skill Bun Read and write data to MongoDB using Mongoose and Bungit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-guides-ecosystem-mongoose ~/.claude/skills/Bun-Read-and-write-data-to-MongoDB-using-Mongoose-and-BunPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Read and write data to MongoDB using Mongoose and Bun
MongoDB and Mongoose work out of the box with Bun. This guide assumes you've already installed MongoDB and are running it as background process/service on your development machine. Follow [this guide](https://www.mongodb.com/docs/manual/installation/) for details.
***
Once MongoDB is running, create a directory and initialize it with `bun init`.
```sh terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
mkdir mongoose-app
cd mongoose-app
bun init
```
***
Then add Mongoose as a dependency.
```sh terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
bun add mongoose
```
***
In `schema.ts` we'll declare and export a simple `Animal` model.
```ts schema.ts icon="https://mintcdn.com/bun-1dd33a4e/nIz6GtMH5K-dfXeV/icons/typescript.svg?fit=max&auto=format&n=nIz6GtMH5K-dfXeV&q=85&s=5d73d76daf7eb7b158469d8c30d349b0" theme={"theme":{"light":"github-light","dark":"dracula"}}
import * as mongoose from "mongoose";
const animalSchema = new mongoose.Schema(
{
title: { type: String, required: true },
sound: { type: String, required: true },
},
{
methods: {
speak() {
console.log(`${this.sound}!`);
},
},
},
);
export type Animal = mongoose.InferSchemaType<typeof animalSchema>;
export const Animal = mongoose.model("Animal", animalSchema);
```
***Details
- Skill name
Bun Read and write data to MongoDB using Mongoose and Bun- Repository
- jarle/bun-skills
- Path
skills/bun-guides-ecosystem-mongoose/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Read and Write Data to MongoDB Using Mongoose and Bun skill do?
Read and write data to MongoDB using Mongoose and Bun
How do I install the Bun Read and Write Data to MongoDB Using Mongoose and Bun skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Read and write data to MongoDB using Mongoose and Bun. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Read and Write Data to MongoDB Using Mongoose and Bun popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Redis
9jarle/bun-skills
Use Bun's native Redis client with a Promise-based API
Bio Read Alignment Star Alignment
9hackernoon/cuttlefish-agent-skills
Aligns RNA-seq reads to a genome with STAR, the fast splice-aware aligner whose splice-junction database (built from a GTF at sjdbOverhang = readlength-1) and two-pass mode set junction sensitivity, whose 255-for-unique MAPQ breaks GATK, and whose GeneCounts output reveals library strandedness. Use when RNA reads must be placed on the genome for novel-isoform discovery, fusion detection, RNA variant calling, coverage tracks, splicing QC, or single-cell (STARsolo). Memory-constrained RNA alignment is hisat2-alignment; DE on known transcripts only should skip alignment for rna-quantification/ali
Bun SQL
9jarle/bun-skills
Bun provides native bindings for working with SQL databases through a unified Promise-based API that supports PostgreSQL, MySQL, and SQLite.
Browse the most popular Claude skills, all databases skills, or write your own with the skills generator.