Skip to content

Real-time order notifications in the dashboard via SSE/WebSockets #161

Description

@wagmiiii

Repo context. accensa-app is the off-chain half of Accensa — the merchant back-office for x402 sellers on Stellar. Three workspace packages matter: apps/web (Next.js dashboard and the indexer at src/app/api/sync), packages/sdk (@accensa/sdk), and apps/demo-merchant. The Soroban contracts live in accensa-contracts.

🟢 Unblocked. Indexer already parses events, just needs to broadcast them.

Problem

Merchants have to manually refresh the dashboard to see new orders. They should receive real-time updates when a customer completes a purchase.

What to build

  • In (or a separate route), implement a Server-Sent Events (SSE) endpoint.
  • When the indexer processes a new order event, broadcast it to connected SSE clients.
  • Update the dashboard frontend to listen for these events and display a toast notification.

Acceptance criteria

  • SSE endpoint successfully streams new order events.
  • Dashboard displays a real-time toast notification when an order occurs.
  • New orders are automatically prepended to the order list without refresh.

Contact & Support

Metadata

Metadata

Labels

Stellar WaveDrips Wave Programarea: webWork in webcomplexity: medium150 pts — standard feature touching multiple parts

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions