import type { ReactNode } from 'react'
function DiagramFrame({
title,
caption,
viewBox,
children,
}: {
title: string
caption: string
viewBox: string
children: ReactNode
}) {
return (
{title}
{caption}
)
}
export function CoreStackDiagram() {
return (
MemoryClient
viem public · wallet · test · tevm
Standalone Actions
tevm/actions (browser-safe)
RPC Servers
HTTP · WebSocket · Unix IPC
ZevmEngine (@tevm/node) — Serialized Node-API Bridge
request() · rpc(json) · events (request, response, block, close) · ready() · close()
NATIVE ZIG ENGINE
ZEVM
NodeRuntime, mempool, mining
Receipts, filters, fork, JSON-RPC
Voltaire
Accounts, code, storage slots
Crypto, RLP, precompiles
Guillotine Mini
EVM bytecode interpreter
Gas, hardforks, debug_traceCall
)
}
export function CoreCallFlowDiagram() {
return (
tevmCall(params)
eth_call · read-only · optional stateOverride
{'{ rawData }'} (state untouched)
addToMempool: true
eth_sendTransaction · waits for tevmMine() in manual mode
{'{ txHash }'} (pending in txpool)
addToBlockchain: true
sends + mines block immediately
{'{ txHash, receipt }'} (canonical)
)
}
export function CoreForkDiagram() {
return (
1. Local Write Overlay
Height starts at 0
All mutations & mined
blocks stay local
Checked first
2. Lazy Read Cache
Misses fetch once from
upstream at blockNumber
Hits stay in native RAM
No full chain copy
3. Upstream RPC
Remote network or
separate OS process
Never forked from the
same JS event loop
)
}
export function QaBox({ question, children }: { question: string; children: ReactNode }) {
return (
)
}
export function WatchOut({ title = 'Watch out', children }: { title?: string; children: ReactNode }) {
return (
)
}