SuperAPI AI Directory

opengist

Opengist is a self-hosted, Git-powered open-source Pastebin (code snippet hosting service), serving as an open-source alternative to GitHub Gist. All code snippets are stored in Git repositories and can be read and written both through standard Git commands and through the web interface. It supports creating public, unlisted, or private snippets, supports Git init, clone, pull, and push over HTTP or SSH, and provides syntax highlighting, Markdown and CSV support, in-snippet code search, browsing user snippets, likes and forks, topic tags, embedding in other websites, revision history, and downloading raw files or ZIP archives. For login, it supports OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect, and can restrict or allow anonymous users' permission to view snippets. Deployment options include a Docker image, docker-compose, a Helm Chart, and downloading an archive from the releases page to run yourself; the development environment requires Git 2.28+, Go 1.23+, Node.js 16+, and optionally Make. The project is licensed under AGPL-3.0.

Open website

About this tool

Opengist is a self-hosted Pastebin tool powered by Git, positioned as an open-source alternative to GitHub Gist. Its core feature is that all code snippets are stored in Git repositories, and users can read and modify them both using standard Git commands and through the web interface.

Main capabilities include: creating public, unlisted, or private snippets; performing Git init, clone, pull, and push on snippets over HTTP or SSH; providing syntax highlighting, with support for Markdown and CSV; supporting code search within snippets, browsing user snippets, likes, and forks; adding topic tags to snippets; supporting embedding snippets in other websites; providing revision history; supporting liking and forking snippets; supporting downloading raw files or ZIP archives.

In terms of usage, the project provides a Docker image, docker-compose configuration, and a Helm Chart. When using docker-compose, after creating docker-compose.yml, run docker compose up -d; the service runs on port 6157 by default and can be accessed via http://localhost:6157 ; you can also set the UID and GID environment variables to specify the user/group running the container and the file owner. You can also download the archive for your system from the releases page, extract it, and run it. The development environment requires Git (2.28+), Go (1.23+), Node.js (16+), and Make (optional).

In terms of login and permissions, it supports OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect, and can restrict or allow anonymous users' permission to view snippets. Documentation is located at https://opengist.io/ or the repository's /docs directory. The project is licensed under AGPL-3.0.