-
-
Notifications
You must be signed in to change notification settings - Fork 1
Automated Validation Pipeline
divyanshujethi edited this page Sep 16, 2026
·
1 revision
Developer resource directories often suffer from link rot — domains expire, open-source repositories get renamed or archived, and free tiers transition behind paywalls.
DevShelf solves this with an automated dual-tier validation pipeline.
Before any link is pinged, validate-shelf.ts enforces data integrity:
- JSON Syntax: Ensures valid parsing across all 7 shelf files.
-
Mandatory Keys: Verifies that every record has
name,url,category, anddescription. - URL Format: Enforces valid HTTPS/HTTP protocols.
- Deduplication: Flags duplicate project entries or matching URLs across files.
Run locally:
pnpm run validatecheck-links.ts makes live network requests against every URL in the database to verify real-time reachability.
- Concurrent Chunking: Pings endpoints in batches of 5 concurrent requests with random backoff to avoid tripping remote rate limits.
-
HEAD with GET Fallback: Pings with a lightweight
HEADrequest first. If a server rejectsHEADor returns405 Method Not Allowed, it seamlessly retries with aGETrequest using an authentic browserUser-Agent. -
Bot / WAF Distinction: Distinguishes between actual dead endpoints (
404 Not Found, DNS lookup failures, connection timeouts) and bot-shielded pages (403 Forbiddenfrom Cloudflare/Akamai anti-scraping protections). -
Exit Code Gating: If any endpoint returns
404or times out after 8 seconds, the script terminates with exit code1, causing CI checks to fail.
Run locally:
npx tsx scripts/check-links.ts?? [DevShelf Validator] Pinging 36 curated endpoints across 7 shelf files...
? [200] Ollama (https://github.com/ollama/ollama)
? [200] Open-WebUI (https://github.com/open-webui/open-webui)
? [200] Sentry for Open Source (https://sentry.io/for/open-source/)
? [200] Vitest (https://github.com/vitest-dev/vitest)
========================================
?? DevShelf Healthcheck Summary:
Total Endpoints Checked: 36
Active & Reachable: 36 (100.0%)
Dead / Unreachable: 0
========================================
?? 100% of curated DevShelf resources are active and healthy!
The link validator runs under two triggers:
-
Weekly Scheduled Cron: Every Sunday at midnight UTC (
cron: '0 0 * * 0') in.github/workflows/healthcheck.yml. - On-Demand Dispatch: Maintainers can trigger manual health checks anytime via the GitHub Actions tab.
DevShelf is maintained with pride by RitualDev Lab under the MIT License.