Skip to content

feat: Embrowse integration page + cloud infra#85

Open
tnunamak wants to merge 2 commits intomainfrom
feat/embrowse-demo
Open

feat: Embrowse integration page + cloud infra#85
tnunamak wants to merge 2 commits intomainfrom
feat/embrowse-demo

Conversation

@tnunamak
Copy link
Member

Summary

  • Embrowse page at /embrowse with Plaid Link-style postMessage protocol for iframe/popup communication
  • Auto-detects credentialless iframe support (Chrome/FF), falls back to popup (Safari) for COOP/COEP compatibility
  • Mock Embrowse with Instagram schema data for local testing
  • Cloud-server infrastructure (Express, CDP relay, auth, invoke routes) for Docker-hosted deployment
  • HTTP runtime abstraction (src/lib/runtime/) so the app works in both Tauri and browser contexts
  • Gaps doc: auth on data writes (Volod aware), iframe-parent protocol (implemented here)

Test plan

  • npm run dev → navigate to /embrowse → mock loads in iframe
  • Click "Simulate scrape" → see progress messages → status shows "complete"
  • TypeScript compiles clean (npx tsc --noEmit)
  • Existing tests pass (npx vitest run)

🤖 Generated with Claude Code

tnunamak and others added 2 commits March 12, 2026 14:17
Add Embrowse iframe/popup integration page with Plaid Link-style
postMessage protocol for account.vana.org to host browser-based
data scraping. Includes mock Embrowse for local testing and
cloud-server infrastructure for Docker-hosted deployment.

- src/lib/embrowse-protocol.ts: typed postMessage contract
- src/pages/embrowse/: page + hook with credentialless iframe
  fallback to popup for Safari (COOP/COEP compatibility)
- public/mock-embrowse.html: mock with Instagram schema data
- cloud-server/: Express server, CDP relay, auth, invoke routes
- src/lib/runtime/: HTTP runtime abstraction for cloud mode
- docs/embrowse-data-ingestion-gaps.md: open questions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Resolve mock-embrowse URL to absolute (fixes Tauri URL parsing)
- Force iframe mode for dev/demo (mock is same-origin)
- Add Embrowse nav item for easy navigation during testing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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