Skip to main content
The DarkPool frontend is a React 18 + Vite SPA hosted on Walrus Sites in production and served by pnpm --filter @darkpool/frontend dev locally (port 5173).

Stack

Provider tree (main.tsx)

Routes

The bare /event-markets route 301s to /markets. Event markets live as a category tab on the main markets page.

Layout

Layout.tsx is the app shell:
  • Fixed LiveTicker strip at the very top (Pyth Hermes SSE).
  • Sticky header with logo, global market search (submits to /markets?q=, preserving the ?cat tab), nav, and AccountChip.
  • Mobile drawer.
  • <Outlet /> for the active route.
  • Footer.

Configuration

Vite’s envDir: "../../" walks up to the repo-root .env. Frontend-visible vars are prefixed VITE_:

Build for production

Output is packages/frontend/dist/. Deploy to Walrus Sites or any static host.