# marcuswestin/WebViewJavascriptBridge

An iOS/OSX bridge for sending messages between Obj-C and JavaScript in UIWebViews/WebViews

Repository: https://github.com/marcuswestin/WebViewJavascriptBridge
Canonical: https://ross.abutalabs.com/products/webviewjavascriptbridge
Homepage: http://marcuswest.in
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2024-08-01T09:17:17+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5485, "days_push": 762, "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 14314, forks 2953 (observed 2026-08-28T04:11:06.743246+00:00)

## What it is
An Objective-C library providing a message bridge between native iOS/OSX code and JavaScript running inside WKWebViews, UIWebViews, and WebViews. It enables bidirectional handler registration and data passing between native and web layers of hybrid apps.

## Use cases
- send messages between objective-c and javascript in a webview
- call native code from javascript in an ios app
- build hybrid ios apps with webview communication
- bridge wkwebview and native handlers
- pass data between osx webview and native app
- register javascript handlers callable from objective-c

## When to choose
- you are building an iOS or OSX app with embedded web content that needs two-way native/JS messaging
- you want a battle-tested bridge used by apps like Facebook Messenger
- you need a lightweight CocoaPods-installable WebView bridge

## When to avoid
- you are targeting Android or cross-platform frameworks with their own bridges
- you are building a modern app where a framework like React Native or Capacitor fits better
- you need active feature development rather than maintenance

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, middleware
- domain: mobile-development, web-development, developer-tools
- platform: cpp
- tags: objective-c, webview, javascript-bridge, hybrid-apps, wkwebview, native-js-interop, ios, macos, swift

## Member repositories
- marcuswestin/WebViewJavascriptBridge (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:06.743246+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-29T17:12:39.394945+00:00, confidence not recorded.
  - readme: https://github.com/marcuswestin/WebViewJavascriptBridge (fetched 2026-08-28T04:11:06.743246+00:00, sha 70807b9651ba)
  - homepage: http://marcuswest.in (fetched 2026-08-29T08:06:10.302247+00:00, sha 56ad69995a13)
- Data as of 2026-08-30T08:39:29.467469+00:00.
