RECORDGOD
Go to file
type-two e8013a4633 feat(shop): DECKS — two-channel preview mixer on release pages (Serato internal-mode vibe)
Pure Web Audio, zero deps (site/decks.js, self-contained UI):
- deck A/B with waveform (client-computed peaks), click-to-seek, play/pause, CUE
- ±8% varispeed pitch (playbackRate — turntable behaviour, deliberately no keylock)
- channel gains + equal-power crossfader, DynamicsCompressor master limiter
- AudioContext lazily created on first load (autoplay policy safe)

Sources:
- local preview MP3s: PREVIEWS_DIR (default ./previews, gitignored) served at
  /previews, discovered via GET /shop/local-previews/{release_id}
  ({release_id}.mp3 / {release_id}-*.mp3|.m4a); on prod bind-mount the collection
- Apple 30s previews: GET /shop/preview-proxy?u= (STRICT whitelist
  *.itunes.apple.com / *.mzstatic.com) — Apple CDN sends no CORS, Web Audio needs it
- YouTube/Beatport/Bandcamp embeds untouched: iframes can never enter a mixer

release.html: A/B load buttons per track preview + local-cut rows.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 22:57:47 +10:00
.claude feat(builder): storefront customizer 2026-06-21 21:29:55 +10:00
app feat(shop): DECKS — two-channel preview mixer on release pages (Serato internal-mode vibe) 2026-07-06 22:57:47 +10:00
docs docs: DIG_FLIP_HANDOVER — port THRIFTGOD's evolved crate-riffle into /store 2026-07-02 22:52:26 +10:00
site feat(shop): DECKS — two-channel preview mixer on release pages (Serato internal-mode vibe) 2026-07-06 22:57:47 +10:00
webstore fix(virtual): cyclorama extent for east/west coves + never frustum-cull the cove 2026-07-02 23:07:28 +10:00
wp-bridge feat(bridge): RecordGod WP bridge plugin (WowPlatter successor) + thumb on browse/release 2026-06-24 01:43:30 +10:00
.dockerignore security(pii): keep customer SQL dumps out of git and the Docker image 2026-07-05 02:04:45 +10:00
.gitignore feat(shop): DECKS — two-channel preview mixer on release pages (Serato internal-mode vibe) 2026-07-06 22:57:47 +10:00
audio_sync.py feat(shop): per-track Apple previews (lazy iTunes) + jog mini-player + dead-YouTube check 2026-06-23 23:44:17 +10:00
build_disc_cache.py feat: self-contained enrichment — disc_cache (own catalog copy), no external DB dependency 2026-06-21 13:16:56 +10:00
customer_woo_sync.py feat(app): payments/packs/discogs-mp/dealgod modules + admin, shop, sales route work 2026-07-02 23:07:28 +10:00
disc_images_backfill.py feat(inventory): CRUD backend (add/edit/delete/bulk) — first cream from the WowPlatter audit; + migration audit doc 2026-06-22 22:39:17 +10:00
disc_sync.py feat(app): payments/packs/discogs-mp/dealgod modules + admin, shop, sales route work 2026-07-02 23:07:28 +10:00
Dockerfile feat: deploy-ready — env-aware Discogs enrichment + Dockerfile 2026-06-21 13:08:49 +10:00
migrate_virtual.py feat(virtual): lift the 3D store out of WordPress — scene API + raw Three.js renderer 2026-06-19 17:59:52 +10:00
migrate.py feat(pos): full Sales console + migrate customers/discounts/settings 2026-06-22 02:40:35 +10:00
README.md feat: RecordGod founding — service scaffold + MariaDB→Postgres migration 2026-06-19 17:18:50 +10:00
refresh.sh feat: Woo customer sync (non-destructive, in refresh.sh) + AusPost rates mirror & quote calc 2026-06-24 00:55:56 +10:00
requirements-migrate.txt feat: RecordGod founding — service scaffold + MariaDB→Postgres migration 2026-06-19 17:18:50 +10:00
requirements.txt feat(distro): Inertia xlsx ingest + cost/new-used/margin in inventory editor 2026-06-27 11:39:39 +10:00
schema.sql feat(pos): full Sales console + migrate customers/discounts/settings 2026-06-22 02:40:35 +10:00
shipping_sync.py feat(shipping): use current AusPost own-packaging rates (RecordGod not live pre-1-Jul, no dating needed) 2026-06-24 01:05:12 +10:00
test_dealgod_supply.py feat(app): payments/packs/discogs-mp/dealgod modules + admin, shop, sales route work 2026-07-02 23:07:28 +10:00
test_smoke.py feat: RecordGod founding — service scaffold + MariaDB→Postgres migration 2026-06-19 17:18:50 +10:00
test_startup_ddl.py feat(app): payments/packs/discogs-mp/dealgod modules + admin, shop, sales route work 2026-07-02 23:07:28 +10:00

RecordGod

The records back-office engine — the best of WowPlatter, reborn on Postgres, outside WordPress.

RecordGod ingests WowPlatter's job (inventory, import, enrichment, labels, copy, queries) but not WowPlatter's code. It runs as its own service on the VPS, calls DealGod for market value, and feeds WordPress the tidy data it likes for the storefront.

WowPlatter is the ancestral founder — still running the live shop floor, and the reference spec RecordGod matches before it retires anything. Honour the founder: don't redesign what already works, copy it.

Start here

  • RECORDGOD_PLAN.md — the plan, the map, the keep/drop triage, build order, and the open decisions. Read this first.

The family (sibling repos on this machine)

Repo What it is Talks to RecordGod via
../dealgod The market brain — cross-store value, arbitrage. Its own product. RecordGod calls it (X-API-Key) for value
../PRICEGOD The seller extension (Discogs cockpit). Successor to pliceclogs. Calls RecordGod's wowplatter/v1 contract
../wowplatter The founder — WP/WooCommerce plugin running the live store. RecordGod publishes tidy data to it

Briefs that define the contracts already live in ../PRICEGOD/DEALGOD_BRIEF.md and ../PRICEGOD/WOWPLATTER_BRIEF.md. All three still hold; RecordGod is who fulfils the WowPlatter side of them.

Run it (dev)

python3 -m venv .venv && ./.venv/bin/pip install -r requirements.txt
RECORDGOD_TOKEN=dev-tok ./.venv/bin/uvicorn app.main:app --reload --port 8010
./.venv/bin/python test_smoke.py    # self-check — no DB/infra needed

Postgres schema: psql recordgod < schema.sql.

Live now: GET /wowplatter/v1/ping, GET /wowplatter/v1/inventory/lookup?release_id=. Routes 35 (price / labels / intake) are intentionally 404 — PRICEGOD reads that as "pending" and degrades gracefully, so an undefined route is the correct "not built yet" signal.

Layout

app/
  main.py          FastAPI app + /healthz
  db.py            async SQLAlchemy over asyncpg (twin of DealGod's db.py)
  auth.py          require_token — Bearer; the one place the auth scheme lives
  wowplatter_v1.py the contract router (ping + lookup live)
schema.sql         minimal inventory table, release_id-keyed, store_id seam
test_smoke.py      infra-free self-check

Status: founding — scaffold runs, smoke test green. 2026-06-19.