Skip to content
LogoLogo

Reference overview

This section documents the modules the example apps export. It is generated from the JSDoc in the source — if a signature here disagrees with the code, the code is authoritative and the docs are a bug.

For the Tevm API itselfcreateMemoryClient, actions, Contract, the bundler plugins — see tevm.sh and node.tevm.sh. Nothing in this repository re-exports Tevm.

Package names

App directorypnpm package nameDocumented at
apps/bun@tevm/example-bunBun example API
apps/esbuild@tevm/example-esbuildesbuild example API
apps/mud@tevm/example-mudMUD guide
apps/next@tevm/example-nextNext.js guide
apps/svelte-etherssvelte-ethersSvelteKit guide
apps/vite@tevm/example-viteVite guide

All six are private: true. They are not published to npm; the package names exist so pnpm --filter can address them.

Tevm packages the examples depend on

PackageUsed byPurpose
tevmbun, next, svelte-ethers, vite, esbuildMeta-package: tevm/contract, tevm/memory-client, and friends
@tevm/contractall except mud/nextContract objects and typed action creators
@tevm/jsonrpcbun, nexthttp transport factory for fork configuration
@tevm/ethersvite, svelte-ethersEthers Contract typed from an ABI
@tevm/bun-pluginbun, esbuildSolidity imports under Bun
@tevm/esbuild-pluginbun, esbuildSolidity imports under esbuild
@tevm/vite-pluginesbuild, vite, svelte-ethersSolidity imports under Vite/Rollup
@tevm/ts-pluginbun, esbuild, vite, svelte-ethersEditor and tsc resolution of .sol imports
@tevm/configvitetevm.config.json loading
@tevm/solcvitesolc bindings for the in-browser editor

See Shared conventions for the rules every app follows.