Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

mongo-viewer

A public demo is available at https://mongo-viewer.federici.me/ — it runs entirely in the browser, does not save any user data, and includes a default sample dataset you can load from the site to explore all features.

This repository contains two related tools for generating and visualizing MongoDB schema information:

  • mongo-scanner/ — a Go CLI that samples a MongoDB cluster and exports a detailed schema report (JSON/YAML/CSV).
  • mongo-explorer/ — a React + Vite frontend that loads a schema report and provides an interactive C4-style navigation (cluster → database → collection → fields) and export tools.

Quick start

Prerequisites

  • Go 1.21+
  • Node.js 18+ (Node 25 recommended for development)
  • npm or yarn
  1. Generate a schema (backend)
cd mongo-scanner
# example (replace URI with your connection string)
go run main.go scan --uri "mongodb+srv://<user>:<pass>@cluster.mongodb.net" --output ../sample-schema.json
  1. Run the frontend (dev)
cd mongo-explorer
# install deps once
npm install
# run dev server
npm run dev
# open http://localhost:5173
  1. Visualize
  • Upload the generated sample-schema.json (or public/sample-schema.json) in the UI and navigate the C4 levels.

Production build

cd mongo-explorer
npm run build

Where to read more

License

MIT License — see the license text in this repository.

About

Toolset to scan MongoDB clusters and visualize inferred schema. Includes a Go CLI (mongo-scanner) to sample clusters and export JSON/YAML/CSV reports, and a React+Vite UI (mongo-explorer) to browse, export (JSON/PNG/PDF), generate Go structs, and deploy to S3/CloudFront.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages