How amll-dev/amll-ttml-db works
AMLL TTML DataBase is both a curated, multi-format lyric corpus and a GitHub-based contribution workflow. Contributors submit TTML through Issues or Pull Requests; the checker processes submissions, validates and normalizes lyric data, and coordinates feedback and repository changes. A separate rebuild tool parses the raw corpus and regenerates platform-specific files and metadata indexes. The README also documents downstream player/editor use. The source excerpts show only parts of the automation and rebuild logic, so unsampled subsystem links are omitted where their wiring is not explicit.
Main entry points: src/main.rs Corpus Rebuilder · src/main.rs Submission Checker · ncm-lyrics Platform Lyric Files · raw-lyrics Raw Lyrics
Components 16
Contribution Workflow
- Submission Checker
scripts/lyric_checker_bot/src/main.rs - GitHub API Client
scripts/lyric_checker_bot/src/github_api.rs - Git Operations
scripts/lyric_checker_bot/src/git_utils.rs
Lyric Processing
- TTML Validator
scripts/lyric_checker_bot/src/validator.rs - Parse Diagnostics
scripts/lyric_checker_bot/src/snippet_helper.rs
Lyric Corpus
- Raw Lyrics
raw-lyrics - Corpus Rebuilder
scripts/rebuild-folder/src/main.rs - Platform Lyric Files
ncm-lyrics - AM Lyric Files
am-lyrics - QQ Lyric Files
qq-lyrics - Spotify Lyric Files
spotify-lyrics - Indexes and Contributors
metadata
Repository Maintenance
- Stale PR Closure
scripts/close-stale-prs/index.ts
Other components
- Contributors
- GitHub Issues and PRs
- AMLL Player and Apps
Connections 14
- Contributors → GitHub Issues and PRs: submit lyrics
README.md - GitHub Issues and PRs → Submission Checker: deliver events
scripts/lyric_checker_bot/src/main.rs - Submission Checker → GitHub API Client: requests actions
scripts/lyric_checker_bot/src/main.rs - Submission Checker → TTML Validator: validates lyrics
scripts/lyric_checker_bot/src/main.rs - Submission Checker → Git Operations: uses git
scripts/lyric_checker_bot/src/main.rs - Submission Checker → Parse Diagnostics: renders errors
scripts/lyric_checker_bot/src/main.rs - Raw Lyrics → Corpus Rebuilder: provides source files
scripts/rebuild-folder/src/main.rs - Corpus Rebuilder → Platform Lyric Files: generates files
scripts/rebuild-folder/src/main.rs - Corpus Rebuilder → AM Lyric Files: generates files
scripts/rebuild-folder/src/main.rs - Corpus Rebuilder → QQ Lyric Files: generates files
scripts/rebuild-folder/src/main.rs - Corpus Rebuilder → Spotify Lyric Files: generates files
scripts/rebuild-folder/src/main.rs - Corpus Rebuilder → Indexes and Contributors: writes indexes
scripts/rebuild-folder/src/main.rs - AMLL Player and Apps → Platform Lyric Files: search and import
README.md - GitHub Issues and PRs → Stale PR Closure: lists open PRs
scripts/close-stale-prs/index.ts