Repository navigation
Description
Parent epic: #2093
Priority
P0 — First shared Sites and external Widgets release.
User journey
Building agent selects plain HTML or React integration → installs a connection button and player in the existing app → matches the theme → handles connection events → deploys without moving hosting to Recoup.
Acceptance criteria
- Deliver a minimal hosted embed first, then a typed JavaScript SDK and thin React bindings over the same runtime; avoid separate business implementations.
- Support connection-only, player-only when already authorized, and combined layouts; none requires creating a Site or using the Recoup editor.
- Define versioned initialization, event, error, disposal, and reconnect contracts; constrain cross-frame messages and permissions. Document supported frame/CSP/autoplay requirements.
- Provide a public-ID hosted path for static apps and a server-issued-session path where a backend exists; no customer secret key in browser examples.
- Migrate Recoup Sites to this same integration and remove duplicated connection/player behavior; preserve published-site behavior and existing connection recovery.
Blocking dependencies
- [Widgets] Extract Spotify Sign-in and Webplayer backed by shared Fans services #2107
- [Widgets] Separate Spotify sign-in, experience access, and fan signup #2097
These are completion prerequisites, mirrored in GitHub’s blocked-by links. Design and contract work may start earlier. Other coordination references are not blockers.
Validation
Test plain HTML, React, route mount/unmount, narrow/mobile layouts, blocked third-party cookies, keyboard navigation, and multiple player instances. Publish versioned SDK/embed compatibility and upgrade guidance.
Delivery conventions
API owns business logic and billing; HTTP and MCP share it. Chat/embeds/SDKs are clients. Database changes use the database repository PR workflow. Update marketing-owned docs and generated indexes. Use Vercel Workflows for new durable background work. No automatic publication or unbounded customer spending.
Approved category and ownership
The public category is Widgets; its initial named components are Spotify Sign-in and Webplayer. Shared Fans services own identity and connections. Hosted embeds, JavaScript SDK, and React bindings use those same services. No Site or campaign creation is required.
Parent epic #2093 defines Sites, Fans, and Widgets. Use those names in public documentation and MCP descriptions. Preserve existing functional requirements, dependencies, and authorization/billing boundaries.
Pro usage policy acceptance
The hosted widget and media delivery paths must honor the customer usage state defined in #2105, including failed-payment and spending-ceiling fallbacks. Direct asset URLs must not bypass enforcement. Define recovery for new and already-active sessions and never expose private data through public caching. Read epic #2093’s approved usage policy.
Council-approved Widget behavior
- Merely rendering a widget is not a billable fan session. Document meaningful-use initiation and failed-attempt treatment; retain abuse limits for unbilled loads.
- A Site and its own player share the recognized session. Handle refreshes, redirects and multiple instances without duplicate charging. Do not promise anonymous recognition across unrelated domains.
- On budget/payment limits, leave the host website usable and show a clear Widget fallback. Separate campaign features from returning-user sign-in/recovery/disconnect, with independent abuse limits.
- Limit future Recoup services for already-open sessions to a defined finish window and resource budget; an open browser tab is not unlimited capacity. Already-delivered local game code may continue; apply shared direct-media/request/event limits without claiming to stop all local play.
- Follow epic [Epic] Sites: shared Fans API, embeddable Widgets, and release campaigns #2093 and [Sites] Meter Sites operations with credit reservations and spending limits #2105. External Widget included quantities remain open; do not silently consume the Sites-only 100,000 allowance.
Existing Sites migration and host-account integration — P0
- Consume [Fans] Recognize fans across a customer’s campaigns and connected apps #2111/[Widgets] Extract Spotify Sign-in and Webplayer backed by shared Fans services #2107 verified host-sign-in and existing-user-linking contracts; expose status separately from login proof. Agent examples must cover both journeys and must never treat a browser user-ID claim as verified.
- Inventory existing Sites, billing owners, connections, subscribers/consent, saved versions and public asset links before switching Sites to the shared runtime. Distinguish discovered profiles from verified fans; never infer identity verification or broaden old consent.
- Define a repeatable migration and rollback for application, ownership, fan and consent mappings. Preserve published URLs and scoped exports. Preserve recoverable connections where supported; show an explicit reconnect path when safe migration is impossible.
- Bring legacy direct-media links under the documented delivery policy without silently leaving a quota bypass; specify compatible redirects/replacements and rollback behavior.
- Test an existing-site fixture as well as a new Site, including rerunning the migration, partial failure and rollback. Record any customer-visible reconnect or link change before rollout. Schema changes use the database repository PR workflow.
Activity
[-][Sites] Ship a hosted embed and SDK for Recoup connection and player[/-][+][Widgets] Ship hosted embeds and SDK for Spotify Sign-in and Webplayer[/+]sidneyswift commentedon Nov 6, 2026
A hosted player page and Spotify/Apple embeds shipped for release players (#2181 on recoupable/api#993). This is a possible starting point for the hosted embed.
Still open: a Spotify Sign-in widget, a typed JavaScript SDK and React bindings, versioned init/event/error contracts, a server-issued session path, and moving Recoup Sites onto the same integration.