{"id":15973486,"url":"https://github.com/koba-e964/link-checker","last_synced_at":"2026-05-19T17:34:01.451Z","repository":{"id":224551584,"uuid":"763546799","full_name":"koba-e964/link-checker","owner":"koba-e964","description":"link-checker checks all links in the text files in a repository","archived":false,"fork":false,"pushed_at":"2025-03-08T09:01:09.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T09:28:30.326Z","etag":null,"topics":["golang","golang-application","hyperlink-auditing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koba-e964.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-02-26T13:56:34.000Z","updated_at":"2025-03-08T08:59:12.000Z","dependencies_parsed_at":"2025-03-08T09:24:04.369Z","dependency_job_id":"f85ffdad-45fc-413c-b9e5-9b4a3eb65580","html_url":"https://github.com/koba-e964/link-checker","commit_stats":null,"previous_names":["koba-e964/link-checker"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Flink-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Flink-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Flink-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Flink-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koba-e964","download_url":"https://codeload.github.com/koba-e964/link-checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208387,"owners_count":20901570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["golang","golang-application","hyperlink-auditing"],"created_at":"2024-10-07T21:05:08.694Z","updated_at":"2025-12-29T10:59:47.703Z","avatar_url":"https://github.com/koba-e964.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `link-checker` ![Go](https://github.com/koba-e964/link-checker/actions/workflows/go.yml/badge.svg?query=branch%3Amain)\n`link-checker` is a tool that looks in a repository and ensures all HTTP links in it are alive.\n\n# Prerequisites\n- `git` should be installed\n- the current directory should be managed by `git`\n- Go \u003e= 1.16 is required\n\n# How to install\nVia HomeBrew:\n```bash\nbrew install koba-e964/tap/link-checker\n```\n\nFrom source:\n```bash\ngo install github.com/koba-e964/link-checker@latest\n```\n\n# How to run\nIn the target directory, run:\n```bash\nlink-checker\n```\n\nTo add a URL to the lock file:\n```bash\nlink-checker add \u003cURL\u003e\n```\n\n# Configuration\nThe configuration file is always placed in `check_links_config.toml` in the project root.\n\n```toml\n# how many times link-checker retries before giving up\nretry_count = 5\n# specifies files which link-checker searches for links \ntext_file_extensions = [\n    \".c\",\n    \".cpp\",\n    \".go\",\n    \".h\",\n    \".java\",\n    \".mod\",\n    \".md\",\n    \".py\",\n    \".rs\",\n    \".sh\",\n    \".txt\",\n]\n```\n\nSometimes you may have to have links that are unstable (e.g., sometimes returns 4xx or 5xx). To handle this issue, `link-checker` allows you to have some exceptions in checking.\n\n```toml\n[[ignores]]\nurl = \"https://csrc.nist.gov/pubs/fips/186-4/final\"\ncodes = [200, 404] # allowed codes\nreason = \"\"\"\nThis URL seems to sometimes return 404 to requests from GitHub Actions' runners,\nand the issue cannot be handled with retries.\"\"\"\n# considered_alternatives cannot be empty\nconsidered_alternatives = [\n    \"https://www.omgwiki.org/dido/doku.php?id=dido:public:ra:xapend:xapend.b_stds:tech:nist:dss\", # as flaky as the original\n]\n```\n\nYou can also ignore all URLs that start with a specific prefix:\n\n```toml\n[[prefix_ignores]]\nprefix = \"https://x.com/\"\nreason = \"x.com doesn't seem to allow scraping\"\n```\n\n## Lock Files\n\nYou can create custom rules for specific links using lock files. The lock file is stored in `check_links.lock` in the project root.\n\nTo add a URL to the lock file (automatically fetches and computes SHA384 hash):\n```bash\nlink-checker add https://example.com/\n```\n\nThis will create an entry like:\n\n```toml\n[[locks]]\nuri = \"https://example.com/\"\nhash_version = \"h1\"\nhash_of_content = \"6ca762de9d907c3ec35042bc9a6ed4b5e7096ab89f61997fd277f41549866e7817f1d1daee89fcb8edd938d11bb717e2\"\n```\n\n# Dependency graph\n![dependency graph](./dependency_graph.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoba-e964%2Flink-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoba-e964%2Flink-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoba-e964%2Flink-checker/lists"}