Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xwmx/nb/llms.txt
Use this file to discover all available pages before exploring further.
nb browse (shortcut: nb b) launches an embedded, terminal-first web application that lets you navigate, view, edit, and search your entire note collection from any web browser — terminal or GUI. It renders [[wiki-style links]] and #hashtags as internal links, making it easy to explore interconnected notes and bookmarks without leaving your browser.
Usage
Subcommands
| Subcommand | Shortcut Aliases | Description |
|---|---|---|
| (default) | Open a notebook, folder, or item in a web browser | |
add | a, + | Open the add view in the browser |
delete | d, - | Open the delete view in the browser |
edit | e | Open the edit view in the browser |
Options
Open in the system’s primary GUI web browser instead of the terminal browser.
Start the web server. The server stays running until you press any key.
Start the web server in daemon mode. Close with
Ctrl-C.Browse the list of all notebooks.
Print the rendered output to standard output instead of opening a browser.
Open directly to the search results page for
<query>.Search for and open results filtered by a single
#tag.Search for and filter results by a comma-separated list of tags.
(browse add) Pre-populate the new note with content.
(browse add) Pre-populate the new note with a title.
Opening the Browser
Runningnb browse with no arguments opens the current notebook in your configured terminal web browser (w3m, Links, or the $BROWSER environment variable):
nb ls, with each item linked. Lists paginate automatically to fit the terminal height. Navigation links let you jump to parent folders, the current notebook, and other notebooks.
Server Mode
By defaultnb browse opens the browser once and exits. Use --serve or --daemon to keep the server running for multi-session use or sharing within a local network:
nb browse depends on either ncat (part of the nmap package) or socat for the server. When neither is available and Bash ≥ 5.2 is present, nb browse falls back to a pure-Bash implementation that supports all features except the Ace editor. When only pandoc is available, wiki-style links go to unrendered source files.GUI Browser
Add--gui / -g to open any nb browse view in the system’s primary GUI browser (Chrome, Firefox, Safari, etc.):
GUI Editing with Ace
By default,nb browse --gui uses the browser’s native <textarea> for editing. You can enable the Ace editor for syntax highlighting and block selection by adding this to ~/.nbrc:
nb will automatically download and install Ace from GitHub the next time an edit form is loaded.
Searching
Thenb browse interface includes a search field powered by nb search. You can also open directly to search results from the command line:
Tag Filtering
Filter results by tag with-t / --tag / --tags:
browse add
Add a new item from within the browser using the+ link or from the command line. Pass a notebook, folder, and/or filename selector to create the note in a specific location:
browse edit
Open any text-format item for editing directly in the browser. The form resizes automatically to fit the terminal window:w3m opens items in $EDITOR and returns you to the browser to save, while links performs edits inline.
browse delete
Delete an item through the browser UI or from the command line:MathJax Support
Enable MathJax for rendering LaTeX math expressions innb browse --gui by adding this to ~/.nbrc:
nb will automatically download and install MathJax from GitHub.
Privacy
nb browse is fully self-contained — no external libraries, frameworks, or third-party code beyond the binary dependencies. It includes several privacy protections:
- Page content is cached locally; bookmarks are readable offline without re-fetching.
<img>tags in bookmarked content are removed to prevent outbound requests.- Outbound links are rewritten through an exit-page redirect to mask the HTTP referrer.
- All pages include
<meta name="referrer" content="no-referrer">. - Links carry
rel="noopener noreferrer". lynxis opened with-noreferer.
AsciiDoc Support
To browse items in AsciiDoc format, installasciidoctor.