create-solana-pwa
v1.0.2
Published
Create a new Solana Mobile PWA project with MWA integration
Maintainers
Readme
create-solana-pwa
Create a new Solana Mobile PWA project with Mobile Wallet Adapter (MWA) integration.
Quick Start
npx create-solana-pwa my-dapp
cd my-dapp
npm run devUsage
npx create-solana-pwa <project-name> [options]Options
| Option | Description |
|--------|-------------|
| --network <net> | Default network: mainnet, devnet, testnet (default: mainnet) |
| --npm | Use npm as package manager (default) |
| --yarn | Use yarn as package manager |
| --pnpm | Use pnpm as package manager |
| --no-git | Skip git initialization |
| --help | Show help message |
Examples
# Create with default settings
npx create-solana-pwa my-dapp
# Create with devnet as default network
npx create-solana-pwa my-dapp --network devnet
# Create using yarn
npx create-solana-pwa my-dapp --yarn
# Create without git initialization
npx create-solana-pwa my-dapp --no-gitWhat's Included
- Next.js 16 with App Router
- TypeScript configuration
- Mobile Wallet Adapter integration
- PWA with service worker caching
- Framer Motion animations
- Safe area handling for mobile devices
- Bottom navigation with 48dp touch targets
- Pull-to-refresh gesture support
- TWA scripts for building Android APK (Solana dApp Store ready)
Building TWA (Android App)
After creating your project:
cd my-dapp/twa
./scripts/init-twa.shThis interactive script will:
- Configure your app (name, package ID, host URL)
- Generate signing keystore
- Update Digital Asset Links (assetlinks.json)
- Build signed APK ready for Solana dApp Store
Documentation
Full documentation: https://solana-pwa-docs.vercel.app
Links
License
MIT
