Skip to content

Comments

feat(share): add human-readable bundle page with JSON fallback#618

Merged
benjaminshafii merged 1 commit intodevfrom
feat/share-service-design-parseable
Feb 20, 2026
Merged

feat(share): add human-readable bundle page with JSON fallback#618
benjaminshafii merged 1 commit intodevfrom
feat/share-service-design-parseable

Conversation

@benjaminshafii
Copy link
Member

@benjaminshafii benjaminshafii commented Feb 20, 2026

Summary

  • add content negotiation to GET /b/:id: browser-style requests now get a human-readable OpenWork Share page, while machine clients keep receiving JSON
  • preserve parseability for OpenWork imports with explicit ?format=json, Accept: application/json, and embedded machine-readable metadata (meta tags + application/json script payload)
  • add ?format=json&download=1 support, document the behavior in the share-service README, and add unit tests for format detection/rendering helpers

Testing

  • node --test services/openwork-share/api/b/render-bundle-page.test.js
  • packaging/docker/dev-up.sh (stack booted successfully)
  • docker compose -p openwork-dev-b0c92812 -f packaging/docker/docker-compose.dev.yml down

Notes

  • full end-to-end publish/fetch against Vercel Blob was not run locally because BLOB_READ_WRITE_TOKEN is not available in this environment.
  • no feature screenshots are attached for the same reason: there is no live local bundle ID without Blob-backed publish.

@vercel
Copy link

vercel bot commented Feb 20, 2026

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

Project Deployment Actions Updated (UTC)
openwork-software Ready Ready Preview, Comment Feb 20, 2026 5:50am

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

@benjaminshafii benjaminshafii merged commit b2532a6 into dev Feb 20, 2026
10 checks passed
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