A repository for all the code developed for ComputerCraft, including addons and forks.
A powerful GitHub fetch utility for ComputerCraft that supports aliases, batch downloads, automatic base64 decoding, and tab completions.
wget https://raw.githubusercontent.com/manaphoenix/CC-Code/refs/heads/main/apps/gfetch.lua gfetch.luagfetch owner/repo/branch/path/to/file.lua [output_path]- owner/repo/branch/path — Required. Full path to the GitHub file.
- output_path — Optional. Defaults to saving at the same relative path locally.
You can define repository aliases in .gfetch.conf:
{
gfetch_dir = "config",
aliases = {
cc = "manaphoenix/CC-Code/main"
}
}Then fetch files like so:
gfetch cc/lib/linq.luaUse a .gfetch batch file to define multiple files to download:
# manaphoenix/CC-Code/main
./lib/linq.lua lib/linq.lua
./utils/parallelActions.lua utils/parallelActions.lua
Run with:
gfetch --batch myfiles.gfetchRemote URLs for .gfetch files are also supported.
gfetch --alias add myalias owner/repo/branch
gfetch --alias remove myaliasAdds or removes entries from your .gfetch.conf.
- ✅ Raw GitHub file fetching via GitHub API
- ✅ Aliases for reusable repo+branch targets
- ✅
.gfetchbatch files for grouped installs - ✅ Remote or local batch file support
- ✅ Auto base64 decoding of file contents
- ✅ Smart path resolution & completions support
Completions work in the ComputerCraft shell when gfetch is run directly.
gfetch manaphoenix/CC-Code/main/lib/linq.lua lib/linq.luaVisit the project page: CC-Code