Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

capacitor

> 前端框架
Open source

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️

16.2K stars0 likes2 views
WebsiteGitHub

About

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️




Capacitor lets you run web apps natively on iOS, Android, Web, and more with a single codebase and cross-platform APIs.

Capacitor provides a cross-platform API and code execution layer that makes it easy to call Native SDKs from web code and to write custom native plugins that your app may need. Additionally, Capacitor provides first-class Progressive Web App support so you can write one app and deploy it to the app stores and the mobile web.

Capacitor comes with a Plugin API for building native plugins. Plugins can be written inside Capacitor apps or packaged into an npm dependency for community use. Plugin authors are encouraged to use Swift to develop plugins in iOS and Kotlin (or Java) in Android.

Getting Started

Capacitor was designed to drop-in to any existing modern web app. Run the following commands to initialize Capacitor in your app:

bash
npm install @capacitor/core @capacitor/cli
npx cap init

Next, install any of the desired native platforms:

bash
npm install @capacitor/android
npx cap add android
npm install @capacitor/ios
npx cap add ios

New App?

For new apps, we recommend trying the Ionic Framework with Capacitor.

To begin, install the Ionic CLI (npm install -g @ionic/cli) and start a new app:

ionic start --capacitor

FAQ

What are the differences between Capacitor and Cordova?

In spirit, Capacitor and Cordova are very similar. Capacitor offers backward compatibility with a vast majority of Cordova plugins.

Capacitor and Cordova differ in that Capacitor:

  • takes a more modern approach to tooling and plugin development
  • treats native projects as source artifacts as opposed to build artifacts
  • is maintained by the Ionic Team 💙😊

See the docs for more details.

Do I need to use Ionic Framework with Capacitor?

No, you do not need to use Ionic Framework with Capacitor. Without the Ionic Framework, you may need to implement Native UI yourself. Without the Ionic CLI, you may need to configure tooling yourself to enable features such as livereload. See the docs for more details.

Contributing

See CONTRIBUTING.md.

Contributors

Made possible by the Capacitor community. 💖

Issues· 141 open

View all issuesOpen on GitHub
  • #8639

    [Bug]: test

    triageUpdated Oct 1, 2026
  • #8620

    [Bug]: cap run ios cannot open iOS simulators on Xcode 27

    triageUpdated Sep 30, 2026
  • #8637

    [Bug]: Android lifecycle events call triggerEvent when the bridge is unavailable

    triageUpdated Sep 30, 2026
  • #8560

    [Bug]: 9.0.0-alpha.6 `Cordova.xcframework` ships a nested `Capacitor.framework`, causing App Store upload validation to fail

    triageUpdated Sep 30, 2026
  • #8623

    [Bug]: SystemBars injects non-zero --safe-area-inset-* when the WebView is not edge-to-edge (regression in 8.5.2)

    triageUpdated Sep 28, 2026
  • #8622

    SystemBars: passthrough IME resize (viewport-fit=cover) ignores View.setPadding()/rewritten insets on some devices

    triageUpdated Sep 24, 2026
  • #8613

    [Bug]: Capacitor 9 alpha builds do not support Android 17's new ACCESS_LOCAL_NETWORK permission

    triageUpdated Sep 24, 2026
  • #8621

    [Bug]: Generated Android and iOS SPM plugin paths break with external virtual store

    triageUpdated Sep 23, 2026
  • #8616

    [Bug]: Plugin call after navigation can be answered before reply proxy is updated

    triageUpdated Sep 21, 2026
  • #8611

    [Bug]: SystemBars resizes the WebView for the keyboard even with windowSoftInputMode="adjustNothing" (regression in 8.3.0)

    triageUpdated Sep 19, 2026

> Tags

TypeScriptandroidcapacitorcordovacross-platform

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架