FastBridge is a single Vite SPA that serves a landing page and route-driven bridge experiences such as /ethereum, /arbitrum, and /megaeth.
pnpm install
pnpm devUseful commands:
pnpm build
pnpm preview
pnpm check
pnpm fixThe production bundle is written to apps/root/dist.
- Shared application code:
packages/fast-bridge-app/src/** - Chain registry:
packages/fast-bridge-app/src/config/chain-settings.ts - Optional RPC registry:
packages/fast-bridge-app/src/config/rpcs.json - Route/runtime context:
packages/fast-bridge-app/src/providers/runtime-context.tsx - Root Vite configuration:
vite.config.ts
Chain routes all render the same shared application. Chain identity and behavior come from the active CHAIN_REGISTRY entry through useRuntime().
- Implement shared behavior once under
packages/fast-bridge-app/src/**. - Keep chain differences in
CHAIN_REGISTRYandChainFeatures. - Read runtime values through
useRuntime(); do not import a static per-chain config. - Do not introduce chain-specific environment variables or wrapper applications.