Monorepo containing Amp example apps, templates, and the Create Amp CLI utility for generating Amp-powered applications.
amp-templates/
├── packages/
│ └── create-amp/ # CLI utility for generating Amp applications
├── templates/ # Templates used by Create Amp CLI
│ ├── amp/ # Amp configuration templates
│ ├── common/ # Shared frontend files
│ ├── contracts/ # Smart contract templates
│ ├── data-layer/ # Data layer templates (Arrow Flight, Amp Sync)
│ ├── docker-compose/ # Docker Compose configurations
│ ├── examples/ # Example-specific templates
│ ├── nextjs/ # Next.js framework templates
│ └── vite/ # Vite framework templates
└── examples/
└── nextjs-electricsql/ # Next.js with Electric SQL integration
Generate a new Amp-powered application:
# Using npx
npx @edgeandnode/create-amp my-app
# Or with pnpm
pnpm create @edgeandnode/amp my-app
# Or with npm
npm create @edgeandnode/amp my-appSee the Create Amp README for detailed usage instructions.
- Node.js >= 22.0.0
- pnpm >= 10.19.0
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run Create Amp in development mode
cd packages/create-amp
pnpm devFrom the repository root:
# Build all packages
pnpm build
# Clean all build artifacts
pnpm clean
# Format code
pnpm format
# Lint code
pnpm lintCLI tool to scaffold Amp-powered web applications with various technology stacks and examples.
Features:
- 🚀 Multiple Frameworks: Next.js or React (Vite)
- 📊 Data Layer Options: Arrow Flight or Amp Sync
- 🗄️ Database ORMs: ElectricSQL or Drizzle (when using Amp Sync)
- ⚡ State Management: Effect-based patterns
- 🎨 Modern UI: Tailwind CSS & shadcn/ui components
- 🔗 Blockchain Integration: Anvil local testnet setup
Templates are used by the Create Amp CLI to generate new projects. They are organized by:
- Framework: Next.js, Vite
- Data Layer: Arrow Flight (direct queries), Amp Sync (PostgreSQL sync)
- Examples: Wallet app, blank starter
Full-featured example applications demonstrating different Amp integration patterns.
Demonstrates the usage of the ampsync crate to sync data to PostgreSQL, then using Electric SQL to reactively sync the amp dataset data and make it available in a Next.js UI.
Tech Stack:
- Docker (PostgreSQL, Anvil, Amp, Ampsync, Electric SQL)
- Next.js app
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
UNLICENSED