Skip to content

Pump Party Docs

This is the front door for Pump Party product specs, backend module docs, the frontend API contract, and data-source reference material.

Use product specs to understand what should exist. Use module docs to understand what the code currently does.

Start Here

NeedRead
Run the local app stackDevelopment Quick Start
Frontend onboardingFrontend Integration Guide
What is shipped and what is nextImplementation Roadmap
Backend code ownershipBackend Overview
Product loop and economy rulesClash Of Clones Product Spec

Quick Start

For local app development, start the backend API and rewritten frontend as separate processes:

bash
cd backend && npm run db:migrate && npm run api
cd frontend && pnpm run dev

See Development Quick Start for install steps, frontend env, optional workers, VitePress docs commands, and verification checks.

For a fuller local runtime, start market ingestion and the remaining background worker group in separate terminals:

bash
cd backend && npm run workers:all
cd backend && npm run ingest:local

workers:all starts prop decisions, mark-to-market, backtests, audition evaluation, and Arena Entry sync in one terminal. Run market ingestion separately with npm run ingest:local for local development or npm run ingest for production.

In production, long-running workers should be deployed as supervised processes, not started manually in one shell. A typical enabled stack is frontend, backend API, full ingestion, prop decisions, mark-to-market, backtests, audition evaluation, and Arena Entry sync. npm run decisions:worker is clone-scoped/debug-oriented; prefer npm run prop:decisions:worker for production prop-account trading unless clone-scoped decisions are intentionally enabled.

Run one instance of each cadence worker unless the worker has explicit lease/concurrency controls. Monitor worker process health through GET /api/v1/internal/health/workers; ingestion source health is tracked separately through ingestion status/check commands.

Product Specs

These docs describe product language, user-facing controls, and target behavior.

Module Docs

These pages are code-aligned backend references. They should answer what a module owns, how its runtime flow works, which files/tables/routes/workers matter, how failures/retries/idempotency behave, known gaps, and tests to run.

ModuleCurrent responsibility
Backend OverviewBackend module map, runtime files, and boundary rules.
User/AuthWallet identity, SIWE challenges, sessions, and user resolution.
Clone ServiceClone records, strategy drafts/versions, entitlements, public profile, moderation.
Data IngestionGlobal market memory, source clients, ingestion runs, and health APIs.
AI TradingStrategy compilation, market context, prompts/model calls, decision runs, proposed actions.
BacktestingReplay job state, metrics, usage policy, artifacts, and cost-control boundaries.
Prop TradingProp accounts, safety gates, paper fills, positions, balances, ledger, snapshots.
EconomyEconomy V1 audition fee/payment facts now; Economy V2 competition tickets/settlement later.
LifecyclePaid audition orchestration now; races, tickets, settlement, and retirement later.
Operations/WorkersWorker entrypoints, migrations, heartbeat health, and run commands.

Frontend API

The top-level API contract is only the frontend/client HTTP boundary. Module-specific contracts live in the owning module docs above.

Data Sources

V1 market context comes from three source families:

SourceStored context
HyperliquidOHLCV, mid prices, funding, liquidity, volatility, positioning, indicators.
PolymarketLive/upcoming market discovery and asset-linked market context.
DefiLlamaTVL/base capital, flow changes, DEX volume, fees, revenue, open interest.

Supporting ingestion references:

Architecture / Design

These docs capture higher-level design decisions and integration direction.

Current Backend Status

AreaStatusRemaining
Data ingestionHyperliquid, Polymarket, DefiLlama storage, scheduled feature channels, and source health APIs are in place.Prod prep tracked in Production Readiness.
Clone ServiceClone create/list/read/update, strategy drafts/versions, graph persistence, layout metadata, entitlement enforcement, public profile, reporting, and moderation are in place.Frontend integration.
AI tradingContext resolver, model/no-op engines, prompt v1, decision rows/actions, dry-run debug, prop-account per-asset cadence/audit, prop-action submission, token usage, artifact store, and topology guardrails are in place.Prod prep tracked in Production Readiness.
BacktestingDurable async jobs, worker queue leases, global/per-user concurrency controls, comparable metrics, daily usage counters, tier-aware quotas, preflight/history APIs, per-run caps, artifact retention, and Prop Trading fill-math reuse are in place behind clone-scoped compatibility routes.Frontend history/comparison UI and final pricing policy.
Prop tradingProp accounts, safety gates, paper fills, positions, balances, mark-to-market, snapshots, admin controls, and decision-action intake are in place.Ops hardening and race-mode result consumption.
Economy V1 (Audition)Audition fee quotes, post-transaction deposit confirmation, purchase idempotency, and entitlement grants are in place.Prod prep tracked in Production Readiness.
Lifecycle V1 (Audition)Paid audition submit/evaluate/retry/void is in place; owner-safe audition routes use backend user auth; due-audition evaluator worker exists.Frontend status/retry UI and production evaluator monitoring are tracked separately.
Competition Manager V1 (Arena Entry)Promotion Queue and Arena membership tables, public read routes, service-token sync, worker cadence, approved-profile admission gates, and admin removal/retirement controls are in place.Backend-complete for Arena Entry V1; race launch belongs to later competition lifecycle work.

Runtime Pipeline

The current audition/runtime path is:

text
1. Global source ingestion
2. SQLite market memory
3. Clone strategy graph compilation
4. Per-strategy asset expansion
5. Deterministic context retrieval
6. Trading prompt assembly
7. Prop-account decision worker creates one due run per asset
8. Decision engine proposes an action for that asset
9. Prop Trading validates or rejects the action with safety gates
10. Valid executable actions paper-fill against latest Hyperliquid mid prices
11. SQLite decision/action/order/fill/position/ledger storage
12. Decision artifact store archives large audit payloads when configured

Local worker commands:

bash
cd backend
npm run workers:all
npm run decisions:run-once -- --clone-id=42 --force
npm run decisions:worker
npm run prop:decisions:run-once
npm run prop:decisions:worker
npm run prop:mark-to-market:once
npm run prop:mark-to-market:worker
npm run backtests:run-once
npm run backtests:worker
npm run lifecycle:auditions:evaluate-due
npm run lifecycle:auditions:worker
npm run lifecycle:arena-entry:run-once
npm run lifecycle:arena-entry:worker