# Lision/WKWebViewJavascriptBridge

🌉 A Bridge for Sending Messages between Swift and JavaScript in WKWebViews.

Repository: https://github.com/Lision/WKWebViewJavascriptBridge
Canonical: https://ross.abutalabs.com/products/wkwebviewjavascriptbridge
Language: Swift
License: MIT
License Family: permissive
Topics: swift, javascript, bridge, wkwebviewjavascriptbridge, wkwebview, webkit, hybrid, js, jsbridge, webviewjavascriptbridge
Last push: 2026-06-21T01:45:25+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 35, longevity 100
- inputs: {"age_days": 3147, "days_push": 74, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1328, forks 147 (observed 2026-08-28T04:04:23.749133+00:00)

## What it is
A lightweight Swift library that provides a message bridge between native iOS code and JavaScript running inside a WKWebView. It lets developers register and call handlers on both sides to build hybrid apps without dealing with the underlying messaging mechanics.

## Use cases
- send messages between swift and javascript in wkwebview
- build hybrid ios apps with native-webview communication
- call javascript functions from native ios code
- register native handlers callable from web content
- replace uiwebview javascript bridge with a faster wkwebview one

## When to choose
- you are building an iOS app with WKWebView and need two-way native-JS messaging
- you want a lightweight, non-intrusive bridge with high performance
- your app targets iOS 9+ and uses Swift 3.2 through 5

## When to avoid
- you need to support UIWebView or older iOS versions
- you are building for Android or cross-platform webviews
- you need a bridge with advanced features like plugin ecosystems or promise-based APIs

## Facets
- artifact type: library
- maturity: stable
- function: sdk, middleware
- domain: mobile-development, web-development
- platform: -
- tags: jsbridge, wkwebview, hybrid-apps, native-javascript-bridge, webkit, ios, swift, mobile

## Member repositories
- Lision/WKWebViewJavascriptBridge (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:23.749133+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:45:48.077192+00:00, confidence not recorded.
  - readme: https://github.com/Lision/WKWebViewJavascriptBridge (fetched 2026-08-28T04:04:23.749133+00:00, sha bb429339414b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
