well, i'm just sayin, you could use a git repo as a database back end for a relay. khatru has a pluggable interface for that. idk about what languages you work with, i know cody made a local relay in javascript and maybe there is a php relay too?

all it would be doing is interfacing between the nostr protocol messages to calls to write files in a directory and then call git commands to commit it to the log. it would just be a different database back end, essentially, one that you could also treat as a git repo via git-http.

Reply to this note

Please Login to reply.

Discussion

nostr:npub1qdjn8j4gwgmkj3k5un775nq6q3q7mguv5tvajstmkdsqdja2havq03fqm7 We have git running on the server, anyway, so that would probably be a useful backend for the GRW, right?

Doesn't even need to be a relay, since we can just put controls into the GUI and access it directly.

indeed, it could just subscribe to the relay and make commits based on the stream.

Yup.

Means you can version events independent of replacing them, as you could just auto-commit changes at intervals and then restore whichever committed even you like, with the event publisher I have in there, by entering the commit hash. I then pulls that version, removes id, sig, created_at, and then republishes it.

the unified searching and display, is cool, too. shows the local and remote git cards on the repo page. you can then filter for only local and view those or click on a a remote and the local branches are displayed under the git server ones. Pretty cool. Just using GitHub, for now, but Chip is gonna get me an API for our own server. Could do Gitea, OneDev, GitLab, etc. Might go add those, now. What else is out there?

I integrated account tokens, so that you can write to github from GRW. read is allowed, automatically, for public repos, but it's rate-limited to 60/hour and I went over that with testing. 😅 Okay, next feature, integrate account tokens from env...

also makes it easier to use private servers, right? need to see if I can hook up the GitCitadel OneDeve. 🤔

It's all just a shaky PoC, but it's helping me think up new integrations and functionality, and figure out how things work.

It's funny how everyone else is using AI to try to build real products, which is LOL.

Nah, this is what AI is good at: hacking out prototypes. And bug-finding.

yeah, AI is good at prototyping. it can help find bugs, especially by automating testing, but it can be laboriously slow at actually figuring them out. like, i use claude sonnet 3.7 with junie, and i think that if i had a model that actually knew Go's syntax and grammar rules, it would perform about 10x faster, so often i'm looking in its logs it's saying "oh, we have unused imports, this won't compile" like *duh* it is learning go all over again every time i do something with it. that is a pretty wasteful way to use it.

i also noticed that it doesn't seem to have a principle wired up in it, that if it instruments code with logging that the AI can then accelerate debugging this way. i suggested that in a bug report on junie that i sent out last week after blowing up the i think 128kb token buffer several times on one problem.

I push the AI so hard, that it sometimes refuses to continue. All, "Okay, that was a lot! Wow, we accomplished many things. Let's take a little break and review." Nah, fuck that noise. Get back to work, buddy.

yeah, i've discovered that i'm a real dom on these pissants too.

Would be sort of full-circle, as we nostricized a git server and then we use that git server as a nostr backend. Sort of elegant.

nostrticism for the nostricised