This is an API I built for my agents to let them read files in public GitHub repos without relying on the official GitHub API.
There are no rate limits. The API is built on top of sqlite on Cloudflare Durable Objects.
The first time you fetch an url it downloads the repository tar file and stores the files contents in the sqlite database.
It then uses sqlite to list, read and search the files.
Agents can paginate files using search params like start and end to only read a portion of a file. They can also use globs to only search or read a portion of a repo
andric•5mo ago
Oh this is what I have been looking for all this while! I was previously manually copying from uithub and Gitingest but that wastes so many tokens
I’ll try it out.
Thanks for making this! Any chance this could be open sourced so we can run it locally?
xmorse•5mo ago
There are no rate limits. The API is built on top of sqlite on Cloudflare Durable Objects.
The first time you fetch an url it downloads the repository tar file and stores the files contents in the sqlite database.
It then uses sqlite to list, read and search the files.
Agents can paginate files using search params like start and end to only read a portion of a file. They can also use globs to only search or read a portion of a repo
andric•5mo ago
I’ll try it out.
Thanks for making this! Any chance this could be open sourced so we can run it locally?