# webrtcHacks/adapter

Shim to insulate apps from spec changes and prefix differences. Latest adapter.js release:

Repository: https://github.com/webrtcHacks/adapter
Canonical: https://ross.abutalabs.com/products/adapter
Homepage: https://webrtcHacks.github.io/adapter/adapter-latest.js
Language: JavaScript
License: BSD-3-Clause
License Family: permissive
Topics: webrtc, webrtc-adapter, polyfill
Last push: 2026-08-23T14:27:00+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 68, longevity 100
- inputs: {"age_days": 4234, "days_push": 10, "days_rel": 137, "gap_med": 55, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3746, forks 857 (observed 2026-08-28T04:08:16.126969+00:00)

## What it is
adapter.js is a JavaScript shim that insulates WebRTC applications from spec changes and browser prefix/behavior differences. It normalizes the WebRTC API across browsers and exposes browser detection details.

## Use cases
- make WebRTC apps work consistently across Chrome, Firefox, and Safari
- handle browser prefix differences in getUserMedia and RTCPeerConnection
- detect which browser and WebRTC quirks the user needs
- polyfill older browsers with nonstandard WebRTC APIs
- build video chat apps without writing per-browser code

## When to choose
- you are building a WebRTC-based app that must support multiple browsers
- you want a maintained shim instead of hand-rolled browser detection
- you need consistent behavior for getUserMedia, RTCPeerConnection, and related APIs

## When to avoid
- you only target a single modern browser with no legacy quirks
- your app does not use WebRTC at all
- you need a full WebRTC implementation rather than an API shim

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, developer-tools
- domain: web-development, browser-extensions, cross-platform
- platform: browser
- tags: webrtc, polyfill, shim, browser-compatibility, real-time-communication, nodejs, javascript

## Member repositories
- webrtcHacks/adapter (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:16.126969+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-29T18:29:03.414801+00:00, confidence not recorded.
  - readme: https://github.com/webrtcHacks/adapter (fetched 2026-08-28T04:08:16.126969+00:00, sha 44b84ac653d5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
