How legiz-ru/sb-rule-sets works
High-Level Architecture Components
a. Upstream Data Sources
• External GitHub repos or URLs providing raw lists (e.g., itdoginfo, no-russia-hosts, discord-voice-ips).
b. GitHub Repository (legiz-ru/sb-rule-sets)
• Stores raw JSON definitions, compiled .srs files, and metadata (lst).
• Contains folder .github/workflows with CI pipelines.
c. CI/CD Pipeline (GitHub Actions)
• Triggers on pushes to main.
• Steps: fetch upstream lists, generate JSON rule-sets, compile to .srs (binary), commit artifacts, tag releases.
• Deploys static files to GitHub Pages or makes them available via jsDelivr CDN.
d. Artifact Hosting
• GitHub raw URLs + jsDelivr CDN endpoints serve .json, .srs, and .lst.
e. Clients / Consumers
Relationships and Data Flows
• CI Pipeline → GitHub Repo (commit new JSON/.srs).
• GitHub Repo → jsDelivr (CDN cache).
• Clients ← Raw URLs (https://raw.githubusercontent.com/.../*.json) or CDN URLs.
• Clients download JSON or binary .srs at runtime to apply routing rules.
Architectural Patterns & Principles
• “Pipeline” pattern: raw data ingestion → transformation → publication.
• Separation of concerns: upstream list definitions vs. compiled binary rule-sets vs. distribution templates.
• Extensibility: adding a new rule-set involves dropping JSON and a build step.
Technologies & Frameworks
• GitHub Actions for CI/CD.
• JSON for source rule-sets; custom .srs binary format.
• GitHub Pages/jsDelivr for static hosting.
Essential Details to Capture
• Each rule-set’s dual format outputs (source vs. binary).
• The .lst index file for vpnbot.
• CI triggers and deployment paths.