$ show recloudstream/cs-repos
This repository is the canonical community index for Cloudstream extension repositories. It maintains a JSON list of repo URLs (repos-db.json) and uses a Python CI script to validate each repository's manifest and every plugin it exposes. The validation fetches repo.json, asserts required fields (name, manifestVersion, pluginLists), then concurrently checks every plugin URL with HTTP requests, collecting failures across all repos and their plugin lists. If all checks pass, it generates list.md with custom cloudstreamrepo:// deep links and, on the default branch, publishes that markdown to a Rentry page via GitHub Actions. Architecturally it is a small batch validation utility rather than a running service: ci_check.py is the entry point, create_markdown.py provides output rendering, and a GitHub Actions workflow orchestrates execution on every push/PR and publishes the result. External dependencies are httpx for async HTTP and rentry (CI only) for publishing. It relies on the availability of dozens of third-party GitHub/GitLab-hosted repo.json files. Notable implementation details include a JSONC-compatible decoder that strips // comments, asynchronous fan-out with gathered exceptions to validate many URLs quickly, and structured error reporting. The code is simple and readable, but dependency versions are unpinned and the checkout action is outdated, which introduces moderate technical drift.
The LLM identified 1 files worth highlighting for reuse:
Implements a reusable asynchronous validator for remote repository manifests and nested plugin lists. It fans out HTTP checks with httpx and asyncio.gather, collects exceptions without aborting on the first failure, and includes a small JSON-with-comments decoder for lenient config parsing. The pattern can be extracted and adapted to validate any distributed catalog or registry endpoint schema.