Remix.run Logo
Show HN: Export a repo as one doc to feed whole projects to an LLM(github.com)
1 points by kohler1000 7 hours ago

I wrote a small TypeScript CLI that exports a GitHub repo as one plain-text file. I wanted my medical imaging stack (cornerstone3D, OHIF, dcmjs, vtk.js) in NotebookLM as a single source for study and cross-repo browsing. Might be useful to others doing LLM workflows or repo review.

Code: https://github.com/pedrokohler/github-repo-to-single-file

What it does: 1. Walks a repo and writes a single .txt or .pdf with file paths and contents 2. Aimed at LLM context, RAG prep, and quick repo study

Notes: 1. Best for source and text assets. Skip massive binaries when preparing inputs for LLMs. 2. If your LLM needs smaller chunks, split the output after generation.

Looking for: - Feedback on defaults and output format - Edge cases I should handle - Flags you want (ignore patterns, size caps, include/exclude paths)

Happy to answer questions and iterate.