How wevm/wagmi works
Project type and purpose
• This is an open-source monorepo library ("wagmi") providing reactive Ethereum primitives.
• It exposes a core TypeScript API (@wagmi/core), UI-framework wrappers (React hooks and Vue composables), a CLI scaffolding tool (wagmi-cli and create-wagmi), wallet connectors, test harnesses, playgrounds, and a static docs site.
File structure
• Top-level directories:
• packages/cli – the command-line interface
• packages/core – the core API (actions, query, transports, connectors)
• packages/connectors – wallet connector implementations
• packages/react – React hooks wrapper
• packages/vue – Vue composables wrapper
• packages/create-wagmi – project scaffolding tool + templates
• packages/test & register-tests – testing utilities
• playgrounds/… – example apps using different frameworks
• site/ & site/.vitepress – documentation site sources
• Build & config: pnpm-workspace.yaml, tsconfig.json, vitest.config.ts, CI workflows under .github.
README for additional insights
• Purpose: “Reactive primitives for Ethereum apps”
• Library is modular, published to npm; docs at wagmi.sh; encourages contributions.