Skip to main content
← All Projects

Next Track

A tool for building a setlist using vectors. First place at the Appwrite Hackathon 2026.

HackathonSveltekitAppwriteVectorsDBAIPython

Next Track was my solo entry for the Appwrite Hackathon (October 2026), built from scratch in ten days. It suggests your next tune by how tracks actually sound, filtered to a mixable tempo and a harmonically compatible key.

What we did

Genre tags and BPM say little about how a record actually feels. Two tech house tracks at 126 BPM can sound nothing alike, and the track that flows best might be filed under something else entirely.

Problem

Tags and tempo can't tell you which tracks sound like they belong together.

↓ →
Solution

A local Python pipeline turns each track into a 512-dimension CLAP audio embedding, a fingerprint of how it sounds. The audio never leaves your machine: only the fingerprint, BPM and key are uploaded.

The hackathon rule was one Appwrite database type only, so the recommender had to live in the database rather than in custom code around it.

Problem

A sound-alike match is useless if it can't be mixed in tempo and key.

↓ →
Solution

Appwrite VectorsDB does the recommending. A single query combines cosine similarity on an HNSW index with BPM (±6%) and Camelot-key filters, and the distance it returns is shown as a match percentage.

A ranked list of results is useful, but it doesn't feel like DJing. I wanted the tool to feel like a deck you play with, not a search page.

Problem

Search results don't feel like picking records.

↓ →
Solution

Suggestions orbit the deck on a Camelot wheel: each one sits in its key's slice, and the closer it is, the more alike it sounds. Turn the key knob, slide the pitch range or drag the energy range and the wheel updates live. Drag a record onto the deck to play it next, then export the set as a playlist for Rekordbox, Serato or Traktor.

The Results

Appwrite Hackathon 2026 - 1st place

Next Track won first place at the Appwrite Hackathon 2026, judged on idea and innovation, technical execution, design and experience, and use of Appwrite Databases.

The whole thing runs on Appwrite: VectorsDB for the recommendations and Appwrite Sites for the SvelteKit app. It works with any music folder, and a generated demo crate means it runs straight from a fresh clone.

© 2009–2026 Well-made.