Open source native runtime that turns web apps into iOS, Android and PWA apps
open sourceMITfree
Capacitor is Ionic's open source native runtime for web apps: you drop it into an existing web app built with JavaScript, HTML and CSS (with any framework) and ship it as a native iOS and Android app and as a Progressive Web App from one codebase. Its plugin APIs give the web code access to device features such as the camera, file system, geolocation and notifications, you can write your own plugins in Swift or Java, and a compatibility layer runs existing Cordova plugins, which makes it a migration path from Cordova. The full native SDKs stay available, and the result deploys to the app stores and the web. It's the runtime under Ionic Framework, but works without it.
Problems it solves
- turn my existing web app into an iOS and Android app without rewriting it
- call native device features like the camera and push notifications from JavaScript
- migrate my Cordova app to something maintained
Features
- iOS, Android and PWA from one web codebase
- works with any web framework
- core plugins: camera, file system, geolocation, notifications and more
- custom native plugins in Swift or Java
- Cordova plugin compatibility
- full access to native SDKs
- CLI for adding and syncing native projects
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Capacitor does.
- React Native Learn once, write anywhere
- Tauri Build small, fast desktop and mobile apps with a web frontend and a Rust backend.
- Hotwire Native A web-first framework for building native mobile apps
- Ionic Framework Open source mobile UI toolkit for cross-platform apps from one web codebase
