Phuc Buiv0.1.0

N-009

A GitHub Repo as a Database

4 May 2026 · github, oss

This note as an agent skill: github-as-db in phucbm/skills.

Shell
npx skills@latest add phucbm/skills --skill github-as-db

clyrics is a library of Chinese song lyrics with pinyin and translation, for people learning the language. It keeps the lyrics as JSON files in its own repo. A visitor adds a song in the app; a GitHub App bot makes a branch, commits the file and opens a pull request, and the song is live once I merge it. Reads never touch the API: a script compiles every file into public/data/index.json before each build.

Why a repo

The pull request is the moderation step, git history is the audit log, and issues are the support queue. I pay for none of them. It only works because the data is public, small and written rarely; anything private, real-time or relational needs a real database.

What broke