Cross-platform native runtime for web apps. Use for building iOS, Android, and Progressive Web Apps from web codebase.
Use this library when:
npm install @capacitor/core @capacitor/clinpx cap initnpx cap add ios / npx cap add androidnpm run buildnpx cap syncnpx cap open ios| Category | File | Purpose | Condition |
|---|
| Knowledge | Core Concepts | Capacitor fundamentals | Understanding the basics |
| Knowledge | Best Practices | Mobile app patterns | Building native apps |
| Rules | Setup | Project initialization | New project setup |
| Rules | Platforms | iOS, Android, PWA | Adding platforms |
| Rules | Plugins | Native APIs and plugins | Device features |
| Rules | Build and Sync | Web build and sync | Development workflow |
| Rules | Configuration | capacitor.config.ts | App settings |
| Rules | Publishing | App Store and Play Store | Distribution |
# Install
npm install @capacitor/core @capacitor/cli
# Initialize
npx cap init
# Add platforms
npx cap add ios
npx cap add android
# Build and sync
npm run build
npx cap sync
# Open native IDE
npx cap open ios