Skip to content

What is TEVM?

TEVM is a thin TypeScript/JavaScript host wrapper around ZEVM and pluggable WebAssembly EVM backends. It embeds a complete Ethereum execution node inside your Node.js or browser process and exposes it through viem clients, ethers v6 providers, an event emitter, HTTP/WebSocket/IPC JSON-RPC servers, a CLI, and an MCP server.

Traditional local Ethereum nodes (Anvil, Hardhat Network, Ganache) run as external daemon processes over localhost TCP sockets. Embedding the node in-process changes three trade-offs:

  1. Zero process orchestration: Tests, scripts, build plugins, and AI agents instantiate an isolated chain with one function call (createMemoryClient()). Parallel test workers never fight over TCP ports.
  2. Native speed without leaving TypeScript: Execution, state, crypto, and JSON-RPC routing run in Zig (ZEVM + Voltaire + Guillotine Mini) over Node-API in Node.js — or in compiled WebAssembly (zevm.wasm) inside browsers and workers.
  3. One typed surface from Solidity to UI: Combine in-process execution with tevm/bundler/* so .sol imports carry ABI types, NatSpec hover, and optional deployable bytecode across Node.js and browser bundles.
Need Recommended choice
Fast in-process TypeScript/Vitest integration tests with viem or ethers v6 TEVM (createMemoryClient())
Client-side transaction simulation or interactive sandbox in a browser or worker TEVM (@evmts/zevm/browser WASM)
Standalone Solidity unit & fuzz testing written purely in Solidity Foundry (forge test)
Standalone CLI devnet with no JS/TS host ZEVM (zevm) or Anvil
Giving an AI coding agent isolated compile/deploy/trace EVM sessions TEVM MCP (@tevm/mcp)

The evmts/tevm monorepo owns the native host runtime (@tevm/node, @tevm/memory-client, @tevm/actions, @tevm/server, @tevm/http-client, @tevm/mcp, @tevm/common, @tevm/errors, @tevm/jsonrpc, @tevm/predeploys, @tevm/utils, @tevm/viem, and the umbrella tevm package).

Companion repositories own specialized layers and re-integrate cleanly via tevm/*:

Layer Repository Docs
Native Zig node runtime evmts/zevm zevm.sh/docs
Zig Ethereum primitives & state evmts/voltaire voltaire-docs-evmts.vercel.app
Minimal spec-first EVM interpreter evmts/guillotine-mini mini.tevm.sh
Solidity bundler plugins & TS LSP evmts/tevm-bundler bundler.tevm.sh
Ethers v6 provider evmts/tevm-ethers ethers.tevm.sh
CLI evmts/tevm-cli cli.tevm.sh
Public coding factory smithers.sh/evmts/tevm smithers.sh/evmts/tevm/docs

Follow updates on X (@tevmtools), ask questions in the TEVM Telegram group, or open issues and PRs on GitHub and Smithers Cloud.