@latticexyz/dev-tools
TypeScript icon, indicating that this package has built-in type declarations

2.0.12 • Public • Published

MUD Dev Tools

Developer tools to view and explore and interact with MUD data within your app.

Note that if you create a new MUD app using our pnpm create mud tool, MUD Dev Tools will already be included for you.

Installation

npm install @latticexyz/dev-tools

Usage

// https://vitejs.dev/guide/env-and-mode.html
if (import.meta.env.DEV) {
  const { mount: mountDevTools } = await import("@latticexyz/dev-tools");
  mountDevTools({
    config,
    publicClient,
    walletClient,
    latestBlock$,
    storedBlockLogs$,
    worldAddress,
    worldAbi,
    write$,
    // if you're using recs
    recsWorld,
  });
}

Dependents (1)

Package Sidebar

Install

npm i @latticexyz/dev-tools

Weekly Downloads

955

Version

2.0.12

License

MIT

Unpacked Size

4.68 MB

Total Files

6

Last publish

Collaborators

  • holic
  • alvarius
  • l_udens