# Data flow — QwikDev/qwik

> Canonical page: https://codevetter.com/unpack/qwik/data-flow

# Data flow — QwikDev/qwik

Scanned commit 8eb4589be115eb8f2dabfd12c107dcc23647caec (2026-10-02). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Qwik transforms application code into addressable functions and associates runtime references with build manifests. SSR emits HTML plus container and state metadata, which the client consumes when execution resumes. Router transports action and loader results through Qwik serialization, while Insights converts validated telemetry into statistical database updates. Scaffolding follows a separate filesystem path that stages template merges and optionally invokes a package manager.
- Optimizer extraction records immutable symbol names, hashes, canonical filenames, byte offsets, body text, and QRL callee metadata for subsequent pipeline phases. — [packages/ts-optimizer/src/optimizer/extraction/extract.ts#L57-85](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/ts-optimizer/src/optimizer/extraction/extract.ts#L57-L85)
- resolveManifest merges the built and supplied manifests, then maps symbol hashes to symbol names and bundle filenames. — [packages/qwik/src/server/ssr-render.ts#L115-136](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/server/ssr-render.ts#L115-L136)
- SSR openContainer emits paused state, runtime version, build base, locale, manifest hash, and instance hash as container attributes. — [packages/qwik/src/server/ssr-container.ts#L637-661](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/server/ssr-container.ts#L637-L661)
- emitStateData directs the serialization context into the SSR writer inside a qwik/state script; eager-resume roots add an idle-event QRL. — [packages/qwik/src/server/ssr-container.ts#L1342-1364](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/server/ssr-container.ts#L1342-L1364)
- The documented state representation alternates type identifiers and encoded values, references shared roots, resolves promise forward references, and restores objects through allocation and inflation. — [packages/qwik/src/core/shared/serdes/serialization.md#L3-29](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/core/shared/serdes/serialization.md#L3-L29)
- DomContainer parses qwik/state, preprocesses roots, chooses eager restoration or wrapDeserializerProxy, processes segment state when enabled, and marks the container resumed. — [packages/qwik/src/core/client/dom-container.ts#L180-211](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/core/client/dom-container.ts#L180-L211)
- Event attributes encode chunk, symbol, and capture IDs; dispatch resolves the chunk relative to q:base and invokes the handler with capture IDs as its this value. — [packages/qwik/src/qwikloader.ts#L318-354](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/qwikloader.ts#L318-L354) [packages/qwik/src/qwikloader.ts#L212-235](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/qwikloader.ts#L212-L235)
- SignalImpl.value reads register effect subscriptions and back references; changed writes update the stored value and call scheduleEffects. — [packages/qwik/src/core/reactive-primitives/impl/signal-impl.ts#L61-107](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/core/reactive-primitives/impl/signal-impl.ts#L61-L107) [packages/qwik/src/core/reactive-primitives/impl/signal-impl.ts#L115-128](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/core/reactive-primitives/impl/signal-impl.ts#L115-L128)
- submitAction sends FormData or JSON to ?qaction=ID and decodes the response with _deserialize; actionHandler serializes result and optional loaderHashes. — [packages/qwik-router/src/runtime/src/use-endpoint.ts#L25-73](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik-router/src/runtime/src/use-endpoint.ts#L25-L73) [packages/qwik-router/src/middleware/request-handler/handlers/action-handler.ts#L107-122](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik-router/src/middleware/request-handler/handlers/action-handler.ts#L107-L122)
- fetchRouteLoaderData constructs a manifest-versioned loader URL, optionally forwards the page path, caches requests by URL and full-path header, and handles redirects and aborts. — [packages/qwik-router/src/runtime/src/route-loaders.ts#L264-318](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik-router/src/runtime/src/route-loaders.ts#L264-L318)
- Insights parses incoming JSON with InsightsPayload, normalizes symbol names, buckets delay/latency/timeline measurements, and passes application/manifest identifiers into updateEdge and updateRoutes. — [packages/insights/src/routes/api/v1/[publicApiKey]/post/index.tsx#L8-58](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/insights/src/routes/api/v1/%5BpublicApiKey%5D/post/index.tsx#L8-L58) [packages/insights/src/root.tsx#L25-41](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/insights/src/root.tsx#L25-L41)
- createFromStarter writes initial package metadata and README, stages base and optional starter integrations through updateApp, and applies their filesystem writes through commit callbacks. — [packages/create-qwik/src/create-app.ts#L62-94](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/create-qwik/src/create-app.ts#L62-L94) [packages/qwik/src/cli/add/update-app.ts#L32-76](https://github.com/QwikDev/qwik/blob/8eb4589be115eb8f2dabfd12c107dcc23647caec/packages/qwik/src/cli/add/update-app.ts#L32-L76)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
