> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cooket.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Frontend

> Next.js application, wallet boundary, and canonical-data behavior.

`apps/web` is a Next.js 16 application using React 19, Wagmi, Reown AppKit, Viem, TanStack Query, and Lightweight Charts.

The wallet boundary is external and user-controlled. Reown supplies wallet connection UI, while Wagmi/Viem provide chain reads, simulation, and transaction requests. The browser checks Arc Testnet, the active signer, canonical addresses, explicit financial-execution configuration, deadlines, slippage, balances, and allowances before write flows.

TanStack Query obtains canonical projections from the API. Token lifecycle polling is bounded and uses indexed graduation state. SSE data stays page-local and provisional; it is not written into the canonical query cache.

The chart is rendered with `lightweight-charts`. `CooketTradingViewDatafeed` provides a compatible datafeed boundary for potential licensed renderer integration, but the repository does not contain official TradingView Charting Library assets.

Production builds validate the canonical application and API origins. Public variables are browser-visible and must never contain secrets.
