Softwr

Mobile Development · head to head

Apache Cordova vs Bazel

Apache Cordova logo

Apache Cordova

Mobile Development

Open source framework for wrapping HTML, CSS and JavaScript apps as mobile apps

From
Free
Free plan
Yes
Bazel logo

Bazel

Developer Tools

Multi-language build system with fast, correct incremental builds

From
Free
Free plan
Yes

The short version

  • Bazel is an open-source build and testing system.
  • Both are free.
  • Only Apache Cordova lists targets iOS, Android and Electron; only Bazel lists fast incremental builds.
  • Where Apache Cordova falls short: apps render in a web view, so UI is not native by default.
  • Where Bazel falls short: steep learning curve for developers unfamiliar with build systems.

How do Apache Cordova and Bazel differ?

Apache Cordova and Bazel differ on platforms and category (Mobile Development against Developer Tools). Only the attributes on which Apache Cordova and Bazel actually diverge.

Attributes where Apache Cordova and Bazel differ
AttributeApache CordovaBazel
PlatformsiOS, Android, Windows, macOS, LinuxWindows, macOS, Linux
CategoryMobile DevelopmentDeveloper Tools

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).

Not yet recorded: founded for Bazel.

Which features does each one have?

They share no listed features; 6 appear only for Apache Cordova and 7 only for Bazel. 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 Bazel

  • Fast incremental builds
  • Multi-language support
  • Distributed caching
  • Parallel execution
  • Dependency analysis
  • Starlark extensibility
  • Cross-platform support

What is each one used for?

Apache Cordova is most often brought in for wrapping an existing web app as a mobile app; Bazel for building large monorepos with hundreds of interdependent projects. The jobs each tool is most often brought in to do.

Apache Cordova

  • Wrapping an existing web app as a mobile appnot Bazel
  • Single codebase for iOS and Androidnot Bazel
  • Prototyping mobile apps with web skillsnot Bazel
  • Accessing device features from JavaScript through pluginsnot Bazel

Bazel

  • Building large monorepos with hundreds of interdependent projectsnot Apache Cordova
  • Multi-language projects requiring consistent build semanticsnot Apache Cordova
  • Organizations requiring reproducible builds and hermetic test executionnot Apache Cordova
  • Teams implementing distributed CI with shared build artifact cachingnot Apache Cordova

Where do Apache Cordova and Bazel fall short?

Apache Cordova's most cited limit: apps render in a web view, so UI is not native by default. Bazel's: steep learning curve for developers unfamiliar with build systems. 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

Bazel

  • Steep learning curve for developers unfamiliar with build systems
  • Initial setup complexity; requires BUILD files and Bazel configuration
  • Verbose error messages can be difficult to debug for new users
  • Smaller community and fewer third-party integrations vs enterprise tools

How much do Apache Cordova and Bazel cost?

Apache Cordova is free to use; Bazel is free to use. Plan by plan below, from each vendor's own pricing page.

Apache Cordova

Free

No published plan breakdown. See the Apache Cordova review.

Bazel

Free
  • Bazel (open source)Free

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 Bazel if

  • You need fast incremental builds.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want multi-language support.

Questions people ask

Is Apache Cordova or Bazel better?
It depends on the job. Apache Cordova fits wrapping an existing web app as a mobile app; Bazel fits building large monorepos with hundreds of interdependent projects. Apache Cordova starts at Free and Bazel at Free.
Which is cheaper, Apache Cordova or Bazel?
Apache Cordova starts at Free and Bazel at Free.
Does Apache Cordova or Bazel run on more platforms?
Apache Cordova runs on iOS, Android, Windows, macOS, Linux. Bazel 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 Bazel is typically brought in for.
What can Apache Cordova do that Bazel 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. Bazel covers Fast incremental builds, Multi-language support, Distributed caching, Parallel execution.

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.

Source
Bazel: Does Bazel support distributed builds across CI infrastructure?

Yes, Bazel supports distributed execution and remote caching, allowing build work to be distributed across multiple machines and CI agents.

Source
Apache 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.

Source
Bazel: What languages can be built with Bazel?

Bazel has built-in support for Java, C++, Go, Python, and Android/iOS development, with additional language support available through custom rules and community extensions.

Source
Apache 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.

Source
Bazel: Can I use Bazel for small projects or is it only for large monorepos?

While Bazel excels at handling large projects, it can be used for smaller codebases. However, the setup overhead may not be justified for very small or simple projects.

Source
Share

Related pages

Other head to heads