If you're working on a JavaScript client for NIP-34/Grasp git repositories you should use https://jsr.io/@fiatjaf/git-natural-api to fetch git data directly from the servers without having to clone the full repository.
It also works with GitHub, GitLab and others together with https://cors.isomorphic-git.org/ so you don't need to call proprietary APIs).
It also works with GitHub, GitLab and others together with https://cors.isomorphic-git.org/ so you don't need to call proprietary APIs).