121 points · by nalgeon · 2y ago · 32 comments
It's a better interface for editing / creating GitHub gists.
Login with GitHub, get a list of gists, get a full blown CodeMirror-based editor. Preview for markdown files.
And it's open-source: https://github.com/kjk/tools.arslexis.io/tree/main/frontend/...
Built mostly with Svelte 4 and a tiny bit of Go backend.
I use Gists as a way to stash lists publicly. I’m curious what use cases for Gists exist beyond the obvious “here’s a snippet” (which is valuable in and of itself!).
I’ve worked on a project like that before. Very simple editor, you put your code in, and it gives you an API endpoint. Wanna make a change? Just edit, hit save and it’s live. It was a great hit in all demos. Everybody loved it. Then developers actually started using it, and questions like “how do I do dependency management?”, “How do I split my code into multiple files?”, “How do I build my code?”, “What about Java/C#/Go/Python/etc?”, “How do I debug my code?”, “How do I use source control?”, “How do I integrate it into my CI/CD?”, “Can I deploy a container?”, “How do I manage multiple contributors and projects and access and dev/stage/prod?” Come up.
You can see how they skirt around some of these questions. “Modern JavaScript” as in just import from npm or urls so they don’t have to worry about dependency management and putting lots of code in 1 file. Or writing a custom blob library to deal with storage. But the minute you need anything that needs a standard file system, network features, or anything any developer would expect to have, you run into a very steep cliff. You end up slowly needing to implement an IDE, a source control, a CI/CD system, a deployment pipeline, an offline experience, a monitoring story, and many things that are better implemented by many other products already.
I still love them as a product and use them on a daily basis, and there's nothing that feels particularly missing from them, but they're clearly not something GitHub are investing a lot of effort in beyond keeping them working at the moment.
In the beginning I saw it as just a convenient pastebin service associated with the git service, for single files and quick sharing.
It seems overkill to create a repo. When people make gists that are like 2-3 files they should just make a repo.
On the other hand, Docker seems to be a bit overkill for something one could use a static site for instead if it's supposed to be self-hosted. It's even better security-wise. Otherwise, I wonder if one could upload a gist and have it run on the server through some unknown exploit.