w3m add

Add a component to your existing project.

w3m add <component>

Arguments

ArgumentRequiredDescription
<component>YesComponent name from the registry. Example: token

Available Components

ComponentTierDescription
tokenfreeERC-20 fungible token

Process

Registry Lookup

Looks up the component in the @web3marketlabs/components registry. If not found, shows available components.

Parameter Prompts

Prompts for component-specific parameters (e.g. token name, symbol, initial supply).

Render Template Files

Renders Handlebars templates with your parameter values and copies them to your project.

Update kit.config.ts

Adds the component name to the components array in your config.

Install Solidity Dependencies

Installs required Solidity dependencies via forge install.

Install npm Dependencies

Installs required npm packages via your package manager.

Run Codegen

Runs the codegen pipeline to update TypeScript bindings.

Examples

# Add an ERC-20 token
w3m add token