LiteGist is an extremely lightweight, experience-focused personal standalone pastebin service. Designed with a full-screen editor philosophy, it supports Markdown rendering, code highlighting, password protection, Gist-compatible multi-file management, and PWA support. It aims to provide you with a high-performance "Private Gist" sharing experience.
- 🚀 Instant Sharing: Open to a full-screen editor—write and share immediately.
- 🗂️ Multi-file Gists: Manage multiple files within a single share with Git-backed version history.
- 🔌 Sub-Store Integration: Native support for subscription conversion (Clash, Sing-box, etc.). Acts as a GitHub Gist API proxy.
- 🔒 Privacy & Security: Set access passwords, expiration dates, and custom slugs for your shares.
- 📱 PWA Support: Install as a standalone app on your phone or desktop for an immersive experience.
- 🌓 Adaptive Theme: Perfect support for Dark/Light modes with smooth transitions.
- ⚙️ Admin Dashboard: Manage all your shares, gists, and server settings (Username, Password, API Key) directly from the UI.
- ☁️ WebDAV Backup: Automated or manual backups to your preferred cloud storage.
- ⚡ High Performance: Built with native
node:sqliteand Gzip compression for blazing-fast page loads.
The simplest and cleanest way to install.
-
Option A: Docker Compose (Recommended) Create a
docker-compose.ymland run:docker-compose up -d
-
Option B: Docker CLI
docker run -d \ --name litegist \ -p 3382:3382 \ -v $(pwd)/data:/app/data \ -e ADMIN_USERNAME=admin \ -e ADMIN_PASSWORD=your_password \ lockcp/litegist -
Access & Logs
- URL:
http://localhost:3382 - Default Username:
admin - Default Password:
admin888
💡 Tip: If you don't set an
API_KEYin environment variables, a random one will be generated on startup. You can find it in the container logs:docker logs litegist
- URL:
Ensure you have Node.js >= 22.5.0 installed.
# Install dependencies
npm install
# Start the server
npm startYou can customize the following variables in your docker-compose.yml or shell:
| Variable | Description | Default |
|---|---|---|
PORT |
Server listening port | 3382 |
ADMIN_USERNAME |
Admin username | admin |
ADMIN_PASSWORD |
Admin login password | admin888 |
API_KEY |
Key for programmatic API access | (Randomly generated) |
LiteGist provides a robust API for management and integration with tools like Sub-Store.
- Admin API:
GET/POST /api/v1/admin/... - Gist Proxy: Supports GitHub-compatible paths for seamless proxying.
- Raw Access:
/:slug/rawor/gists/:id/raw/:filename. - Authenticated Raw:
/token:<TOKEN>/...for programmatic access to password-protected content.
Detailed documentation: API.md | API_zh.md
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
- Network Public Requirement: If you provide access to this project or a modified version over a network, you must make the source code available to all users.
- Copyleft: Any derivative works must also be licensed under AGPL-3.0.
- Attribution: You must provide credit to the original author.