How bres777/notes-index-test works
notes-index is a small two-command Markdown note indexer and search tool. The index workflow scans a folder, reads and parses each note, extracts searchable words, then writes an index file. The search workflow reads and validates only that index, answers one word, tag, or link-target query, and prints matches and remarks. The README documents the separate file-mediated commands; source excerpts confirm their module calls. Sample notes and tests are not runtime components.
Main entry points: build-index.js Build index · cli.js Index CLI · search-cli.js Search CLI · search.js Query engine
Components 9
Index building
- Index CLI
src/cli.js - Build index
src/build-index.js - Note scanner
src/scan.js - Note parser
src/parse-note.js - Word extractor
src/extract-words.js
Index search
- Search CLI
src/search-cli.js - Index loader
src/load-index.js - Query engine
src/search.js
Other components
- Index file
Connections 9
- Index CLI → Build index: builds via
src/cli.js - Build index → Note scanner: scans with
src/build-index.js - Build index → Note parser: parses notes
src/build-index.js - Build index → Word extractor: indexes words
src/build-index.js - Index CLI → Index file: writes
README.md - Index file → Index loader: reads
README.md - Search CLI → Index loader: loads via
src/search-cli.js - Search CLI → Query engine: queries
src/search-cli.js - Query engine → Word extractor: tokenizes query
src/search.js