A desktop application for managing your personal code library. Save, organize, search, and retrieve code snippets, functions, and templates with easy tagging and categorization.
Built with Wails (Go + React). Also includes a companion VS Code extension for seamless integration with your editor: Sprig- VS Code Extension
Download the latest release from Releases - no build required.
For other platforms or development:
-
Prerequisites
- Go 1.21+
- Node.js 16+
- Wails CLI:
go install github.com/wailsapp/wails/v2/cmd/wails@latest
-
Clone and Build
git clone https://github.com/Emmyme/sprig.git cd sprig wails build -
Development Mode
wails dev
- Code Organization: Save snippets, functions, components, and templates
- Multi-Language Support: Works with any programming language
- Fast Search: Find code by title, content, tags, or language
- Tagging System: Organize with custom tags and categories
- Theme Support: Light and dark themes
- Local Storage: SQLite database (stored in
~/.sprig/) - VS Code Integration: Companion extension for editor workflow
- Backend: Go
- Frontend: React + TypeScript
- Framework: Wails v2
- Database: SQLite
Install the companion extension Emmyme.sprig from the VS Code Marketplace. It shares the same database as the desktop app, allowing you to:
- Save code selections directly from your editor
- Search and insert saved snippets
- Access your library without leaving VS Code
Sprig uses SQLite for local storage:
- Windows:
%USERPROFILE%\.sprig\sprig.db - macOS/Linux:
~/.sprig/sprig.db
The database is shared between the desktop app and VS Code extension.
This project is licensed under the MIT License - see the LICENSE file for details.



