Self-Hosted alternative to GitHub Gists
 
 
 
 
 
 
Go to file
Aravinth Manivannan edca78906e
feat: gist preview
SUMMARY
    crate::data::Data::gist_preview fetches gist metadata from DB and
    retrieves contents of all the files(see notes #1) stored in the
    repository

NOTES
    1) Data::gist_preview uses Data::read_file under the hood, which
       currently reads subdirectories up to level 1 depth. Decision has
       to be made regarding what to do with level 2 and below
       subdirectories. TODO
2022-02-28 10:38:13 +05:30
.github feat: CI: build and publish docker image 2022-02-26 21:10:36 +05:30
config feat: get admin_email in settings and validate admin_email and source_code 2022-02-21 00:42:53 +05:30
database chore: rename gists to gitpad 2022-02-20 19:21:28 +05:30
docs feat: ecosystem overview 2022-02-12 16:31:00 +05:30
src feat: gist preview 2022-02-28 10:38:13 +05:30
static/cache/css feat: add new gist form gets error handling and rendering with 2022-02-27 20:14:53 +05:30
templates feat: add new gist form gets error handling and rendering with 2022-02-27 20:14:53 +05:30
.dockerignore feat: package docker img 2022-02-26 20:04:45 +05:30
.env-sample feat: bootstrap database ops 2022-02-12 16:35:55 +05:30
.gitignore feat: setup cache busting for static assets 2022-02-21 02:15:38 +05:30
Cargo.lock feat: login and register HTML pages 2022-02-21 02:22:01 +05:30
Cargo.toml feat: login and register HTML pages 2022-02-21 02:22:01 +05:30
Dockerfile feat: package docker img 2022-02-26 20:04:45 +05:30
LICENSE.md add license 2022-02-11 17:42:13 +05:30
Makefile feat: package docker img 2022-02-26 20:04:45 +05:30
README.md feat: readme: add docker img badge 2022-02-27 20:17:24 +05:30
build.rs feat: setup cache busting for static assets 2022-02-21 02:15:38 +05:30
sqlx-data.json feat: add gists_gists, gists_comments and gists_comments & related methods 2022-02-14 20:11:26 +05:30

README.md

GitPad

Self-Hosted GitHub Gists

Docker Build dependency status codecov

Features

  • Upload code snippets(✓ REST API)
  • Syntax Highlighting
  • Comments
  • Versioning through Git
  • Fork gists
  • Gist privacy: public, unlisted, private
  • Git clone via HTTP and SSH
  • Activity Pub implementation for publishing native gists and commenting
  • Gitea OAuth integration

Why?

Gists are nice, while there are wonderful forges like Gitea, there isn't a libre pastebin implementation that can rival GitHub Gists.

Usage

  1. All configuration is done through ./config/default.toml(can be moved to /etc/gitpad/config.toml).