Opengist

Opengist

Self-hosted Git-backed pastebin and Gist-compatible code snippet manager

3kstars
156forks
Last commit: 8h ago
Repo age: 3y old
Opengist screenshot

Opengist is a self-hosted pastebin that stores snippets as Git repositories and exposes a web UI and JSON API for creating, browsing and embedding code snippets. It is written in Go and designed for fast deployment with Docker or a native binary.

Key Features

  • Store snippets in Git repositories with full revision history and standard git push/pull over HTTP or SSH
  • Create public, unlisted or private snippets; like, fork and tag snippets with topics
  • Syntax highlighting, Markdown and CSV rendering; editor with indentation controls and drag-and-drop files
  • Search snippets, browse users, likes and forks; download raw files or ZIP archives
  • OAuth2 login (GitHub, GitLab, Gitea, OpenID Connect) and avatar support via Gravatar/OAuth providers
  • Admin panel with user/gist management, repo sync and git garbage collection
  • Supports SQLite, PostgreSQL or MySQL as backend databases
  • Distributed deployment options: Docker image, docker-compose configuration and Helm chart

Use Cases

  • Host an internal team gist/pastebin for sharing code snippets, configs and small scripts
  • Publish embeddable code samples or documentation snippets on blogs and docs sites
  • Maintain private or unlisted snippets for onboarding, secure notes, or ephemeral sharing between developers

Limitations and Considerations

  • Requires Git (recommended 2.28+) and OpenSSH for SSH-based Git operations; SSH support depends on system OpenSSH setup
  • Because each snippet is stored in Git, very large numbers of fragments can increase repository size and may impact search or git operation performance; plan storage and backups accordingly

Opengist is a focused, Git-centric alternative to gist-style services, offering familiar git workflows and a lightweight web UI. It is suitable for teams that want snippet hosting under their own control and integrates with common auth providers and containerized deployment workflows.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

asciinema

asciinema

Command-line terminal session recorder and web player

16.9k
1k
Last commit: 8d ago

Open-source CLI for recording, replaying and live-streaming terminal sessions using lightweight asciicast files and an embeddable web player.

Alternative to:
Screen Studio
Screen Studio
+1
PrivateBin

PrivateBin

Zero-knowledge encrypted pastebin with browser-side AES encryption

8k
962
Last commit: 14h ago

PrivateBin is a minimalist zero-knowledge pastebin that encrypts and decrypts pastes in the browser, with optional passwords, expiration, discussions, and file uploads.

Alternative to:
Pastebin
Pastebin
+5
MicroBin

MicroBin

Secure pastebin for text and file sharing with URL shortening

4.1k
265
Last commit: 2d ago

MicroBin is a lightweight, secure pastebin for sharing text, files, and short URLs with optional encryption, expiration controls, and raw file serving.

Alternative to:
Pastebin
Pastebin
+17
Onetime Secret

Onetime Secret

Self-destructing service for sharing single-use encrypted secrets

2.7k
427
Last commit: 14h ago

Open-source web and API service to create encrypted, single-view links for sharing secrets with configurable expiry and optional passphrase protection.

Alternative to:
Onetime Secret
Onetime Secret
+6
ByteStash

ByteStash

Self-hosted web app for storing and organizing code snippets

2.1k
102
Last commit: 8d ago

ByteStash is a self-hosted snippet manager for creating, editing, and filtering code snippets with secure storage in SQLite and an optional API with Swagger UI.

Alternative to:
SnippetsLab
SnippetsLab
+2
Enclosed

Enclosed

Minimal app for sharing end-to-end encrypted notes and files

1.9k
158
Last commit: 7mo ago

Self-hostable, end-to-end encrypted note and file sharing with zero-knowledge storage, optional passwords, expiration (TTL), and delete-after-reading links.

Alternative to:
Privnote
Privnote
+13