Installer for CC-Misc Utilities Interactive tool to install ComputerCraft libraries with dependency management This tool provides a user-friendly interface to select and install libraries from the cc-misc repository directly to your ComputerCraft computer. Library information is loaded from the online API at https://ccmisc.twijn.dev/api/all.json with automatic fallback to offline mode. Features: - Dynamic library loading from API with detailed information - Press RIGHT arrow to view library details (functions, version, dependencies) - Automatic dependency resolution - Visual indicators for selections and requirements - Install/update libraries directly from the API
Recommended: Install via installer (handles dependencies automatically):
This pattern downloads and runs libraries at runtime, automatically installing any that are missing:
-- Auto-install and require libraries
local libs = {"installer"} -- Add more libraries as needed
local libDir = (fs.exists("disk") and "disk/lib/" or "/lib/")
local allExist = true
for _, lib in ipairs(libs) do
if not fs.exists(libDir .. lib .. ".lua") then
allExist = false
break
end
end
if not allExist then
shell.run("wget", "run", "https://raw.githubusercontent.com/Twijn/cc-misc/main/util/installer.lua", table.unpack(libs))
end
local installer = require(libDir .. "installer")
-- Use the library
-- (your code here)
Alternative: Direct download via wget:
This example shows how to download and use libraries with automatic installation:
-- Auto-install and require libraries
local libs = {"installer"} -- Add more libraries as needed
local libDir = (fs.exists("disk") and "disk/lib/" or "/lib/")
local allExist = true
for _, lib in ipairs(libs) do
if not fs.exists(libDir .. lib .. ".lua") then
allExist = false
break
end
end
if not allExist then
shell.run("wget", "run", "https://raw.githubusercontent.com/Twijn/cc-misc/main/util/installer.lua", table.unpack(libs))
end
local installer = require(libDir .. "installer")
-- Use the library
wget run https://raw.githubusercontent.com/Twijn/cc-misc/main/util/installer.lua
Or pre-select libraries:
wget run https://raw.githubusercontent.com/Twijn/cc-misc/main/util/installer.lua cmd s