The Modern, Zero-Config GUI for Your Mongoose Models.
Inspect schemas, visualize data, and debug queries instantly without leaving your terminal.
Mongoose Studio just got a major upgrade. We've refined every pixel to give you a premium developer experience.
- Premium UI Overhaul: A completely redesigned, high-contrast dark mode interface.
- Smart Type Inference: Automatically detects
Boolean,Date, andObjectIDfields from your data. - Deep Linking: Navigate relationships (e.g.,
author_id) with a single click in a side panel. - Visual Aggregation Builder: Orchestrate complex pipelines visually.
- Tabs Workspace: Keep multiple models and documents open simultaneously.
- Schema-Aware: Visualizes data respecting your Mongoose schema types.
- Smart Grid: Virtualized high-performance data grid capable of handling thousands of rows.
- CRUD Operations: Create, Edit (with JSON/Form views), and Delete documents directly.
- Deep Linking: Seamlessly navigate between related documents.
- Data Seeding: Instantly generate fake data for testing (powered by faker.js).
- Read-Only Mode: Use
--readonlyfor safer production inspection. - Instant Launch: Runs directly from your terminal using
npx.
No config needed. Just go to your project directory and run:
npx mongoose-studioNeed dummy data? Click the Seed Data button in the toolbar to generate 10 random documents based on your schema.
To prevent accidental edits (e.g., in production), run with the --readonly flag:
npx mongoose-studio --readonly| Flag | Default | Description |
|---|---|---|
--port |
5555 |
The port to run the Studio server on. |
--uri |
process.env.MONGO_URI |
Custom MongoDB connection string. |
--models |
Auto-detected | Path to your models folder if not found automatically. |
--readonly |
false |
Disable all write operations (Create, Update, Delete, Seed). |
Example:
npx mongoose-studio --port=8080 --readonly"Mongoose not found"
Ensure you are running the command in the root of a project that has `mongoose` installed."No models found"
Mongoose Studio looks in common folders (`models`, `src/models`, `lib/models`). If you store them elsewhere, use the `--models` flag:npx mongoose-studio --models=src/entities
"Port in use"
If port 5555 is taken, the tool connects to the next available port automatically (e.g., 5556).For deeper troubleshooting, check the Documentation Site.
We love contributions! Mongoose Studio is a monorepo built with Bun, Hono (Server), and Next.js (UI).
- Clone the repository.
- Run
bun install. - Run
bun run devto start both the CLI logic and the Next.js UI in development mode.
MIT © Yasir