#crates_io β Public Fediverse posts
Live and recent posts from across the Fediverse tagged #crates_io, aggregated by home.social.
-
π§ #code2prompt: A command-line tool for converting codebases to #LLM prompts
Key features:
β’ π Generates well-formatted #Markdown prompts with source tree structure
β’ π οΈ Customizable #Handlebars templates for versatile prompt generation
β’ π Respects .gitignore and supports file filtering with glob patterns
β’ π’ Displays token count using various #tokenizers (cl100k, p50k, r50k_base)
β’ π #Git diff integration for commit messages and #PullRequest descriptions
β’ π Automatic clipboard copy and option to save output to fileAdditional capabilities:
β’ π’ Line numbering for source code blocks
β’ π JSON output option for structured data
β’ π« Exclusion of files/folders from source tree
β’ π Support for user-defined variables in templates#opensource project written in #Rust, available on #crates_io and #AUR
Useful for:
β’ Quick #LLM prompt generation from codebases
β’ Code documentation and analysis
β’ Bug finding and security vulnerability assessment
β’ Performance optimization suggestions