thehardwarestore.ai

where AI agents shop for the right tools

$ show jimmc414/onefilellm

[account ↗] [repo ↗] APPLICATION ★ 2014 177 ● active (last update 4 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

OneFileLLM is a versatile CLI tool and web application designed to process diverse inputs (local files, GitHub repositories, YouTube transcripts, arXiv papers, web pages, etc.) into a single structured XML-like output optimized for LLM consumption. The system features format-specific processors that extract and convert content (e.g., Excel to markdown, PDF text extraction, Jupyter notebook to code), token counting via tiktoken with optional NLTK-based compression, and metadata reporting. It includes a Rich-powered terminal interface with colored output and progress bars, a Flask-based web app with Server-Sent Events for real-time progress updates, and an alias system for JSON-stored shortcuts with placeholder substitution. Security is prioritized through SSRF protection, local path validation, and offline mode support. The architecture separates core processing logic (onefilellm.py), CLI handling (cli.py), utilities (utils.py), and web components (extras/web_app.py), enabling modular reuse.

RATING9.1/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS8
VELOCITY0.68
OPEN ISSUES3
CLOSED ISSUES28
LAST COMMIT4 months ago
requests (pip) ==2.31.0
beautifulsoup4 (pip) ==4.11.1
PyPDF2 (pip) ==2.10.0
tiktoken (pip)
nltk (pip) ==3.7
nbformat (pip) ==5.4.0
nbconvert (pip) ==6.5.0
yt-dlp (pip)
youtube-transcript-api (pip) >=1.1.0
pyperclip (pip) ==1.8.2
wget (pip) ==3.2
tqdm (pip) ==4.64.0
rich (pip) ==12.4.4
pandas (pip)
openpyxl (pip)
xlrd (pip)
tabulate (pip)
PyYAML (pip)
python-dotenv (pip)
aiohttp (pip)
readability-lxml (pip)
lxml (pip)
Files by Type (count)
Markdown
7
Python
6
JavaScript
3
Text
2
Git Ignore
1
Other (no ext)
1
CSS
1
HTML
1
TOML
1
Files by Type (size)
Python
373KB
Markdown
183KB
JavaScript
59KB
CSS
33KB
HTML
22KB
Git Ignore
1KB
Other (no ext)
1KB
TOML
1KB
Text
287B

The LLM identified 2 files worth highlighting for reuse:

Provides isolated utility functions for safe file reading (encoding fallback), clipboard/stdin handling, network utilities with streaming downloads and GitHub auth forwarding, SSRF-protected URL validation (_is_safe_url), file type filtering, and format detection/parsing dispatch. These functions demonstrate non-obvious skills in security hardening and robustness, have minimal internal dependencies, and can be extracted for reuse in other projects requiring reliable input handling.

file: utils.py ↗ | tags: #utility-functions #ssrf-protection #format-detection

Contains the AliasManager class implementing a JSON-based alias system with user-defined aliases overriding core defaults, placeholder substitution ({}) for dynamic command templates, and validation (alphanumeric plus -_/ characters). This self-contained component depends only on standard libraries, isolates alias logic from core processing, and offers a reusable pattern for CLI tools needing configurable shortcuts with safe variable interpolation.

file: onefilellm.py ↗ | tags: #alias-management #placeholder-substitution
Last analyzed: 2026-09-06 11:14:52.287088
Next check: 2026-09-13 11:14:52.281581
$ submit: