Install dependencies from the repository's root directory (this will also set up each workspace):
yarn
Some examples have .env.local.example
files. Copy their content and create new .env.local
files in the same directory.
Without these yarn:build
command will fail. To create your ProjectID head to cloud.walletconnect.com
Please execute all commands from the monorepo root to avoid issues with yarn workspaces. Running build
command is required if this is your first time setting up the monorepo.
yarn build
- Build all packages.yarn dev
- Build and watch all packages for changes.yarn dev:nextjs
- Run nextjs example (has to be ran together withyarn dev
in a separate terminal tab).yarn dev:nextjs-standalone
- Run nextjs standalone example (has to be ran together withyarn dev
in a separate terminal tab).yarn: dev:cra
- Run create-react-app example (has to be ran together withyarn dev
in a separate terminal tab).yarn dev:html
- Run plain html/js example (has to be ran together withyarn dev
in a separate terminal tab).yarn dev:html-standalone
- Run plain html/js standalone example (has to be ran together withyarn dev
in a separate terminal tab).yarn dev:lab
- Run laboratory example (has to be ran together withyarn dev
in a separate terminal tab).yarn lint
- Run the linter.yarn prettier
- Run prettier.yarn typecheck
- Run typescript checks.
chains
- Helper packages for managed chain workflowsexamples
- Contains examples for all supported use cases, acts as testing groundpackages
core
- State, proxy between ui and chain packagesui
- Web-components based ui of web3modalcomponents
- Basic ui componentspartials
- Complex ui pieces composing multiple components and accessing coreviews
- Full web3modal views
react
- React wrapper on top of core and uihtml
- Vanilla html / js wrapper on top of core and ui