Self-hosting overview
What you run when you host Elysium Morning: one Next.js server with an in-process chain indexer and a file-backed store, a TLS reverse proxy, and nothing else.
In production (MODE=live, Elysium mainnet, chain id 99901), Elysium Morning is a single Next.js server. It serves the landing page, the app, these docs and the API, runs a chain indexer in-process that reads the deployed contracts over JSON-RPC, and persists the indexer cursor and off-chain data as JSON files under DATA_DIR. There is no database to provision. The server never signs transactions: users sign them in their own wallets.
| Piece | What it is |
|---|---|
| Web server | Next.js 16 output: "standalone" server (node server.js), port 3030 |
| State | JSON documents in DATA_DIR (the indexer's log cursor and indexed state in chain-<chainId>.json, profile names, API keys), written atomically. The funds and protocol state themselves live on-chain |
| Chain | Outbound JSON-RPC to Elysium (RPC_URL); the indexer follows the contract events and resumes from its cursor after a restart |
| Prices | Outbound HTTPS to the Hyperliquid info API (server-side only; browsers never call third parties) |
| Live feed | SSE at /api/stream, from the same process |
| Proxy | nginx (or any TLS proxy) in front, with SSE buffering disabled |
#Quick start
git clone <repo> elysium-morning && cd elysium-morning
cp .env.example .env # then set MODE=live, SESSION_SECRET, SITE_URL and the contract addresses
docker compose up -d --build # http://127.0.0.1:3030
curl -s http://127.0.0.1:3030/api/healthSomething unclear or wrong on this page? Report it.Updated Dec 1, 2026 · v1.0