When you bookmark a URL withDocumentation 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, it does much more than save a link. nb fetches the page, extracts the title and description, converts the HTML body to Markdown (when Pandoc is available), cleans up the markup (when readability-cli is installed), and stores everything in a structured plain-text Markdown file alongside your notes. The result is a searchable, offline archive of every page you bookmark β no account required, no vendor lock-in.
Creating Bookmarks
Pass a URL as the first argument tonb to create a bookmark immediately:
nb auto-generates a structured Markdown file from the page:
nb bookmark subcommand (aliases: nb bk, nb bm):
Many shells automatically escape special characters in URLs. If a URL with anchors or query strings is being truncated, wrap it in quotes:
nb "https://example.com#sample-anchor".Bookmark Multiple URLs at Once
Pass multiple URLs in a single command β any additional options are reused for each bookmark:Adding a Title
Override the auto-detected title with--title:
Adding Tags
Use--tags <tag1>,<tag2>... (-t) to attach #hashtags to the bookmark. Tags are placed in a ## Tags section:
Adding a Quote
Capture a specific excerpt from the page with--quote (-q). The text is formatted as a Markdown blockquote in a ## Quote section:
Adding a Comment
Attach your own notes to the bookmark with--comment (-c). The text goes into a ## Comment section:
Adding Related Links
Link to other bookmarks, notes, or external URLs with--related (-r). Multiple --related options can be used and each entry is placed in a ## Related section:
Encrypting Bookmarks
Add--encrypt (-e) to create a password-protected bookmark:
Skipping the Page Request
Use--no-request to create a bookmark without fetching the remote page. This saves a minimal bookmark file with just the URL:
Bookmark File Format
Bookmarks are identified by the.bookmark.md extension. The bookmarked URL must appear as the first URL in the file, enclosed in angle brackets. A full bookmark file looks like:
nb add:
Listing Bookmarks
nb bookmark (aliases: nb bk, nb bm) lists only bookmarks with a helpful add-prompt header:
nb / nb ls list alongside notes. To see only bookmarks there, use --type bookmark or --bookmark:
nb saves the domain in each bookmark title, filtering by domain is straightforward:
Opening Bookmarks
nb provides three ways to open a bookmark, depending on whether you want a GUI browser, a terminal browser, or just the raw URL.
- GUI Browser (nb open)
- Terminal Browser (nb peek)
- Raw URL
nb open (shortcut: nb o) opens the bookmarked URL in your systemβs primary web browser:nb open and nb peek automatically check whether the URL is still valid. If the page has been removed, nb can check the Internet Archive Wayback Machine for an archived copy.Viewing and Editing Bookmarks
Usenb show and nb edit to view or modify bookmark files the same way you would any other note:
nb show <id> --render displays the full bookmark β all sections and the cached page content β as a cleaned-up HTML page in your terminal browser.
Searching Bookmarks
Full-text search covers the cached page content stored inside each bookmark file. Usenb search / nb q or the bookmark search shorthand:
Quick Reference
Create
nb <url>, nb bookmark <url>, nb bk, nb bmList
nb bookmark, nb bookmark list, nb --bookmarkOpen
nb open, nb oPeek
nb peek, nb p, nb preview