1.3.0 • Published 5 months ago
@simplepwa/nextjs-pwa-setup v1.3.0
Simple PWA
A CLI tool to seamlessly set up Progressive Web App (PWA) functionality in your Next.js project.
Features
- 🚀 One-command PWA setup for Next.js projects
- 🎨 Interactive CLI with customization options
- 🔧 Automatic package manager detection (npm, yarn, pnpm)
- 📱 Support for both standard and src directory structures
- ⚙️ Configurable asset locations
- 📝 Auto-generated setup documentation
Quick Start
npm i -g @simplepwa/nextjs-pwa-setup
Prerequisites
- Generate your PWA assets at simplepwa.xyz
- Download and keep the generated assets ready
Usage
Navigate to your Next.js project:
cd your-nextjs-project
Run the setup command:
simple-pwa
Follow the interactive prompts to:
- Choose your project structure
- Select assets location
- Configure PWA details (name, colors, etc.)
Place your generated assets (from simplepwa.xyz) in the specified assets directory
What It Does
- Installs required dependencies (next-pwa)
- Creates manifest.json
- Updates Next.js configuration
- Generates detailed setup instructions
- Sets up proper meta tags and configurations
Configuration Options
Project Structure:
- Standard app directory
- src directory with app router
Assets Location:
- public/assets
- public/images
- Custom location
Customizable PWA Details:
- App name
- Short name
- Description
- Theme color
- Background color
Asset Generation
Visit simplepwa.xyz/asset to generate:
- icon-192.png (192x192)
- icon-512.png (512x512)
- icon-maskable-192.png (192x192)
- icon-maskable-512.png (512x512)
License
MIT © Sabir Khan
Links
- Website: simplepwa.xyz
- Issues: GitHub Issues