home.social

#crates_io β€” Public Fediverse posts

Live and recent posts from across the Fediverse tagged #crates_io, aggregated by home.social.

  1. πŸ”§ #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 file

    Additional 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

    github.com/mufeedvh/code2promp