blustdp-web-v
v1.0.0
Published
A full website for simulating a token launch: **Node.js/Express backend** running the AMM + vesting + agent-based market engine, and a **React (Vite) frontend** where you configure tokenomics and see results live — price chart, market cap, drawdown, and p
Downloads
155
Readme
Blustdp Launch Simulator — Full Web App
A full website for simulating a token launch: Node.js/Express backend running the AMM + vesting + agent-based market engine, and a React (Vite) frontend where you configure tokenomics and see results live — price chart, market cap, drawdown, and per-archetype (whale/bot/retail) performance.
blustdp-web/
├── server/ Express API (ESM) — wraps the simulation engine
│ └── src/
│ ├── index.js API routes: /api/simulate, /api/default-config
│ ├── defaultConfig.js Starting tokenomics shown in the UI
│ └── simulator/ The simulation engine (AMM, vesting, agents)
└── client/ React + Vite frontend
└── src/
├── App.jsx Main layout / state
└── components/
├── ConfigPanel.jsx Token / market / simulation inputs
├── AllocationEditor.jsx Editable vesting bucket table
├── ConcentrationBar.jsx Insider-vs-public allocation visual
├── StatStrip.jsx Key result metrics
├── PriceChart.jsx Price-over-time chart (recharts)
└── AgentTable.jsx Whale/bot/retail PnL breakdownRunning it
You need two terminals — one for the backend, one for the frontend.
Terminal 1 — backend:
cd server
npm install
npm start
# API listening on http://localhost:4000Terminal 2 — frontend:
cd client
npm install
npm run dev
# App running on http://localhost:5173Open http://localhost:5173 in your browser. The Vite dev server proxies
/api/* requests to the backend on port 4000 (see client/vite.config.js),
so you don't need to configure CORS URLs manually in dev.
The page auto-runs a simulation on load using the default tokenomics, then lets you edit any parameter — total supply, initial liquidity, AMM fee, number of simulated weeks, agent population size, random seed, and every allocation bucket's percentage / TGE unlock / cliff / vesting length — and re-run.
Building for production
cd client
npm run build # outputs static files to client/distServe client/dist with any static host, and run server behind it (or
point the frontend's API base URL at wherever you deploy the backend —
see client/src/api.js).
API reference
GET /api/default-config
Returns the starting tokenomics config used to pre-fill the UI.
POST /api/simulate
Body: a full simulator config (see server/src/defaultConfig.js for shape).
Returns price history, volume history, market cap history, and an
agent-performance summary.
POST /api/simulate/compare
Body: { configA, configB } — runs two configs and returns
{ resultsA, resultsB } in one call, useful for comparing e.g. a risky
vs. a defensible allocation side by side.
All endpoints validate input (allocation bounds, positive numbers, sane
limits on ticks/agent count) and return { errors: [...] } with a 400
status on invalid input.
What the concentration bar is showing you
The segmented bar on the results page is a direct visualization of the insider-concentration risk we discussed: each allocation bucket rendered proportionally, so you can see at a glance how much of the supply sits in liquidity (public, tradable) versus team/investor/treasury buckets (insiders). The wider the non-liquidity segments relative to liquidity, the more fragile the launch is to any single wallet selling — this is the same math that produced the ~82% crash in the earlier CLI example.
Disclaimer
This is a simplified model for planning and stress-testing assumptions — not a price predictor, and not financial or legal advice. Real launches involve regulatory, exchange-listing, and social dynamics this tool does not model. Consult qualified legal counsel on securities classification before launching.
