Skip to main content

๐Ÿ”Œ Extensions

This guide introduces extensions for Scaffold-ETH 2 and explains how to use and create extensions.

What are Extensions?โ€‹

Extensions are modular add-ons for Scaffold-ETH 2 that provide additional functionality or serve as examples for specific features. They offer several benefits:

  • Seamless integration with the base Scaffold-ETH 2 project
  • Quick addition of new features, pages, contracts, or components
  • Compatibility with Scaffold-ETH 2 core updates and improvements

Extensions are compact packages containing specific code (such as a smart contract or UI component) that automatically integrate with the latest version of Scaffold-ETH 2 when initializing a new project via npx. They are starting points for your project, not finished products.

Using Extensionsโ€‹

To use an extension when creating a new Scaffold-ETH 2 project, run:

npx create-eth@latest -e {github-username}/{extension-repo-name}:{branch-name}

The {branch-name} is optional. If not specified, it uses the default branch.

E.g.: npx create-eth@latest -e ChangoMan/charts-extension