your-source-to-prompt.html  by Dicklesworthstone

GUI tool for turning code projects into LLM prompts, locally

created 7 months ago
579 stars

Top 56.7% on sourcepulse

GitHubView on GitHub
Project Summary

Your Source to Prompt is a self-contained HTML file designed to convert local code projects into single LLM prompts, prioritizing security and ease of use. It targets developers who need to feed codebases into LLMs without uploading sensitive data or dealing with complex setups. The tool offers a GUI for file selection, custom preamble/goal setting, and optional code minification, all processed client-side.

How It Works

This tool leverages the browser's File System Access API to read local directories directly, ensuring code never leaves the user's machine. It builds a hierarchical file tree, allowing selective inclusion of text files via checkboxes and string-based filtering. Presets can be saved and loaded for repeated use, and context size warnings are displayed to prevent exceeding LLM token limits.

Quick Start & Requirements

  • Open the your-source-to-prompt.html file in a Chromium-based browser (e.g., Chrome).
  • No installation or external dependencies are required.
  • Works with any folder or Git repository.
  • Official documentation and demo are available via links in the README.

Highlighted Details

  • Fully local and secure operation via browser APIs.
  • No installation or external dependencies needed.
  • Preset management for saving and loading file selections and settings.
  • Optional minification for JavaScript, CSS, HTML, and JSON to save LLM context space.
  • Hierarchical structure preview and context size awareness.

Maintenance & Community

The project is maintained by Dicklesworthstone. Further community or roadmap information is not detailed in the README.

Licensing & Compatibility

  • License: MIT License.
  • Compatible with commercial use and closed-source linking.

Limitations & Caveats

Full functionality, particularly directory access, is best supported by Chromium-based browsers; other browsers may have limited or no support for the File System Access API.

Health Check
Last commit

5 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
36 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.