|
1 | | -# metamask-sdk-examples |
| 1 | +# MetaMask SDK Examples Monorepo |
| 2 | + |
| 3 | +This monorepo contains various example applications demonstrating the integration of MetaMask SDK across different frameworks and platforms. Built with Turborepo for efficient development and build processes. |
| 4 | + |
| 5 | +## 🚀 Getting Started |
| 6 | + |
| 7 | +Clone and install dependencies: |
| 8 | + |
| 9 | +```sh |
| 10 | +git clone <repository-url> |
| 11 | +cd metamask-sdk-examples && pnpm install |
| 12 | +``` |
| 13 | + |
| 14 | +## 📦 Repository Structure |
| 15 | + |
| 16 | +``` |
| 17 | +metamask-sdk-examples/ |
| 18 | +├── examples/ # Example applications |
| 19 | +│ ├── react/ # React.js integration |
| 20 | +│ ├── next/ # Next.js integration |
| 21 | +│ ├── vue/ # Vue.js integration |
| 22 | +│ └── vanilla/ # Vanilla JavaScript integration |
| 23 | +├── packages/ # Shared configurations and utilities |
| 24 | +│ ├── eslint-config/ # Shared ESLint configurations |
| 25 | +│ └── tsconfig/ # Shared TypeScript configurations |
| 26 | +``` |
| 27 | + |
| 28 | +## 🎯 Available Examples |
| 29 | + |
| 30 | +Each example in the `examples/` directory demonstrates MetaMask SDK integration in different frameworks and scenarios: |
| 31 | + |
| 32 | +- **React Example**: Modern React application showcasing hooks and components |
| 33 | +- **Next.js Example**: Server-side rendering and static site generation |
| 34 | +- **Vue Example**: Vue.js integration example |
| 35 | +- **Vanilla JS**: Pure JavaScript implementation without frameworks |
| 36 | + |
| 37 | +## 🛠 Development |
| 38 | + |
| 39 | +### Running Individual Examples |
| 40 | + |
| 41 | +To run a specific example: |
| 42 | + |
| 43 | +```sh |
| 44 | +cd examples/<example-name> |
| 45 | +pnpm dev |
| 46 | +``` |
| 47 | + |
| 48 | +### Adding New Examples |
| 49 | + |
| 50 | +1. Create a new directory in `examples/` |
| 51 | +2. Copy the example template (if available) |
| 52 | +3. Implement the MetaMask SDK integration |
| 53 | +4. Update this README with the new example details |
| 54 | + |
| 55 | +## 🔧 Technical Stack |
| 56 | + |
| 57 | +- **Build System**: Turborepo |
| 58 | +- **Package Manager**: pnpm |
| 59 | +- **Language**: TypeScript |
| 60 | +- **Linting**: ESLint |
| 61 | +- **Formatting**: Prettier |
| 62 | + |
| 63 | +## 📚 Documentation |
| 64 | + |
| 65 | +Each example includes its own README with: |
| 66 | +- Specific setup instructions |
| 67 | +- Implementation details |
| 68 | +- Best practices |
| 69 | +- Common issues and solutions |
| 70 | + |
| 71 | +## 🤝 Contributing |
| 72 | + |
| 73 | +We welcome contributions! To add a new example: |
| 74 | + |
| 75 | +1. Fork the repository |
| 76 | +2. Create a new branch |
| 77 | +3. Add your example |
| 78 | +4. Submit a pull request |
| 79 | + |
| 80 | +## 📝 License |
| 81 | + |
| 82 | +This project is licensed under the MIT License - see the LICENSE file for details. |
| 83 | + |
| 84 | +## 🔗 Useful Links |
| 85 | + |
| 86 | +- [MetaMask SDK Documentation](https://docs.metamask.io/sdk/) |
| 87 | +- [Turborepo Documentation](https://turbo.build/repo/docs) |
| 88 | +- [Report Issues](https://github.com/yourusername/metamask-sdk-examples/issues) |
0 commit comments