{"id":15406823,"url":"https://github.com/dannyben/sla","last_synced_at":"2025-04-18T03:15:19.925Z","repository":{"id":48458305,"uuid":"63364257","full_name":"DannyBen/sla","owner":"DannyBen","description":"Site Link Analyzer - command line broken links checker","archived":false,"fork":false,"pushed_at":"2024-02-10T16:29:14.000Z","size":150,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T06:21:37.218Z","etag":null,"topics":["gem","link-analysis","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/DannyBen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-07-14T19:34:22.000Z","updated_at":"2024-01-22T14:38:38.000Z","dependencies_parsed_at":"2024-10-19T12:33:33.467Z","dependency_job_id":"b2d46513-21f8-4168-af75-4f8b1a1affb1","html_url":"https://github.com/DannyBen/sla","commit_stats":{"total_commits":109,"total_committers":2,"mean_commits":54.5,"dds":0.3486238532110092,"last_synced_commit":"4a8b83113011b5a128bcc2b868499600a0b772ed"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fsla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fsla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fsla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fsla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DannyBen","download_url":"https://codeload.github.com/DannyBen/sla/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249419154,"owners_count":21268574,"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":["gem","link-analysis","ruby"],"created_at":"2024-10-01T16:25:41.120Z","updated_at":"2025-04-18T03:15:19.890Z","avatar_url":"https://github.com/DannyBen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Site Link Analyzer\n\n[![Gem Version](https://badge.fury.io/rb/sla.svg)](https://badge.fury.io/rb/sla)\n[![Build Status](https://github.com/DannyBen/sla/workflows/Test/badge.svg)](https://github.com/DannyBen/sla/actions?query=workflow%3ATest)\n[![Maintainability](https://api.codeclimate.com/v1/badges/f78192aead8a74535a24/maintainability)](https://codeclimate.com/github/DannyBen/sla/maintainability)\n\n---\n\nSLA is a simple broken links checker, with built in caching.\n\n![SLA Demo](demo/cast.svg \"SLA Demo\")\n\n## Install\n\n### Install using Ruby\n\n```shell\n$ gem install sla\n```\n\n### Install using Docker\n\n```shell\nalias sla='docker run --rm -it --network host -v /tmp/sla_cache:/app/cache dannyben/sla'\n```\n\nThe `--network host` flag is only necessary if you intend to check links on `localhost`.\n\n## Features\n\n- Easy to use command line interface.\n- Built in caching, to avoid overtaxing the server.\n- Show and save list of broken links to a log file.\n- Exits with non zero code on failure, for CI integration.\n\n## Usage\n\n```\n$ sla --help\nSite Link Analyzer\n\nUsage:\n  sla URL [options]\n  sla --help | -h | --version\n\nOptions:\n  --verbose, -v\n    Show detailed output\n\n  --simple, -s\n    Show simple output of errors only\n\n  --depth, -d DEPTH\n    Set crawling depth [default: 5]\n\n  --external, -x\n    Also check external links\n\n  --ignore, -i URLS\n    Specify a list of space delimited patterns to skip\n    URLs that contain any of the strings in this list will be skipped\n\n  --cache, -c LIFE\n    Set cache life [default: 1d]. LIFE can be in any of the following formats:\n      10  = 10 seconds\n      20s = 20 seconds\n      10m = 10 minutes\n      10h = 10 hours\n      10d = 10 days\n\n  --cache-dir DIR\n    Set the cache directory\n\n  -h --help\n    Show this help\n\n  --version\n    Show version number\n\nParameters:\n  URL\n    URL to scan\n\nEnvironment Variables:\n  SLA_SLEEP\n    Set number of seconds to sleep between calls (for debugging purposes)\n\nExamples:\n  sla example.com\n  sla example.com -c10m -d10\n  sla example.com --cache-dir my_cache\n  sla example.com --depth 10\n  sla example.com --cache 30d --external\n  sla example.com --simple \u003e out.log\n  sla example.com --ignore \"/admin /customer/login\"\n\n```\n\n## Contributing / Support\n\nIf you experience any issue, have a question or a suggestion, or if you wish\nto contribute, feel free to [open an issue][issues].\n\n---\n\n[issues]: https://github.com/DannyBen/sla/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyben%2Fsla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdannyben%2Fsla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyben%2Fsla/lists"}