Self-hosted pastebin powered by Git, open-source alternative to GitHub Gist
open sourceAGPL-3.0self-hostablefree
Opengist is a self-hosted pastebin where every snippet is a Git repository, an open source alternative to GitHub Gist written in Go. Snippets can be public, unlisted or private, and can be created, cloned, pulled and pushed over Git via HTTP or SSH as well as edited in the browser, with syntax highlighting, Markdown and CSV rendering, revision history, topics, likes, forks, comments and embedding in other sites. It stores its data in SQLite, PostgreSQL or MySQL, signs people in with OAuth2 through GitHub, GitLab, Gitea or OpenID Connect, can import gists from GitHub and serves snippet data as JSON. It ships as a single binary, Docker images and a Helm chart, and is AGPL-3.0 licensed.
Problems it solves
- I want GitHub Gist but on my own server
- share code snippets inside the company without putting them on a public site
- push and clone my snippets with git like any other repository
- keep a revision history of config snippets my team shares
- embed a code snippet from my own server in a blog post
- move my existing GitHub gists to a self-hosted place
- let my team sign in to our snippet site with our GitLab or OIDC accounts
- a pastebin where some pastes are unlisted and others private to my account
- search the code in all our saved snippets
Features
- public, unlisted and private snippets
- init, clone, pull and push over Git via HTTP or SSH
- syntax highlighting, Markdown and CSV rendering
- code search across snippets
- revision history, topics, likes, forks and comments
- embed snippets in other websites
- download raw files or a ZIP
- OAuth2 sign-in with GitHub, GitLab, Gitea and OpenID Connect
- SQLite, PostgreSQL or MySQL database
- import gists from GitHub
View 3 more
- snippet data as JSON and access tokens
- admin panel, metrics and healthcheck
- Docker images, binary releases and a Helm chart
Capabilities
| Has an API | plan not known |
|---|---|
| Has single sign-on | plan not known |
Alternatives
The same job
These do what Opengist does.
- ByteStash A code snippet storage solution written in React & Node.js
- PrivateBin A minimalist, open source online pastebin where the server has zero knowledge of stored data