compass-web

0.1.2 • Public • Published

MongoDB Compass Web

npm downloads

MongoDB Compass that runs on a browser. Most of the features on MongoDB Compass desktop application are available on the browser. Visit the frontend-only demo.

screenshot1 screenshot2

Get started

Quick start

  • npm
npx compass-web -p 8080
  • Docker
docker run -it --rm -p 8080:8080 haohanyang/compass-web

Then access your MongoDB compass on http://localhost:8080

Optional: Set Default MongoDB Connection

You can optionally set the MONGODB_URI environment variable to define a default MongoDB connection string.
If not set, users will be prompted to enter a connection string in the UI.

Example with Docker:

docker run -it --rm -p 8080:8080 -e MONGODB_URI="mongodb://localhost:27017" haohanyang/compass-web

Example with npm:

MONGODB_URI="mongodb://localhost:27017" npx compass-web -p 8080

Credits

License

Server Side Public License

Package Sidebar

Install

npm i compass-web

Weekly Downloads

842

Version

0.1.2

License

SSPL

Unpacked Size

12.2 MB

Total Files

10

Last publish

Collaborators

  • haohanyang