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 transforms your notebooks into a fully navigable local web application, accessible from any terminal or GUI browser on your machine. It renders [[wiki-style links]] and #hashtags as clickable internal links, displays pinned items, paginates long lists, and lets you read, edit, add, and delete items without leaving the browser. Everything runs entirely locally — no network requests, no third-party services, no data leaving your machine.
Starting the Browser
Runnb browse (shortcut: nb b) with no arguments to open the current notebook in a terminal web browser:
nb ls, including pinned items with 📌 indicators. Lists are automatically paginated to fit the terminal window height.
nb browse opens in w3m, Links, or the browser set in the $BROWSER environment variable.
Opening a Specific Item or Folder
Pass any selector — a notebook name, folder path, item ID, filename, or title — to open directly to that location:nb show --browse / nb s -b, which behaves identically to nb browse <selector>.
GUI Browser
Add--gui / -g to open any nb browse view in the system’s primary GUI web browser:
Server Modes
- --serve
- --daemon
Start the web server and keep it running until any key is pressed:
Server Host and Port
By defaultnb browse listens on localhost:6789. Override either value in your ~/.nbrc:
Browsing Notebooks
Use--notebooks / -n to open the notebook index view:
Search and Tag Filtering
nb browse includes a search field powered by nb search. You can also jump straight to a filtered view from the command line.
- Text Search
- Tag Filter
AND / OR logic as nb search, since the search field passes arguments directly to nb search.
Editing in the Browser
Terminal Browser Editing
Select theedit link on any item page, or open an item directly in edit mode:
w3m opens items in your $EDITOR and returns you to the browser to save; links performs edits inline in the browser window.
GUI Browser Editing with Ace
By default,nb browse --gui uses the browser’s built-in <textarea> for editing. Enable the Ace editor for syntax highlighting, block selection, and other advanced features:
nb automatically downloads and installs Ace from GitHub and enables it in nb browse edit --gui and nb browse add --gui.
Adding Notes in the Browser
Use the+ link on any listing page, or open the add view directly:
Deleting Items in the Browser
Use the- link on the edit page, or open the delete view directly:
Portability and Dependencies
nb browse adapts gracefully based on available tools:
Full Feature Set
ncat or socat and pandoc are available. All features including Ace editor support work as expected.Pure Bash Fallback
When neither
ncat nor socat is available and Bash 5.2+ is present, nb browse uses a built-in pure Bash server. All features except the Ace editor are supported.pandoc Only
With only
pandoc (no ncat/socat), items are rendered but [[wiki-style links]] navigate to the raw, unrendered file.No pandoc
When
socat, ncat, or Bash 5.2+ is available without pandoc, files in plain text formats are rendered with the original markup unconverted.No Server Tool
Without
ncat, socat, Bash 5.2+, or pandoc, nb browse falls back to the default behavior of nb show.--print to render an item to standard output without starting a server — useful in environments where no server tool is available:
On Windows,
socat from MSYS or Cygwin is recommended for the best nb browse experience.AsciiDoc Support
To browse items in AsciiDoc format, installasciidoctor. nb browse will automatically use it to render .adoc files.
Privacy
nb browse is entirely self-contained. All CSS, JavaScript, HTTP request parsing, and response building run locally within nb itself, with no external imports or frameworks. Additional privacy measures include:
- Page content is cached inside each bookmark file, so previously bookmarked pages are readable offline without re-requesting the URL.
<img>tags in bookmarked content are stripped to prevent image-load tracking requests.- Outbound links are rewritten through an exit page redirect to avoid leaking the referer header.
- All pages include
<meta name="referrer" content="no-referrer" />. - Links carry
rel="noopener noreferrer". lynxis opened with-noreferer.
Shortcut Alias
nb browse can always be shortened to nb b: