Bun Read and Write Data to MongoDB Using Mongoose and Bun

Read and write data to MongoDB using Mongoose and Bun

9 stars 1 forksDatabases

Install

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
Manual install
git 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-Bun

Personal 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);
```

***
Read the full skill on GitHub

Details

Skill name
Bun Read and write data to MongoDB using Mongoose and Bun
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

Browse the most popular Claude skills, all databases skills, or write your own with the skills generator.