pastemax  by kleneway

Desktop app for copy/pasting files into LLMs

created 5 months ago
950 stars

Top 39.5% on sourcepulse

GitHubView on GitHub
Project Summary

PasteMax is a desktop application designed to streamline the process of selecting and copying code snippets from local repositories for use with Large Language Models (LLMs). It targets developers who frequently interact with AI coding assistants, offering a user-friendly interface to navigate, filter, and preview files, thereby simplifying the preparation of code for LLM input.

How It Works

Built with Electron, React, and TypeScript, PasteMax presents a modern file explorer. It leverages tiktoken for approximate token counting per file, aiding users in managing LLM context window limits. The application features smart file exclusion, automatically filtering out common non-code files and binaries, and includes a file change watcher for real-time updates. This approach simplifies code selection by providing relevant context and filtering out noise, making it easier to extract usable code snippets.

Quick Start & Requirements

  • Install: Download pre-built binaries from the releases page.
  • Prerequisites: Node.js (v14 or higher), npm or yarn.
  • Build from Source: git clone https://github.com/kleneway/pastemax.git, cd pastemax, npm install, npm run build:electron, npm run package.
  • Development: npm run dev (Vite dev server) and npm run dev:electron (Electron).

Highlighted Details

  • File tree navigation with expandable directories.
  • Approximate token counting for LLM context management.
  • Search by file name or content.
  • Multi-file selection and bulk copying.
  • Automatic exclusion of binary and common junk files (e.g., package-lock.json).
  • File previewer and dark mode support.

Maintenance & Community

The project is open for contributions via pull requests. Users can report issues on GitHub.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

A reported issue requires running a fix-dependencies.js script if the ignore module is not found in packaged applications. The project is actively developed, and users should refer to GitHub for the latest status and potential breaking changes.

Health Check
Last commit

2 months ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
1
Star History
395 stars in the last 90 days

Explore Similar Projects

Starred by David Cournapeau David Cournapeau(Author of scikit-learn), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
6 more.

repomix by yamadashy

0.8%
18k
CLI tool to pack codebases into AI-friendly formats for LLMs
created 1 year ago
updated 5 days ago
Feedback? Help us improve.