{"id":28389704,"url":"https://github.com/hexops/wrench","last_synced_at":"2026-03-13T19:11:15.452Z","repository":{"id":65028183,"uuid":"568515479","full_name":"hexops/wrench","owner":"hexops","description":"[bot] 🐵 Wrench here! Let's fix this! 🔧","archived":false,"fork":false,"pushed_at":"2025-11-25T19:24:56.000Z","size":482,"stargazers_count":13,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-12T18:49:39.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"slimsag"}},"created_at":"2022-11-20T19:13:37.000Z","updated_at":"2026-02-06T10:14:07.000Z","dependencies_parsed_at":"2023-10-17T07:40:44.827Z","dependency_job_id":"4d576aba-8149-4357-af51-f0e60a0e9893","html_url":"https://github.com/hexops/wrench","commit_stats":null,"previous_names":[],"tags_count":340,"template":false,"template_full_name":null,"purl":"pkg:github/hexops/wrench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Fwrench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Fwrench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Fwrench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Fwrench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexops","download_url":"https://codeload.github.com/hexops/wrench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Fwrench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30472993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T17:15:31.527Z","status":"ssl_error","status_checked_at":"2026-03-13T17:15:22.394Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-31T01:38:57.818Z","updated_at":"2026-03-13T19:11:15.433Z","avatar_url":"https://github.com/hexops.png","language":"Go","readme":"# [bot] wrench: let's fix this!\n\n\u003cimg width=\"300px\" align=\"left\" src=\"https://raw.githubusercontent.com/hexops/media/b71e82ae9ea20c22a2eb3ab95d8ba48684635620/mach/wrench_rocket.svg\"\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cstrong\u003eWrench\u003c/strong\u003e is the name of the \u003ca href=\"https://machengine.org\"\u003eMach engine\u003c/a\u003e mascot, who also helps us automate and maintain Mach project development from time to time.\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Wrench in action\n\nJoin the `#wrench` channel in [the Mach discord](https://discord.gg/XNG3NZgCqp) to get an idea of what wrench can do.\n\n## Issues\n\nIssues are tracked in the [main Mach repository](https://github.com/hexops/mach/issues?q=is%3Aissue+is%3Aopen+label%3Awrench).\n\n## Development\n\nWrench is written in Go (convenient due to its ecosystem for this kind of task); install the latest version of Go and `go test ./...` or `go install .` to install `wrench` into your `$GOBIN`.\n\n### Discord bot testing\n\n1. Navigate to the Discord [Applications page](https://discordapp.com/developers/applications/me)\n2. Select one of your bot applications (you may need to create one for testing.)\n3. Under **Settings**, click **Bot**. If needed create the bot.\n5. Under the **Build-A-Bot** section, select **Click to Reveal Token**\n\nIn your `config.toml` enter the token:\n\n```\nDiscordBotToken = \"SECRET\"\n```\n\nTo add the bot to a server:\n\n* Under **OAuth2**, select **URL Generator**\n* Select scopes:\n  * Bot\n* Select permissions:\n  * Send messages\n  * Create public threads\n  * Create private threads\n  * Send messages in threads\n  * Send TTS messages\n  * Embed links\n  * Attach files\n  * Read message history\n  * Add reactions\n  * Use slash commands\n\nThis will give you a URL you can visit to add the bot to your server.\n\n## Installation\n\n### Linux\n\n1. Install Git `sudo apt-get install git` - ensure v2.39+\n2. Download release binary\n3. Move to `/usr/local/bin/wrench` and `chmod +x /usr/local/bin/wrench`\n4. Run `sudo wrench setup` and follow instructions\n\n### macOS\n\n1. Ensure Git v2.39+ is installed (use `brew install git`)\n2. Download release binary\n3. Move to `$HOME/.bin/wrench` and `chmod +x $HOME/.bin/wrench`\n4. Place `$HOME/.bin` on PATH if desired\n5. Run `sudo wrench setup`\n\n### Windows\n\n1. Install Git: `winget install --id Git.Git -e --source winget` - ensure v2.39+\n2. Download release binary, rename to `.exe`\n3. Place at `C:/wrench.exe` or some other location. Put on PATH if desired.\n4. In admin terminal run `wrench.exe setup`\n\n## Run your own ziglang.org/download mirror\n\nIf you want to mirror https://ziglang.org/download on-demand, similar to what https://pkg.machengine.org does,\nyou may do so using e.g. this `config.toml` with `Mode = \"zig\"` which disables all other Wrench functionality so it only mirrors Zig downloads:\n\n```toml\n# Note: data will be written in a directory relative to this config file.\nMode = \"zig\"\n\n# HTTP configuration\nExternalURL = \"http://foobar.com\"\nAddress = \":80\"\n\n# HTTPS configuration (optional, uses LetsEncrypt)\n#ExternalURL = \"https://foobar.com\"\n#Address = \":443\"\n#LetsEncryptEmail = \"foo@bar.com\"\n```\n\nWrench will save data relative to that config file, so generally you should put that `config.toml` into e.g. a `wrench/` directory somewhere.\n\nRunning `wrench svc run` will start the server. Then you can fetch e.g.:\n\n* http://localhost/\n* http://localhost/zig/zig-linux-x86_64-0.13.0.tar.xz\n* http://localhost/zig/index.json - a strict superset of https://ziglang.org/download/index.json\n\nDownloads like http://localhost/zig/zig-linux-x86_64-0.13.0.tar.xz will be fetched on-demand from ziglang.org and then cached on the local filesystem forever after that.\n\nhttp://localhost/zig/index.json is like https://ziglang.org/download/index.json with some small differences:\n\n* It is fetched from ziglang.org once every 15 minutes and cached in-memory.\n* Entries from https://machengine.org/zig/index.json are added so the index.json _additionally_ contains Mach [nominated Zig versions](https://machengine.org/docs/nominated-zig/)\n* `tarball` fields are rewritten to point to the configured `ExternalURL`\n\nIf you want to run Wrench as a system service, have it auto-start after reboot, etc. then you can e.g. put the config file in `/root/wrench/config.toml`, run `wrench svc install` as root to install the systemd service, use `wrench svc start` to start the service, and `wrench svc status` to see the status and log file locations.","funding_links":["https://github.com/sponsors/slimsag"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexops%2Fwrench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexops%2Fwrench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexops%2Fwrench/lists"}