Austral Factory
Back to the Factory

Factory · 02

JamCloud — the musician's multi-tool

One app for everything you do with a song: split it, analyse it, slow it down, loop it, mix it, annotate it, share it.

Status
Beta
Technologies
23
tools in one app
8
stems split by AI
6
automated tests
3 300+
interface languages
9

Instead of juggling a stem splitter, a tuner app, a slow-downer and a shared drive, a musician opens one tab: every track becomes a workbench with its stems, tempo, key and notes.

Stack

Frontend
  • Vue 3
  • Pinia
  • Vite
  • Web Audio API
  • SoundTouchJS
  • Element Plus
  • Astro
Backend
  • Python
  • FastAPI
  • SQLAlchemy
  • Celery
  • Demucs
  • PyTorch
  • librosa
  • yt-dlp
Data
  • PostgreSQL
  • Redis
  • Cloudflare R2
  • SQLite
Infrastructure
  • Docker
  • Cloudflare
  • uv
  • Playwright

The toolbox

Eight tools, one song.

Every tool works on the same track, so what you do in one shows up in the others.

  1. 01

    Stem splitter

    AI splits any track into vocals, drums, bass, guitar, piano and the rest. Mute your part and play along with the band.

  2. 02

    Tempo & key finder

    BPM, key, genre and the sections of the song, detected automatically — plus a flag for tracks that were likely made by AI.

  3. 03

    Practice player

    Loop a passage, slow it down without changing the pitch, or transpose it to your range.

  4. 04

    Mixing desk

    Per-stem volume, a 10-band EQ and a compressor, right in the browser.

  5. 05

    Notes on the waveform

    Mark sections, write cues and chord notes exactly where they happen in the track.

  6. 06

    Link import

    Paste a link instead of hunting for a file: the track is imported and analysed in the background.

  7. 07

    Your library, from home

    A small agent on your computer streams your own collection into the app — nothing to upload, no port to open.

  8. 08

    Playlists & sharing

    Workspaces, setlists and share links, so the whole band rehearses from the same version.

Structure

Clients Cloudflare Docker · Tunnel jamcloud-agent Local agent local library · SQLite Vue 3 app Web app 31 stores · PWA Audio engine Audio engine shared package · stems Admin console Admin console Vue 3 · Element Plus Pages Functions Edge proxy REST · SSE · WS R2 Audio storage presigned URLs FastAPI API 8 processes · API keys austral-auth Shared auth sessions · MFA Redis 7 Broker broker · pub/sub PostgreSQL 17 Database SQLAlchemy async Celery Workers 4 queues · librosa Demucs Stem separation htdemucs_6s · heavy
Structure — components and dependencies Hover a component to trace its links Swipe to see the whole plate

Architecture

A lean API, dedicated workers for anything heavy, a browser that talks straight to storage — and an agent that brings your own library in.

Key decisions

  • Files never go through the API: the browser uploads and streams audio directly from R2 with presigned URLs. The API only handles metadata.
  • Four isolated Celery queues — default, audio, io, heavy — so a 30-minute Demucs separation never blocks metadata extraction or a link import.
  • Task progress arrives in real time over WebSocket or SSE; the socket is authenticated with a single-use ticket valid for 30 seconds.
  • A Pages Function relays /api on the app’s own domain: auth cookies stay first-party, with no CORS to negotiate.
  • The audio engine is a shared, versioned package with a 100% coverage gate: the app only wraps it.
Path of a request
  1. 01 App Vue 3 · Web Audio Vue 3 SPA, installable as a PWA, on top of the shared Web Audio engine: EQ, compressor, pitch shift and stem mixing.
  2. 02 Edge Pages Functions Pages Functions relaying REST, SSE and WebSocket to the API, on the same domain.
  3. 03 API FastAPI · Python 3.14 Async FastAPI split into modules — files, workspaces, playlists, notation, sharing, push — that triggers the processing jobs.
  4. 04 Workers Celery · Redis 7 Celery on four queues: metadata, BPM/key and genre analysis, link import, Demucs separation.
  5. 05 Storage Cloudflare R2 Audio, stems, covers and waveform tiles, read and written through presigned URLs.
  6. 06 Database PostgreSQL 17 Users, workspaces, files, stems, jobs and annotations.
  7. 07 Agent Python · WebSocket Runs on your own computer, indexes your music and keeps one outbound WebSocket to the API — no port to open.
  8. 08 Admin Vue 3 · Element Plus Separate console: users, invitations, rate limits, separation models, storage report.

Under the hood

Constraints, optimisations and choices.

  • Trick

    Your music stays at home

    The agent opens one outbound WebSocket and the API relays library calls, audio streams and covers over it. With 8 API processes, Redis pub/sub routes each request to the process that holds the link.

  • Constraint

    One heavy slot

    Stem separation runs alone on its own worker, one job at a time. The three other queues keep their own workers, so uploads and analysis never wait behind a separation.

  • Choice

    Keys for scripts, not for accounts

    Personal API keys, read-only or read-write. Account, admin and real-time routes refuse them, and a circuit breaker with daily counters keeps a runaway script in check.

  • Optimisation

    Streaming without the API

    Asking for a track answers with a redirect to a presigned R2 URL: the bytes never cross the Mac, and seeking is handled by Cloudflare.

AI integration

AI where it earns its place.

Models run on the server, on CPU, inside the workers — nothing leaves the infrastructure.

  • Demucs htdemucs_6s splits a track into 6 stems; a 4-stem fine-tuned model can be switched on from the admin console.
  • librosa detects tempo and key; PANNs tags genre and style and finds the sections of a song.
  • An AI-generated-music detector flags tracks that were likely made by a model.

Scalability

One machine, sized on purpose.

The backend runs in Docker on a 20-core Mac behind a Cloudflare Tunnel; the app, the admin console and the marketing site are on Cloudflare Pages, the audio on R2.

  • 8 uvicorn processes; workers sized per queue: 4 default, 3 audio, 4 io, 1 heavy.
  • No open port: the API is only reachable through the tunnel, bound to localhost.
  • A full staging stack with its own database and buckets: every branch preview talks to it.
  • A nightly pg_dump is copied to R2; merging to main redeploys automatically.

Want something similar for your product?

Let’s talk
Let's Talk
Palette

Colour palette

Change the mood of the site. Your choice is saved in this browser.