Skip to main content
@eco-incorp/sauce includes a TypeScript library, the sauce command, an MCP server and agent skills. This reference lists the TypeScript exports by import path. For a working example, start with the TypeScript guide. To choose between the library, terminal and agent tools, read the SDK overview.

Requirements

Follow Installation for Node.js requirements, package setup and optional runtime dependencies. The package pins the SauceScript compiler, @eco-incorp/sauce-compiler, at exactly 2.6.1 and installs it as a dependency. The SDK pins that compiler with the engine and Kitchen releases its output runs on, one release set per compiler version; more than one compiler version can share an engine and Kitchen, and Pot addresses follow the Kitchen release. Every SDK builder that names an engine refuses one that the release sets record only for other compilers (Compiler and engine pairing). @modelcontextprotocol/sdk, zod and litesvm are optional peer dependencies: sauce mcp loads the first two, and a Solana simulation or a /testing Solana chain loads litesvm. For the sauce command, sauce runtime install installs them; a test that runs Solana needs litesvm installed in its own project.

Subpaths

Every import path is a suffix of @eco-incorp/sauce; . is the package root. The package’s exports map defines this list. routes, token, deposit and contracts are namespaces of the root, not subpaths.
Each chain is a named export of the root. Importing the package puts nothing on globalThis. Bare names such as USDC and UniswapV3 are SauceScript syntax, which routes.compileSauceProgram, the sauce command, the MCP server and actions documents resolve before the compiler runs; in TypeScript the same registry entries are on the chain export (Base.USDC). See Names and Compiler or SDK.

Where each import runs

Every import runs in Node.js and in a browser except two, which are Node.js only:
  • /svm/engine-artifacts returns file system paths to the packaged binaries.
  • /testing starts a local anvil or LiteSVM chain.
In a browser, call await ready() once before anything that compiles: /compiler, routes.compileSauceProgram, the token and deposit builders, /recipes, /actions and /svm/verify. In Node.js nothing needs it. /verify never loads the compiler; it depends on viem only. No import carries an RPC endpoint. Every client you build takes its connection from you. The sauce command is the exception: it falls back to public endpoints of its own, which no import exposes.

How the reference is organized

Each sidebar group is a namespace or subpath, with one page per source module. An entry gives the export’s name, its kind, the import paths it is exported from, its doc comment and its TypeScript declaration. Declarations longer than 6,000 characters (large ABI constants) are truncated with a marker. Declarations re-exported from dependencies (viem, @solana/kit, the compiler) are listed by name on the page of the subpath that re-exports them. Protocol subpaths share one shape, shown for uniswap-v3. Release addresses are listed once, on Deployments.

Next steps

TypeScript

Compile a program for a chain and build its cook from TypeScript.

routes

compileSauceProgram, encodeEntryArguments, buildSauceEvmCall.

Compiler package

compile, its options, CompileResult, errors and ready().

Deployments

Engine, Kitchen and Router addresses of the pinned release.