PasteMax is a simple desktop app built for developers using AI coding assistants. Makes sharing code with LLMs easy thanks to smart file explorer with token counting, file filtering, quick copy, and previewer. Select files you need, skip binaries and junk, get clean formatted snippets ready for LLM. Features file navigation & management (file tree navigation with expandable tree view, search capabilities by name/content, sorting options by name/size/token count, file change watcher automatically updating list when files added/modified/deleted, manual refresh option for full directory re-scan). AI-ready features include token counting with approximate token count per file, model context limit selection for different models (Claude-3.7, GPT-4o, Gemini 2.5, etc.), context limit warning when selections exceed model's context limit.
Content & preview features: file previewer viewing contents in dedicated preview pane, selection management selecting multiple files and copying contents together, binary file detection with automatic exclusion, smart file exclusion (auto-excludes package-lock.json, node_modules, etc.). Workflow enhancements: workspace management saving and loading workspaces for quick directory access, automatic update checker staying current with latest releases, dark mode toggling between light/dark themes, cross-platform available for Windows/Mac/Linux/WSL. Installation via download binary from GitHub Releases or build from source with npm. Build creates executables in release-builds directory (.exe for Windows installer/portable, .dmg/.zip for Mac, .deb/.rpm/.AppImage for Linux). Project structure: src/ (React app), electron/ (Electron backend with main.js, preload.js, file-processor.js, watcher.js), scripts/ (build utilities), docs/ (documentation). Libraries: Electron, React, TypeScript, Vite, tiktoken (token counting), ignore (gitignore-style patterns), chokidar (file watcher). MIT license. Contributors welcome; merged PRs encouraged.
Use Cases:
A modern file viewer application for developers to easily navigate, search, and copy code from repositories. Ideal for pasting into ChatGPT or your LLM of choice. Built with Electron, React, and TypeScript.
PasteMax is a simple desktop app built for developers using AI coding assistants. It makes sharing your code with LLMs easy, thanks to a smart file explorer with token counting, file filtering, quick copy, and a previewer. Select the files you need, skip binaries and junk, and get clean, formatted snippets ready for your LLM.
!PasteMax (https://github.com/user-attachments/assets/c2eea45f-2696-4bfa-8eaf-a6b07e7ca522) !FilePreview (https://github.com/user-attachments/assets/9bb9b6ff-b9cc-4655-b8a8-318f23c2e2b0) !ModelList (https://github.com/user-attachments/assets/e045f4f0-1bdd-4a30-8696-b388d598dcc5)
YouTube Link (https://youtu.be/YV-pZSDNnPo)
Download the latest PasteMax version from the releases page (https://github.com/kleneway/pastemax/releases/latest).
git clone https://github.com/kleneway/pastemax.git
cd pastemax
npm install
npm run build:electron
npm run package
Note: If you encounter issues with npm run package, you can try the platform-specific command:
npm run package:win
npm run package:mac
npm run package:linux
After successful build, you'll find the executable files inside the release-builds directory:
Windows:
PasteMax Setup 1.0.0.exe - Installer versionPasteMax 1.0.0.exe - Portable versionMac:
PasteMax 1.0.0.dmg - Installer versionPasteMax 1.0.0.zip - Portable versionLinx:
PasteMax 1.0.0.deb - Installer version (Deb package)PasteMax 1.0.0.rpm - Installer version (RPM package)PasteMax 1.0.0.AppImage - Portable versionTo run the application in development mode:
# Start the Vite dev server
npm run dev
# In a separate terminal, start Electron
npm run dev:electron
To build the application for production:
# Build the React app with Vite and update paths for Electron
npm run build:electron
# Create platform-specific distributables
npm run package
src/ - React application source codecomponents/ - React componentscontext/ - React context providershooks/ - Custom React hookstypes/ - TypeScript type definitionsutils/ - Utility functionsstyles/ - CSS stylesassets/ - Static assets like imageselectron/ - Electron-Backend related filesmain.js - Electron main processpreload.js - Preload script for secure IPCrenderer.js - Renderer process utilitiesbuild.js - Build script for productiondev.js - Development scriptexcluded-files.js - Configuration for files to exclude by defaultfile-processor.js - File processing utilitiesignore-manager.js - Ignore pattern managementupdate-checker.js - Update checking functionalityupdate-manager.js - Update managementutils.js - Utility functionswatcher.js - File change watcherpublic/ - Public assets (favicon, etc.)scripts/ - Utility scripts for building and testingdocs/ - DocumentationIf you see a warning about the app not being trusted, you can bypass this by clicking "run anyways". This is a common issue with Electron apps, especially since PasteMax is not signed.
If you encounter an "App not responding" message on Mac, it may be due to macOS security settings. You can try the following:
If you encounter other issues, please report them on GitHub (https://github.com/kleneway/pastemax/issues).
MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)Star History Chart (https://api.star-history.com/svg?repos=kleneway/pastemax&type=Date)
Desktop app to manage MCP servers on Windows and macOS. Organize servers into Projects and Workspaces. Connects with Claude, Cline, Windsurf and Cursor. All data stored locally for privacy.
Raycast-compatible launcher for Linux with command palette, Raycast Store extensions, smart calculator, clipboard history and snippets. Built with Tauri and Rust. Available as AppImage.
Android app for running Stable Diffusion with Snapdragon NPU acceleration. Supports text-to-image, image-to-image and inpainting with custom models, LoRA and upscaling. Works on Android 5.0 and newer.
Fast SQL client for PostgreSQL, MySQL and SQL Server with AI assistant that converts natural language to queries. Features Monaco editor, ERD diagrams, query plans and inline editing. Built with Electron and React.
Convert websites into desktop apps with Electron. Features multi-account support, global hotkey switching, custom JavaScript injection and portable packaging for Windows, macOS and Linux.
Open-source AI meeting assistant built with Tauri at 10MB. Features real-time transcription with OpenAI Whisper, GPT-4, Claude, Gemini and Grok support, translucent overlay, and undetectable in video calls.