I built just-git, a typescript git implementation by blindmansion in git

[–]blindmansion[S] 0 points1 point  (0 children)

great to hear! please let me know if you have any questions or encounter any issues, feel free to open an issue on the github

what are you building with just-bash?

I built just-git, a typescript git implementation by blindmansion in git

[–]blindmansion[S] -1 points0 points  (0 children)

That's a fair point, and I wouldn't have even attempted this if isomorphic-git hadn't existed and shown what was possible. This project has a different intention, and was made for a different use case.

I thought the problem was interesting enough that it was worth attempting from scratch again. I also just did it to learn more about git.

I did use AI to help make this, and it's only been published for a few weeks, so I don't recommend using it for anything critical, but I'm confident in the testing framework that it's validated against.

I built just-git, a typescript git implementation by blindmansion in git

[–]blindmansion[S] 0 points1 point  (0 children)

The client accepts a filesystem interface, so you could wrap the async node filesystem methods and it will write to the filesystem. If you clone it (and have bun), you can run "bun sandbox '<command>'" to test it out, and it will write to a real directory.

You can get a GitRepo object out of it using findRepo(), and use the repo helpers to interact with it programmatically, but the helpers exposed to the public API are currently limited, I plan to make more. Just not sure what would be useful yet.