sorry about the slow reply.
@matt and I sat down one evening at art~hack to try and to see if we could build a bit of a git-ssb interface in patchcore style. The problems we hit as I remember them (correct me if I'm wrong matt) :
- we wanted to take a repo key, and just get the current master branch - ideally an (observeable) object with the file/tree structure. The logic for this in git-ssb-web felt really spread out and coupled (to the views / server?). I think we found what we needed but failed to extract it
- we hit intermittenent bugs with some repos (e.g. patchbay) where git-ssb crashed the sbot. Made learning very hard
- I think you replied that you'd fixed this, but I got the impression (could be wrong) that the solution was in your new ssb registrry, so I got caught up trying to use that without making it my global install. When I ran out of time in this rabbit hole I lost momentum. Is git-ssb on npm/ github the most recent version?
my dream for a library would be to be able to call it something like:
const location = { key: '%djgfd6544', branch: 'my_feature', path: '/app/components/nav.js' }
gitSSB.getRepo(location, callback) // getRepo is a terrible function name
where callback is passed the data object of all the things i need for that view of the repo (tree, blob addresses, anything else?). I guess things get more challenging if you want to see when different files were lasted edited
similar APIs for PRs would be awesome.
I'm sure I've missed considerations that will be more obvious to those further into building out everything needed (like yourself)
happy to jam and do documentation driven development or clarify anything here. @matt please addyour thoughts too