Side project · 2025 to now
tabs
Started as a way to print guitar tabs for a friend. Turned into a setlist tool a group actually uses.
- 43
- commits
- PDF + DOCX
- export
Why
A friend wanted clean printouts of Ultimate Guitar tabs: no ads, the right key, big enough to read from a music stand. The first version was one page that took a link, cleaned up the tab and let you transpose it.
What it does now
It grew once more people started using it:
- A setlist editor: add songs from a shared library, from Ultimate Guitar links (one or many at once) or by pasting text, drag to reorder, and transpose each song separately.
- Export the whole setlist to PDF or Word, with note boxes you can position on the page.
- A shared song library and saved setlists in Postgres, so everyone sees the same versions.
- Autoscroll for playing straight off the screen.

Interesting bits
Ultimate Guitar doesn’t want to be fetched from a browser, so links are fetched on the server, with public CORS proxies as a fallback. The tab itself is buried in a big JSON blob on the page, next to comments and ads, so the parser prefers the documented path and otherwise picks the longest field that actually contains chord markup.
Transposing is the fun part. Chords are marked up inline, so each one gets parsed, shifted and printed back in sharps or flats (your pick, with an option to simplify extended chords). When a chord gets longer or shorter, say G to G#m, the line is padded so the lyrics underneath stay lined up.
Editing and deleting shared songs sits behind a password so a stray click can’t wipe the library, and publishing posts a note to a Discord channel.
const parts = chords.split(/\[ch\]|\[\/ch\]/g) // odd indexes are chords
for (let i = 1; i < parts.length; i += 2) {
const before = prettyPrint(parse(parts[i], {}), { naming: tones })
const after = prettyPrint(transpose(parse(parts[i], {}), step), { naming: tones })
const diff = after.length - before.length
// pad so the lyrics under the chord line stay aligned
parts[i] = `[ch]${after}[/ch]` + (diff >= 0 ? '-'.repeat(diff) : ' '.repeat(-diff))
}