A modern React Router website for The DAO Fund, built with Deno, React 19, and TailwindCSS.
- Deno >= 2.0.0
deno iStart the development server with hot reload:
deno task devBuild the application for production:
deno task buildServe the built application:
deno task start| Command | Description |
|---|---|
deno task typecheck |
Run TypeScript type checking |
deno task lint |
Run Deno linter |
| Variable | Required | Description |
|---|---|---|
ETH_RPC_URL |
Yes | Ethereum JSON-RPC endpoint URL (e.g., from DRPC, Alchemy, Infura, or a local node). Used to fetch treasury balances from the blockchain. |
BEACON_API_URL |
Yes | Beacon API endpoint URL (e.g., from DRPC, Alchemy?, Infura?, or a local node). Used to fetch validator balances from the beacon chain. |
ETH_RPC_URL=https://lb.drpc.live/ethereum/<your-api-key>
BEACON_API_URL=https://lb.drpc.live/eth-beacon-chain/<your-api-key>Note: Deno automatically loads
.envfiles. You can also pass environment variables directly when running:ETH_RPC_URL=https://... BEACON_API_URL=https://... deno task start
When deploying to Deno Deploy, use the following settings:
| Setting | Value |
|---|---|
| Install command | deno i |
| Build command | deno task build |
| Pre-deploy command | - |
| Build timeout | 5 minutes |
| Build memory limit | 3GiB |
| Entrypoint | server.ts |
| Args | - |
Make sure to configure the ETH_RPC_URL and BEACON_API_URL environment variables in your Deno Deploy project settings under Settings → Environment Variables.
├── api/ # API route handlers (treasury, health)
├── app/
│ ├── components/ # React components
│ ├── context/ # React context providers
│ ├── data/ # Static data
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utility functions
│ ├── routes/ # React Router routes
│ └── root.tsx # Root layout component
├── public/ # Static assets
├── build/ # Production build output
├── server.ts # Deno server entrypoint
├── deno.json # Deno configuration
└── vite.config.ts # Vite configuration
See LICENSE for details.