Clicking Zampler in the title bar opens About: the wordmark, version,
licence, a link to the source and the author. Modal's title is optional,
so About's header has only the close button.
The version is desktop/package.json's. build:backend stamps it into
lib.AppVersion with -ldflags -X, the backend returns it from /app, and
build.yml sets the package version to the commit before building, so
the shell, the backend and saved projects agree.
Closes#64
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Register every endpoint as a Huma operation on the stdlib mux, with
summaries, descriptions and tags, and serve the document at
/api/openapi.json (interactive docs at /api/docs under --dev). Errors are
now RFC 9457 problem details; internal/rest is removed.
cmd/openapi prints the document without a backend. The frontend generates
its types from it with openapi-typescript (not committed) and calls the API
through openapi-fetch, replacing dto.d.ts and api.ts. CI and the README run
and document the generator.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace the server app with the core of the local-first desktop app
described in #24. The Go backend owns all state and serves a JSON API and
the UI on a loopback port; it runs in a browser with --dev until the
Electron shell lands in phase 2.
- Data folder in the OS's conventional location (--data-dir overrides),
holding app.sqlite3, local.json, cache/ and projects/<id>/.
- SQLite helpers with WAL, per-database migrations and VACUUM INTO.
Rows use UUIDv7 IDs and sync columns.
- Disks: a kind registry with a traversal-safe local kind. Global disks
are read-only unless a test write succeeds; project disks are writable.
- Index: scan jobs reconcile each disk into files + FTS5 (trigram),
with fingerprints, background content hashing, WAV/AIFF metadata and
an fsnotify watcher for incremental rescans.
- Jobs runner with per-disk deduplication, limits and cancellation.
- Projects: one open at a time, edited in a working copy and saved by
VACUUM INTO + rename, with debounced autosave and crash recovery.
Search merges the global and project indexes with cursor pagination.
- API on stdlib ServeMux behind a Host/Origin loopback guard. Normal mode
listens on a random port and prints PORT=<n>.
- UI: splash, project browser and project shell (name, tempo, save,
autosave, recovery), keeping the existing design language.
- Remove the Docker image, gorilla/mux, goqu and the old explorer UI.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This Gitea instance reports as GHES and rejects the @actions/artifact v2
protocol, so upload-artifact@v4 / download-artifact@v4 fail. Roll the
workflow, Dockerfile and .dockerignore back to the pre-split state
(dd6bb1a): one build-and-push job, no artifact handoff.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Rename the CI binary and its artifact to zampler-amd64, and make the
Dockerfile arch-agnostic via ARG TARGETARCH / COPY zampler-$TARGETARCH.
Keeps the pipeline single-arch for now but makes adding an arm64 leg a
smaller change later.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
build-binary compiles the frontend and Go binary (with the module and
build caches) and uploads it as an artifact; build-image downloads the
artifact and builds/pushes the Docker image from it.
The executable bit is restored after download since upload-artifact
does not preserve it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The Go compile is dominated by modernc.org/libc (~400k lines of
generated Go from modernc.org/sqlite). Inside `docker build` on an
ephemeral runner it recompiled cold every push; on a 1 CPU / 1 GB
runner that took ~10 minutes.
Move the frontend and Go builds into the workflow, where actions/cache
persists ~/.cache/go-build across runs so libc is compiled once. The
Dockerfile is now just an alpine wrapper around the prebuilt
CGO_ENABLED=0 static binary.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>