Documentation
¶
Overview ¶
Package web is the HTTP adapter: a localhost notes viewer (`nt web`). It is a read adapter over the same domain (note/links/mutate) the CLI, TUI, and MCP server use — so it shows exactly what they store. It is deliberately structured to make editing a future additive change: state lives on the Server struct, notes are addressed by stable id, and the render path is one reusable function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backlink ¶
type Backlink struct {
Title string // note title, or "" for a task source
URL string // /n/<id> for a note source; "" for a task
Text string // the matching line (shown for task sources)
IsNote bool
}
Backlink is one "Linked from" entry for the note page.
Click to show internal directories.
Click to hide internal directories.