local forge = require("forge") function PLUGIN:BackendListTools(_ctx) local base_url = forge.base_url(nil) local repos = forge.list_repos(base_url) local tools = {} for _, repo in ipairs(repos) do if type(repo) == "table" and type(repo.name) == "string" and repo.name ~= "" then if type(repo.latest_release) == "string" and repo.latest_release ~= "" then table.insert(tools, { name = repo.name, description = type(repo.description) == "string" and repo.description or "", }) end end end return { tools = tools } end