awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
pedant avatar

pedant/safe-java-js-webview-bridge

0
View on GitHub↗
2,415 stars·565 forks·JavaScript·2 viewspedant.github.io/2014/07/04/webview-js-java-interface-research↗

Safe Java Js Webview Bridge

This library provides a secure communication bridge for Android applications, enabling interaction between native Java code and web-based JavaScript interfaces within a WebView. It facilitates the invocation of native system methods from web scripts and manages the exchange of data across the language boundary.

The framework utilizes a prompt-based interception layer to validate method signatures before execution, ensuring that only authorized native code is triggered. It supports complex data exchange through structured serialization and provides a mechanism for mapping native methods to web interfaces, allowing for dynamic execution via runtime inspection.

The system handles asynchronous operations by maintaining a registry of web-side function references. This allows native background tasks to trigger specific JavaScript callbacks upon completion, supporting integrated workflows in hybrid mobile applications.

Features

  • WebView Bi-Directional Interfaces - Provides a secure communication bridge for Android WebView integration in hybrid mobile applications.
  • Asynchronous Message-Passing Bridges - Implements a secure message-passing bridge for structured communication between native and web environments.
  • Cross-Language Data Exchange - Ensures secure cross-language communication by validating requests and managing data exchange between environments.
  • Prompt Interception & Modification - Intercepts communication requests via a prompt mechanism to enforce security and validate method signatures.
  • Prompt-Based Interceptors - Validates method signatures through a secure prompt mechanism to prevent unauthorized native code execution.
  • Complex Data Serialization - Serializes complex native objects and primitive types for exchange with web-based scripts.
  • Asynchronous Callbacks - Enables background native tasks to trigger JavaScript callbacks in the web view upon completion.
  • Cross-Language Marshallers - Marshals complex native objects into JSON to ensure data compatibility across the language boundary.
  • Hybrid App Development - Facilitates hybrid app development by bridging native system functionality with web-based interfaces.
  • Dynamic Method Invocation - Uses runtime reflection to dynamically map and execute native methods with enforced access controls.
  • JavaScript Interop - Bridges native Android code and web content for complex data exchange and cross-environment logic.
  • Native Callbacks - Handles asynchronous native tasks by triggering JavaScript callbacks in the browser context.
  • Bidirectional WebView Bridges - Maps native system functionality to web interfaces using secure serialization and controlled signatures.
  • Native Method Mappings - Maps native system methods to web interfaces for secure invocation from scripts.

Star history

Star history chart for pedant/safe-java-js-webview-bridgeStar history chart for pedant/safe-java-js-webview-bridge

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Curated searches featuring Safe Java Js Webview Bridge

Hand-picked collections where Safe Java Js Webview Bridge appears.
  • WebView bridge library

Frequently asked questions

What does pedant/safe-java-js-webview-bridge do?

This library provides a secure communication bridge for Android applications, enabling interaction between native Java code and web-based JavaScript interfaces within a WebView. It facilitates the invocation of native system methods from web scripts and manages the exchange of data across the language boundary.

What are the main features of pedant/safe-java-js-webview-bridge?

The main features of pedant/safe-java-js-webview-bridge are: WebView Bi-Directional Interfaces, Asynchronous Message-Passing Bridges, Cross-Language Data Exchange, Prompt Interception & Modification, Prompt-Based Interceptors, Complex Data Serialization, Asynchronous Callbacks, Cross-Language Marshallers.

What are some open-source alternatives to pedant/safe-java-js-webview-bridge?

Open-source alternatives to pedant/safe-java-js-webview-bridge include: marcuswestin/webviewjavascriptbridge — WebViewJavascriptBridge is a communication layer for sending bidirectional messages between native Objective-C code… tjanczuk/edge — This project is a polyglot runtime bridge and interop framework designed to execute .NET and Node.js code within a… happydog-intj/jsbridge — JsBridge is a bidirectional communication layer for Android that synchronizes data and triggers actions between a… apache/cordova-android — This project is an Android hybrid mobile framework that enables the development of applications running web content… dop251/goja — Goja is a JavaScript engine and ECMAScript compliant interpreter implemented entirely in Go. It serves as an embedded… wendux/dsbridge-android — DSBridge-Android is a communication framework and JavaScript bridge for Android that enables bidirectional function…

Open-source alternatives to Safe Java Js Webview Bridge

Similar open-source projects, ranked by how many features they share with Safe Java Js Webview Bridge.
  • marcuswestin/webviewjavascriptbridgemarcuswestin avatar

    marcuswestin/WebViewJavascriptBridge

    14,321View on GitHub↗

    WebViewJavascriptBridge is a communication layer for sending bidirectional messages between native Objective-C code and JavaScript within iOS and macOS web views. It serves as an interoperability toolkit for synchronizing data and executing callbacks between native Apple platform applications and their embedded web content. The project provides a messaging interface that exposes native functions to the web environment and triggers JavaScript handlers from native application code. It enables the registration of named handlers in native code that can be invoked by JavaScript to request device a

    Objective-C
    View on GitHub↗14,321
  • tjanczuk/edgetjanczuk avatar

    tjanczuk/edge

    5,439View on GitHub↗

    This project is a polyglot runtime bridge and interop framework designed to execute .NET and Node.js code within a single operating system process. It functions as a cross-runtime execution engine and in-process scripting host, enabling bidirectional communication and data exchange between the Common Language Runtime and JavaScript environments to eliminate cross-process communication overhead. The framework distinguishes itself by providing a system for bidirectional asynchronous callbacks and automatic data marshalling of binary buffers and serializable values between different managed obje

    C++
    View on GitHub↗5,439
  • happydog-intj/jsbridgehappydog-intj avatar

    happydog-intj/JsBridge

    9,912View on GitHub↗

    JsBridge is a bidirectional communication layer for Android that synchronizes data and triggers actions between a native Java application and an embedded web view. It serves as an interface for calling Java methods from JavaScript and executing JavaScript functions from native Android code. The project features an asynchronous bridge queue that stores pending function calls in a readiness buffer, ensuring requests are executed only after the connection between the native and web environments is stable. It utilizes callback identifier mapping to route asynchronous native responses back to the

    Java
    View on GitHub↗9,912
  • apache/cordova-androidapache avatar

    apache/cordova-android

    3,786View on GitHub↗

    This project is an Android hybrid mobile framework that enables the development of applications running web content inside a native Android container. It functions as a cross-platform build system that packages shared web assets into native binaries, allowing developers to access device hardware and system APIs via JavaScript. The framework utilizes a native device API bridge and a plugin architecture to expose hardware sensors and system-level functionality not available through standard browser interfaces. It employs a manifest-driven orchestration system to manage application metadata, bra

    JavaScript
    View on GitHub↗3,786
  • See all 30 alternatives to Safe Java Js Webview Bridge→