terminal tools for reading lepiter knowledge bases stored as page json files.
this repository is a cargo workspace with two crates:
lepiter-core: resilient parser, metadata index, and plain text renderer.lepiter-cli(package inlepiter-tui/): read-only terminal ui for browsing and reading pages.
./lepiter/ is fixture/input data (the gt book knowledge base), not source code.
- indexes pages by canonical page id (
PageId), not filename. - lazy loading: metadata first, full page parsing on demand.
- resilient parsing: unknown source node types are preserved as
Node::Unknown. - probe example to inspect corpus shape and parse issues.
- tui with full-screen list/search, full-screen page reading, markdown-like rendering, and internal link navigation.
- optional external snippet plugins via ipc (see
docs/plugins.md). - tui editor for text and code snippets (auto-save with undo).
from repository root:
cargo test
cargo run -p lepiter-core --example probe -- ./lepiter
cargo run -p lepiter-cli -- ./lepiter
cargo run -p lepiter-cli -- tui ./lepiterinstall the cli binary locally:
cargo install --path lepiter-tui
lepiter-cli tui ./lepiterprint knowledge base metadata:
lepiter-cli ./lepiter
# or
lepiter-cli info ./lepiterlist/search view:
j/korup/down: move selectionenter: open selected page/: start searchesc: return to list viewq: quit
page view:
j/korup/down: scrolltab/shift+tab: select next/previous linkenter: follow selected linkh: go back in page-link historyboresc: return to list viewe: edit page snippets
edit view:
tab/shift+tab: next/previous snippet- arrows: move cursor
ctrl+u: undoesc: exit edit view
- architecture:
docs/architecture.md - core api guide:
docs/core-api.md - plugin system:
docs/plugins.md - tui behavior:
docs/tui.md - editor:
docs/editor.md - snippet support matrix:
docs/snippet-support-matrix.md
api docs from rustdoc:
cargo doc --no-deps --openlepiter-core/src/lib.rs: public core api and parser implementationlepiter-core/examples/probe.rs: corpus probe utilitylepiter-core/tests/fixtures.rs: fixture-driven testslepiter-tui/src/main.rs: terminal ui and cli entrypoint implementationlepiter/: lepiter pages and attachments fixture corpus