Adds mediaauth/mediacore/carriernodeclient/syncsocket packages under backend/, extracting everything genuinely cross-service (auth, shared media/tags/playlists/sync/profile routes, the CarrierNode HTTP client, the playback-sync websocket hub) out of the old media-backend monolith. The 7 media-family services (CarrierNode, ContentScanner, CraftStudio, MediaViewer, MediaKiosk, ModerationHub, ProjectConfigurator) each now have their own independent frontend and backend built on this library, instead of sharing one generic multi-flavor webui/media-backend selected by a MEDIA_SERVICE/VITE_MEDIA_APP flag. That generic app and binary (webui/, media-backend/) are now dead and removed here, along with their dedicated CI workflows. sync-consumers.ps1 and README.md updated to describe the new architecture. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Shared Go backend packages
The Go packages under this directory hold infrastructure shared by the services, not application-specific SQL or HTTP handlers.
config— environment string, required value, boolean, integer, and duration helpers.postgres— validatedDATABASE_URLconfiguration,pgxpoolcreation/ping, transaction wrapper, and PostgreSQL error classification.auth— shared bcrypt policy, secure token generation/hashing, account/session schema, and account/session persistence.authclient— HTTP client andnet/httpmiddleware for services that adopt the centralized AuthServer instead of embeddingauthagainst their own database.migrate— embedded filesystem adapter for Goose migrations.logshipper— client adapter for OmniLogger (Web/OmniLogger): batches and ships log entries centrally while mirroring the same human-readable output and Debug/Info/Warn/Error/Critical/Audit/*Ctx method surface as each project's local internal/logging package.
Run go test ./... and go vet ./... from this directory. The module path is
repos.gfranz.ch/Gabriel20xx/shared/backend; change it if the shared folder is
hosted under a different repository path.
Application-specific table definitions and HTTP behavior stay in the service. That lets a service reuse reliable connection/auth plumbing without coupling its domain model to another project.