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.