Introduction
Lepton is a cross-platform desktop application for managing code snippets. It uses GitHub Gists as its storage backend, giving you free cloud sync, version history, and access from any device without running your own server.
What Lepton Does
- Organizes code snippets with tags, descriptions, and language detection
- Syncs all snippets via GitHub Gists for seamless multi-device access
- Provides full-text search across snippet content and metadata
- Supports syntax highlighting for 100+ programming languages
- Renders Markdown gists as formatted previews
Architecture Overview
Lepton is an Electron application that authenticates with the GitHub API via OAuth. It fetches, caches, and indexes your Gists locally for fast search and offline browsing. Edits are pushed back to GitHub Gists, preserving version history. The local cache is rebuilt on each sync cycle.
Self-Hosting & Configuration
- Requires a GitHub account for Gist-based storage
- Download pre-built binaries for macOS, Linux, or Windows from GitHub Releases
- Authenticate with a GitHub personal access token on first launch
- Snippets are stored as GitHub Gists; no additional server needed
- Proxy support available via environment variables for corporate networks
Key Features
- Zero-infrastructure cloud sync via GitHub Gists
- Instant full-text search across all snippets
- Immutable snippet revisions through Gist version history
- Tag-based organization with custom categories
- Keyboard-driven workflow with global hotkey support
Comparison with Similar Tools
- GitHub Gists web UI — browser-only with no tagging or fast search; Lepton adds a native app layer
- SnippetsLab — macOS only and paid; Lepton is free and cross-platform
- Boostnote — local-first with manual sync; Lepton syncs automatically via Gists
- massCode — standalone snippet manager; Lepton leverages existing GitHub infrastructure
FAQ
Q: Are my snippets private? A: Yes, if you create them as secret Gists. Lepton supports both public and secret Gists.
Q: Does it work offline? A: Yes. Snippets are cached locally. Changes sync when connectivity resumes.
Q: Can I import existing Gists? A: Yes. On first login Lepton imports all your existing GitHub Gists automatically.
Q: What languages does it support? A: Syntax highlighting covers 100+ languages via the same engine used by GitHub.