Skip to main content


Do any fediverse alternative(s) for GitHub Gists exist?


Fediverse reshared this.

in reply to Daemon Silverstein

I am not aware of one with direct AP integration, but I think Opengist has an RSS feed that you could use with a bot to automate posts on a Mastodon etc. account fairly easily.
in reply to Daemon Silverstein

Check Forgejo out, they are currently working on federation through ActivityPub. Might be something for you.

codeberg.org/forgejo/forgejo#w…

in reply to Daemon Silverstein

It is being worked on but nothing ready for prime time yet.

in reply to Daemon Silverstein

I'm replying directly on the thread because one of the comments didn't arrive in Friendica, yet (I'm seeing only 3 of 4 comments here on Friendica, I only could see the fourth comment through Lemmy).

The suggested Forgejo (with public "instances" such as Codeberg) and Vervis seem good and promising. While they're not exactly what I'm looking for (as Github Gists and Opengists are less than a software forge and more like a "Pastebin/Ghostbin", they're meant to allow sharing "repoless" code (they also have some Git integration, but there are no such things as branches, CI/CD, issue tracking, etc)), they're useful to me, too, thanks everyone for suggesting them.

This entry was edited (1 week ago)

Fediverse reshared this.

in reply to Daemon Silverstein

@Daemon Silverstein What features are you looking for in particular? An interface that stores code snippets and organizes them would not be too hard to build.

The question is, what federated features would you like to have?

Fediverse reshared this.

in reply to Scott M. Stolz

This entry was edited (1 week ago)

Fediverse reshared this.

in reply to Daemon Silverstein

@Daemon Silverstein ActivityPub is mostly about sending posts and articles.

One relatively easy way to integrate ActivityPub might be to have the snippets be stored in some database on your website, and then have the option to create a post or direct message telling someone about the snippet. If the snippet is short, you could include a code block in the post, or you could provide a link back to the snippet on your website.

If you used something like Hubzilla, you could set permissions, controlling who can see the snippet or post. And, although not really designed for code snippets, Hubzilla does have webpages, articles, and wiki page that support code blocks. Although, now that you mention it, we probably could create an addon specifically for storing code snippets.

If you wanted to sync snippets or import between servers or accounts, that would require more advanced techniques, some of which are not really available over ActivityPub.

Fediverse reshared this.

in reply to Daemon Silverstein

Its not really what you are looking for, but you could my project Ibis for this. Its a wiki so instead of separate files you could use multiple markdown code blocks. Instead of a whole new project you could possibly implement gists as a custom frontend which converts to markdown for the backend. Note that the project is still in early development, so neither syntax highlighting nor federation with other platforms are available yet.
in reply to Daemon Silverstein

I know there's Forgejo which is a git repo that includes Activitypub (or at least they're working on that). I use it for my personal Git repo, but I don't use Gist so no idea of it has that

Fediverse reshared this.

in reply to Daemon Silverstein

Unfortunately, federation for software forges is still in its earliest days.
There is an ActivityPub extension called ForgeFed that's implemented by Vervis and Forgejo (the gitea fork that Codeberg is based on), but it is still far from feature complete.
in reply to Daemon Silverstein

There is Distbin but its been dead for years with no active forks that i can find