npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cordova-plugin-servo-webview

v1.0.0

Published

Servo WebViewEngine for Cordova

Downloads

162

Readme

Servo for Cordova

[!WARNING]
This plugin is built to demonstrate the usage of Servo in Cordova. Due to some workarounds that involve an embedded web server and WebSockets it's not secure and SHOULD NOT BE USED IN PRODUCTION apps. Read more under Limitations

With this plugin for Apache Cordova you can try Servo as an alternative engine on Android (for now).

Why?

Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.

From servo.org

Servo looks promising as a new engine to power Cordova and other WebView uses cases independently of the WebView the host operating system provides.

How to use

You can add this to any Cordova project with:

cordova plugin add cordova-plugin-servo-webview

Because app assets are served with a local web server you need to adjust this in config.xml:

<content src="http://localhost:5000" />

Status

This is the first stage of development. Which means this plugin uses a build from Servos main branch without any modifications and just the current APIs. It works with some workarounds.

When Servo adds two important features 1. Custom URL scheme handler & 2. evaluateJavaScript to their Java API this plugin can get rid of limitations as outlined below and work pretty similar to AndroidWebView without adding insecure hacks to Cordova.

%%{init: {
  "theme": "base",
  "themeVariables": {
    "cScale0": "#22c55e",
    "cScale1": "#ef4444",
    "cScale2": "#ef4444",
    "cScaleLabel0": "#052e16",
    "cScaleLabel1": "#450a0a",
    "cScaleLabel2": "#450a0a"
  }
}}%%
timeline
    title Maturity
    Servo TODAY: Legacy bridge mode with WebSocket workarounds
        : Local webserver for assets
    ServoView adds Custom ProtocolHandlers : Use custom scheme API for local file loading
        : Remove webserver for file serving
    ServoView adds evaluateJavascript: Replace WebSocket bridge mode
        : Leverage two-way JavaScript bridge
        : Remove web server entirely

Limitations & Workarounds

Servo and it's ServoView Java implementation allow embedding Servo in Android apps pretty neatly. Servo lacks some APIs that make it a perfect replacement for Android WebView today. Therefore, some workarounds are part of this version that have some serious drawbacks:

  1. The Cordova ↔ Native bridge uses a legacy bridge mode and quite a few hacks to leverage a local WebSocket server for communication between the WebView and native code. It's slow, unreliable and insecure, unfortunately.
  2. Servo does not have something similar to WebViewAssetLoader to "host" local files for the WebView therefore this plugin has a local web server to host the assets from the www directory.

Updating the Servo version

If you want to update the Servo version yourself check out the README in /libs directory where and how to get the latest build of Servo.

Funding

This project is funded through NGI Mobifree Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program. Learn more at the NLnet project page.