Installation
Install
Section titled “Install”Prebuilt binaries for macOS (Apple Silicon and Intel) and Linux (x64 and arm64), by any of three
routes. All three install the same binary: the one attached to the latest
release, verified against its SHA256SUMS.
Homebrew
Section titled “Homebrew”brew install candril/tap/monqThe tap is candril/homebrew-tap; brew upgrade picks
up new releases.
nix run github:candril/monq # run it oncenix profile install github:candril/monq # keep itOr as a flake input — inputs.monq.url = "github:candril/monq", then
inputs.monq.packages.${system}.default. The flake packages the release binary; the release
workflow writes its release.json, so nix run and nix flake update land on the newest release.
Installer script
Section titled “Installer script”curl -fsSL https://raw.githubusercontent.com/candril/monq/main/scripts/install.sh | bashThe installer detects your platform, downloads the latest release, verifies its SHA256 against the
release’s SHA256SUMS, and puts monq in /usr/local/bin. Two variables change that:
MONQ_INSTALL_DIR=~/.local/bin … # somewhere else on your PATHMONQ_VERSION=0.1.0 … # a specific releaseOr download monq-<os>-<arch>.gz from the releases page by hand, gunzip it, and put it on
your PATH.
From source
Section titled “From source”monq is a Bun application, so a clone runs as it is:
git clone https://github.com/candril/monq.gitcd monqbun installbun src/index.tsx --uri mongodb://localhost:27017/mydb # run from sourcebun scripts/build.ts # → dist/monq, a standalone binaryWith just: just build, or just install-bin to build and
install it to ~/.local/bin. just dev runs from source with hot reload.
Requirements
Section titled “Requirements”- A MongoDB you can reach —
monq --uri mongodb://…, or saved connection profiles in~/.config/monq/config.tomlwithuri_cmdfor secrets from Vault, 1Password or the like. - A terminal with truecolor and a decent Unicode set — WezTerm, Ghostty, kitty, iTerm2 and Alacritty are all fine.
$EDITORfor document, pipeline and index editing; tmux for the split-pane editors.- Bun 1.x only if you build from source.
First run
Section titled “First run”monq --uri mongodb://localhost:27017/mydbmonq --uri mongodb://localhost:27017 # picks the database interactivelymonq # saved connections, or a URI promptPress Ctrl+P for the command palette, q to quit.
Next steps
Section titled “Next steps”- Usage — connect to a database and start exploring
