Skip to article
CogniTech.Docs

System architecture

The Next.js presentation and server layers, their stores, and the Elysium execution boundary.

On this page

Presentation and server responsibilities

The Next.js App Router serves the marketing site, documentation, and authenticated workspace. The /agent layout nests Wagmi wallet state and a browser Gloam provider around a shared application shell. React Flow powers the strategy graph editor. Markdown and typed response blocks render in the conversation pane.

Next.js Route Handlers implement authentication, chat and workflow persistence, Claude orchestration, and market-provider access. They validate ownership before accessing private application records. Neon PostgreSQL stores user, conversation, and strategy records. These services do not hold the browser vault’s password or note secrets.

Data destinations

BoundaryInputs crossing itResults
Browser to Next.jsSession cookie, wallet context, screened chat, graph drafts, test statusesSaved records and incremental response events
Next.js to AnthropicSystem policy, bounded screened context, permitted tool definitionsProvider events and usage
Next.js to CoinGeckoSupported asset identifiers and data rangesValidated public market observations
Browser to IndexedDBEncrypted vault and encrypted strategy-local inputsDevice-local recovery state
Browser to wallet, RPC or relayRead requests or operation-specific transaction artifactsPublic observations, submission responses, reconciliation
Data flow by execution environment
  1. Browser conversation
  2. authenticated API
  3. bounded provider request
  1. Authenticated API
  2. ownership-scoped Neon records
  1. Browser-only witnesses
  2. local prover
  3. operation proof
  1. Wallet or relay
  2. Elysium transaction
  3. RPC evidence
  4. encrypted journal

Dependencies and deployment

The installed versions include Next.js 16.5.0, React 19.3.1, Wagmi 3.7.12, Viem 2.58.8, React Flow 12.10.0, Gloam SDK 0.11.1, and the Neon serverless driver 1.2.2. The application needs the standard Next.js server for its handlers, streamed responses, and relay rewrite. HTTPS is expected outside localhost. These version statements describe the repository lockfile.

See Next.js App Router, React Flow, Viem, Wagmi, and Neon.