Skip to content

feat(api): public read API for partners, plus integration guide - #27

Merged
jayteemoney merged 1 commit into
mainfrom
feat/public-read-api-cors
Sep 24, 2026
Merged

jayteemoney merged 1 commit into
mainfrom
feat/public-read-api-cors

Conversation

@jayteemoney

Copy link
Copy Markdown
Owner

What

  • CORS on /api/*. Partner sites can now read stream data from the browser (integration Level 3). Read-only, GET-only, no credentials.
  • docs/INTEGRATION_GUIDE.md. How a team uses StackStream from their own product: the app, contract calls with Stacks.js, and the read API.

Verified

  • npm run build (webpack) passes.
  • Local next start: GET with an Origin header returns the CORS headers, OPTIONS preflight returns 204, the home page carries no CORS headers.
  • Guide code examples type-check against the installed SDK versions.

Note

The bare domain 308-redirects to www at the Vercel domain level, and that redirect carries no CORS headers, so the guide tells integrators to use https://www.stackstream.xyz.

🤖 Generated with Claude Code

https://claude.ai/code/session_011DndgWvvL6sUfzTgmC67Wq

Adds CORS headers to /api/* so partner dashboards can read stream data
from the browser. The routes are public, GET-only and take no
credentials, so a wildcard origin exposes nothing the chain doesn't.
Verified locally: GET returns the headers, preflight returns 204, pages
are unchanged.

Adds docs/INTEGRATION_GUIDE.md covering the three ways in: using the
app, calling the contracts with Stacks.js (register-dao, create-stream,
track-stream, management calls, post-conditions, contract rules, error
codes), and reading the API. Code examples type-check against
@stacks/connect v8 and @stacks/transactions v7.

Claude-Session: https://claude.ai/code/session_011DndgWvvL6sUfzTgmC67Wq
@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stackstream Ready Ready Preview Sep 24, 2026 12:41pm UTC

@jayteemoney
jayteemoney merged commit 2de40ad into main Sep 24, 2026
2 of 4 checks passed

This branch was successfully deployed

1 active deployment
Preview — b046d76c Deployed Sep 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant