Mobile Development · head to head
Apache Cordova vs npm

Apache Cordova
Mobile Development
Open source framework for wrapping HTML, CSS and JavaScript apps as mobile apps
- From
- Free
- Free plan
- Yes
The short version
- Apache Cordova is free; npm starts at $7/mo.
- Only Apache Cordova lists targets iOS, Android and Electron; only npm lists package installation.
- Where Apache Cordova falls short: apps render in a web view, so UI is not native by default.
- Where npm falls short: private packages require a paid user or organization account; the free registry publishes publicly only.
How do Apache Cordova and npm differ?
Apache Cordova and npm differ on pricing model (Open-source against Freemium), platforms and category (Mobile Development against Web Development). Only the attributes on which Apache Cordova and npm actually diverge.
| Attribute | Apache Cordova | npm |
|---|---|---|
| Pricing model | Open-source | Freemium |
| Platforms | iOS, Android, Windows, macOS, Linux | Windows, macOS, Linux |
| Category | Mobile Development | Web Development |
| Founded | 2008 | 2014 |
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 6 appear only for Apache Cordova and 20 only for npm. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Apache Cordova
- Single JavaScript API for device functions
- Plugin system managed from the command line
- Targets iOS, Android and Electron
- HTML, CSS and JavaScript app code
- Apache 2.0 open source licence
- Platform feature support documentation
Only in npm
- Package installation
- Dependency management
- Version management
- Script running
- Package publishing
- Security auditing
- Package discovery
- CLI interface
What is each one used for?
Apache Cordova is most often brought in for wrapping an existing web app as a mobile app; npm for package management. The jobs each tool is most often brought in to do.
Apache Cordova
- Wrapping an existing web app as a mobile appnot npm
- Single codebase for iOS and Androidnot npm
- Prototyping mobile apps with web skillsnot npm
- Accessing device features from JavaScript through pluginsnot npm
npm
- Package managementnot Apache Cordova
- Dependency installationnot Apache Cordova
- Project scaffoldingnot Apache Cordova
- Build automationnot Apache Cordova
- Package publishingnot Apache Cordova
- Version controlnot Apache Cordova
Where do Apache Cordova and npm fall short?
Apache Cordova's most cited limit: apps render in a web view, so UI is not native by default. npm's: private packages require a paid user or organization account; the free registry publishes publicly only. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Apache Cordova
- Apps render in a web view, so UI is not native by default
- No built-in UI component library or hosted build service
- Adobe's PhoneGap Build cloud service was discontinued in 2020
- Many platforms listed in older versions, such as BlackBerry and Tizen, are no longer supported
npm
- Private packages require a paid user or organization account; the free registry publishes publicly only
- Publishing needs an account with 2FA enabled or a granular access token with bypass 2FA enabled
- Only scoped packages can be made private (--access=restricted); unscoped packages cannot be restricted
- A package name and version can never be reused once published, even after npm unpublish
How much do Apache Cordova and npm cost?
Apache Cordova is free to use; npm has a free plan, with paid plans from $7/mo. Plan by plan below, from each vendor's own pricing page.
Apache Cordova
FreeNo published plan breakdown. See the Apache Cordova review.
npm
Free- FreeFree
- Unlimited public packages
- Package discovery
- npm CLI
- Pro$7/mo
- Unlimited private packages
- Package analytics
- Support
- Teams$7/mo
- Team management
- Organization packages
- Audit logs
Which should you pick?
Choose Apache Cordova if
- You need single javascript api for device functions.
- You want to start without paying.
- You work on iOS, Android, Windows, macOS, Linux.
- You also want plugin system managed from the command line.
Choose npm if
- You need package installation.
- You want to start without paying.
- You work on Windows, macOS, Linux.
- You also want dependency management.
Questions people ask
- Is Apache Cordova or npm better?
- It depends on the job. Apache Cordova fits wrapping an existing web app as a mobile app; npm fits package management. Apache Cordova starts at Free and npm at Free.
- Which is cheaper, Apache Cordova or npm?
- Apache Cordova starts at Free and npm at Free.
- Does Apache Cordova or npm run on more platforms?
- Apache Cordova runs on iOS, Android, Windows, macOS, Linux. npm runs on Windows, macOS, Linux.
- Can I use Apache Cordova for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Apache Cordova best used for?
- Apache Cordova is most often used for wrapping an existing web app as a mobile app, single codebase for ios and android, prototyping mobile apps with web skills, accessing device features from javascript through plugins. Of those, wrapping an existing web app as a mobile app and single codebase for ios and android are not what npm is typically brought in for.
- What can Apache Cordova do that npm cannot?
- Apache Cordova covers Single JavaScript API for device functions, Plugin system managed from the command line, Targets iOS, Android and Electron, HTML, CSS and JavaScript app code. npm covers Package installation, Dependency management, Version management, Script running.
Answered from the vendors’ own pages
Apache Cordova: Is Apache Cordova free?
Yes. The project describes itself as free and open source under the Apache License 2.0, maintained by the Apache Software Foundation.
Sourcenpm: Is npm free to use?
Installing and sharing public packages on npm is free. Using and sharing private packages requires upgrading your account to a paid plan. Organisations can be public (free) or private (paid).
SourceApache Cordova: How is Cordova related to PhoneGap?
Nitobi Software developed PhoneGap in 2008 and Adobe acquired Nitobi in October 2011. The code was contributed to Apache and renamed Cordova.
Sourcenpm: How do I publish a private package on npm?
For a user-scoped private package you need a paid npm user account. For an organisation-scoped one you need a user account and a paid organisation. Scoped packages are published as private by default under those conditions, and you can set --access=restricted on a scoped package.
SourceApache Cordova: Which platforms does Cordova support?
As of version 11, iOS, Android, Windows 8.1, Windows Phone 8.1, Windows 10 and Electron are listed on Wikipedia. The project site has a page of per-platform feature support.
Sourcenpm: Do I need two-factor authentication to publish to npm?
Publishing requires either a 2FA-enabled account or a granular access token with bypass 2FA enabled. Account-identity and governance actions cannot be done with a bypass-2FA token from August 2026.
Sourcenpm: Can I republish a version after unpublishing it from npm?
No. Publishing fails if the name and version already exist in the registry, and that combination can never be used again even after npm unpublish. You must publish a new version number.
Sourcenpm: Who owns npm?
npm, Inc. runs both the package manager and the registry. It is a subsidiary of GitHub, which acquired it in March 2020 and is itself owned by Microsoft.
SourceRelated pages
More on Apache Cordova
Other head to heads
- Apache Cordova vs React Native
- Apache Cordova vs Ionic
- Apache Cordova vs Flutter
- Apache Cordova vs NativeScript
- Apache Cordova vs Xcode
- Apache Cordova vs Sencha
- Apache Cordova vs Kotlin Multiplatform
- Apache Cordova vs Maestro
- Apache Cordova vs Bitrise
- Apache Cordova vs Codemagic
- Apache Cordova vs .NET MAUI
- Apache Cordova vs EAS Build
- Apache Cordova vs Appcircle
- Apache Cordova vs OneSignal
- Apache Cordova vs Capacitor
- Apache Cordova vs Firebase
- Apache Cordova vs Expo
- Apache Cordova vs Android Studio
- Apache Cordova vs Django
- Apache Cordova vs React
- Apache Cordova vs Node.js
- Apache Cordova vs Apache HTTP Server
- Apache Cordova vs Next.js
- Apache Cordova vs MUI
- Apache Cordova vs Mantine
- Apache Cordova vs Remix
- Apache Cordova vs Netlify
- Apache Cordova vs Nginx
- Apache Cordova vs Bolt.new
- Apache Cordova vs SolidStart
- Apache Cordova vs .NET
- Apache Cordova vs Express.js
- Apache Cordova vs FastAPI
- Apache Cordova vs HTMX
- Apache Cordova vs Base UI
- Apache Cordova vs Turbopack
- npm vs React Native
- npm vs Ionic
- npm vs Flutter
- npm vs NativeScript
- npm vs Xcode
- npm vs Sencha
- npm vs Kotlin Multiplatform
- npm vs Maestro
- npm vs Bitrise
- npm vs Codemagic
- npm vs .NET MAUI
- npm vs EAS Build
- npm vs Appcircle
- npm vs OneSignal
- npm vs Capacitor
- npm vs Firebase
- npm vs Expo
- npm vs Android Studio
- npm vs Django
- npm vs React
- npm vs Node.js
- npm vs Apache HTTP Server
- npm vs Next.js
- npm vs MUI
- npm vs Mantine
- npm vs Remix
- npm vs Netlify
- npm vs Nginx
- npm vs Bolt.new
- npm vs SolidStart
- npm vs .NET
- npm vs Express.js
- npm vs FastAPI
- npm vs HTMX
- npm vs Base UI
- npm vs Turbopack

