@mongo-manager/app

中文文档
1.0.0发布于 2026/11/02CC-BY-NC-SA-4.0ES Module零依赖

Mongo Manager: a secure, offline-capable MongoDB manager in your browser.

原始使用文档
文档目录6 节
  1. Install
  2. Use
  3. On a server
  4. Security notes
  5. License
  6. Author

Mongo Manager

A secure, self-hosted MongoDB manager in your browser, with an AI agent that asks before it changes anything. Use it alone or with your team: roles and two-factor sign-in, backups, live sync, replica sets and sharded clusters, in ten languages. Works fully offline.

Screenshots, every feature and the full documentation: github.com/mongo-manager/mongo-manager

Install

npx @mongo-manager/app                 # try it
npm install --global @mongo-manager/app

Offline or air-gapped: copy the release tarball and install it. It has no dependencies and runs no install scripts.

npm install --global ./mongo-manager-<version>.tgz

Requires Node.js 24 or newer.

Use

mongo-manager                     # local mode on http://127.0.0.1:4321, opens your browser
mongo-manager --auth              # team mode: users, roles, two-factor sign-in
mongo-manager --help              # all commands and options
CommandPurpose
startStart the web UI (the default command)
open [--no-open]Open a running local-mode Mongo Manager with a new one-time link
forget-browsersSign every browser out of local mode (each then needs a new link)
user add <name> --role admin|editor|viewerCreate a user
user reset-password <name>Set a new password and sign the user out everywhere
user reset-2fa <name>Remove a user's two-factor methods (admin recovery)
user listList users
bans listList the addresses banned from the team-mode sign-in
bans lift <address> / bans lift --allLift a sign-in ban (your own address, without a session), or every one
access listList the addresses the team-mode panel answers (an empty list: every address)
access clearLet every address reach the panel again (an administrator locked out)
rotate-keyRe-encrypt all stored secrets with a new key. Stop the server first.
doctorCheck the installation and the data directory
service installRun as a system service that starts with the machine (root or Administrator)
service uninstallRemove the service; data, config and key are kept (root or Administrator)
service status|logs [-f]Show the service state, or its log (-f follows it; not on Windows)
service openPrint a one-time link that opens the service in local mode (root or Admin)
backup inspect <file>List what a backup file holds
backup decrypt <file.mmbak> -o <file>Decrypt an encrypted backup into a plain archive that mongorestore can read
backup decrypt … --key-file <kit.txt>The same for a scheduled backup sealed with a backup key, with its recovery kit
versionPrint the version

Every server option also has an MM_* environment variable, for example MM_WEB_PORT, MM_AUTH=1 or MM_DATA_DIR.

On a server

Team mode, behind a reverse proxy that serves HTTPS (nginx, Caddy):

mongo-manager --auth --host 127.0.0.1 --trusted-proxies 127.0.0.1 --allowed-hosts mongo.example.com

The first start prints a one-time setup token; open the address and create the first administrator. Ready-made nginx and Caddy configurations, the system service and Docker are described in deploy/. Use --base-path /mongo/ to serve it under a sub-path.

Security notes

  • Listening address. Mongo Manager listens on 127.0.0.1 by default. It refuses to listen on a network address without --auth.

  • Data directory. Everything lives in the data directory (default ~/.mongo-manager, mode 0700):

    • the database;
    • the encryption key secret.key (mode 0600). You can supply the key instead through MM_SECRET_KEY;
    • in local mode, launch.key (mode 0600): the secret the one-time launch links are made from. Only a browser that opened such a link can use local mode; delete the file while Mongo Manager is stopped to sign every browser out.

    Back up the data directory and the key together. Without the key, saved connection passwords cannot be decrypted.

  • Passwords on the command line. Never pass passwords as command-line arguments; other users can see them in the process list.

    • user commands prompt for the password, or read it with --password-stdin.
    • Use MM_URI rather than --uri for a connection string that contains a password.

License

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0): free to use, share and adapt with credit, not for commercial purposes, and shared under the same license. Bundled third-party components keep their own licenses (dist/THIRD-PARTY-NOTICES.txt).

Author

Gokhan OZGEZER · [email protected] · GitHub · Issues

版本与发布记录

@mongo-manager/app 共发布 2 个版本,首次发布于 2026/11/02;过去 12 个月发布了 2 个版本。

版本发布日期距今
1.0.0latest2026/11/021 天前
0.0.0-stage2026/11/021 天前

关于 @mongo-manager/app 的常见问题

@mongo-manager/app 是什么?

MongoDB管理器:一个安全的,离线的MongoDB管理器在您的浏览器。

如何安装 @mongo-manager/app?

在项目目录运行 npm install @mongo-manager/app,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 mongo-manager,可以用 npx mongo-manager 直接运行。

@mongo-manager/app 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/mongo-manager__app 是否存在。

@mongo-manager/app 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@mongo-manager/app 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@mongo-manager/app 可以商用吗?

@mongo-manager/app 使用 CC-BY-NC-SA-4.0 许可。声明的许可为 CC-BY-NC-SA-4.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@mongo-manager/app 还在维护吗?

最新版本 1.0.0 发布于 2026/11/02(1 天前);至今共发布 2 个版本,其中过去 12 个月发布了 2 个;首次发布于 2026/11/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。