CLI Notebook With Git Power | Generated by AI

Home 2026.03

Question: Provide a comprehensive introduction to https://github.com/xwmx/nb?tab=readme-ov-file#-revision-history

Answer:

nb (short for “notebook”) is a powerful, portable command-line tool (and local web interface) for plain-text note-taking, bookmarking, archiving, and building a personal knowledge base. Developed by xwmx, it is written as a single Bash script and stores everything in ordinary plain-text files (primarily Markdown) inside Git repositories. This design makes it lightweight, future-proof, fully searchable, versioned, syncable, and independent of proprietary formats or cloud services.

Core Philosophy

Key Features

How Revision History Works

The section #-revision-history in the README explains Git-based versioning:

This gives every note, bookmark, and todo immutable version control similar to a lightweight personal wiki with full change tracking.

Installation (as of 2026)

Quick Start Examples

# Create a note
nb add "Meeting notes 2026-03" --tags projectX meeting

# Add a bookmark
nb https://example.com/article --quote "Important insight" --tags research

# Create a todo
nb todo add "Finish report" --due 2026-04-01 --task "Write summary" --task "Proofread"

# Search
nb q "quantum" --tag physics --type note

# View history of a note
nb history 15

# Browse in browser
nb browse

# Sync everything
nb sync --all

Strengths & Trade-offs

Pros:

Cons / Considerations:

Overall, nb is one of the most mature, feature-rich CLI-first plain-text notebook systems available, especially for users who value Git, plain text, and Zettelkasten principles.

References:


Back Donate