Live data from Hacker News

Ask HN: Apps that are built with Git as the back end?

news.ycombinator.com

31–40 of 68 posts

Re: Ask HN: Apps that are built with Git as the back end?

#32
post #19

I'm using a webscraper that extracts data from some APIs, and stores all the data in a git repo periodically. Then you can see the data changing with tools like git and tig.

I love that pattern. I call it "git scraping" and I've been writing about it for a few years (and building tools too): https://simonwillison.net/series/git-scraping/

Interesting - I've been doing similar for a while (not writing about it though), but generally "self-commit" - i.e. the code in the repo commits back to itself, usuualy using github actions, or gitlab. E.g. https://github.com/ukd1/lvms-events

Re: Ask HN: Apps that are built with Git as the back end?

#37

Tim Caswell has several projects that interact directly with git. He has a few websites served directly from a bare git repo powered by https://github.com/creationix/wheaty . Another project that uses git as a storage medium is a package server for the node.js API implemented in Lua: https://github.com/luvit/lit . Both serve files from a git repository, and lit will actually write to the repository. There are several…

Also spent a few minutes browsing around and found https://github.com/creationix/tedit, a web based editor that reads and writes directly to git (I think).

Like I said Tim has quite a few projects that interact directly with git.

Re: Ask HN: Apps that are built with Git as the back end?

#38
I'm working on a simple IDE for a purely functional language, it's basically a text editor with a pure FP language as the "macro language", if you will.

When it came time to add strings and I/O I realized that it would mess up purity to provide the typical POSIX-ish filesystem APIs, so I thought, what if I denote strings (of byte sequences, or even bits) as a three-tuple of (hash offset length) backed by a git object store?

The IDE uses a git repo as its fundamental base or environment, you can only edit files that are in the repo (there is an "import" function (aka "git add") of course.) This includes source code and any string literals so your strings already automatically have a three-tuple, and this is true for selections as well.

The obvious thing then is to have (pure) functions that convert these three-tuples into, say, a list of 0..255 ints, or UTF-8 codes, or a (possibly multidimensional) array of floats or whatever...

It seems to work out nicely so far.

Re: Ask HN: Apps that are built with Git as the back end?

#40
Was talking a bit about this project of a colleague of mine.

"The miniature single-file buzz-word-compliant Git based chat client." https://github.com/JKrag/GitSlick

He wrote it out of a need and it actually works for his use-case:

> I created GitSlick mostly for sending messages to myself from one machine to another, mostly for use on e.g. customer machines where I can't use our own company Slack, and may be limited in what other tools I can install.

Post reply on HN