Show HN: LLM Context Buffet
https://www.donobu.com/context-buffet
Drag-and-drop a folder; it spits out a single, LLM-friendly text block. We use Context Buffet at Donobu when a chat needs context that is larger than a snippet but smaller than the whole repo. No download or login needed; everything stays in your browser.
What it does:
- Filters out files using sensible defaults (node_modules, binaries, lock-files, etc. are skipped).
- Parses and applies each discovered .gitignore.
- Lets you tweak ignore patterns, file delimiters, etc; configuration is stored locally as JSON.
Known limitations:
- Huge directory trees (>10K files) will feel slow; JS and the File API can only do so much when working within the constraints of a browser.
- I struggled with the generic file/directory picker. I can make the picker work with files or directories, but not both, so I defaulted to having it work for directories. Though if you use drag-and-drop rather than the picker, it works for everything.
- The parsing and applying of '.gitignore' discovered files is best-effort. This actually turned out to be quite hard; there are copious edge cases and I am reasonably certain that someone will discover a bug like "My .gitignore in a nested directory of another directory of which was .gitignored was not processed when I use an emoji in a filter pattern". We try our best, but my god, what an unexpected can of worms this ended up being.
Feedback welcome.
No comments yet