Dari

Introduction

Dari, WebView bridge communication inspector for Android and iOS

What is Dari?

Dari is a debug inspector for WebView bridge communication on Android and iOS. On Android it captures and displays all WebView↔App bridge messages in a persistent notification and an in-app UI inspired by Chucker, without changing your existing bridge logic. On iOS, the Dari Swift package sends them to the desktop app, and the optional DariUI library shows them on the device; see iOS.

Features

  • Real-time capture of Web→App and App→Web bridge messages
  • Three-state tracking: IN_PROGRESS, SUCCESS, ERROR
  • Dark mode support
  • Shake-to-open gesture to launch the inspector
  • Filters by tag, status and text, plus direction on the desktop
  • Response time stats per handler, with slow handlers highlighted
  • Export captured messages as text or JSON
  • Optional Protocol Buffers inspection with an app-provided decoder
  • No-op module (dari-noop) for release builds with no runtime overhead
  • Fire-and-forget support for one-way bridge calls
  • Same public API surface across debug and release artifacts

How It Works

Create a DariInterceptor with Dari.createInterceptor() and call it from your existing bridge callbacks. Each debug call is stored as a MessageEntry with request/response data, timestamps, and status. The inspector UI shows all entries in real time.

Modules

ModulePurpose
dari-coreData models and interfaces
dariDebug implementation: inspector UI, notifications, desktop connection. Pulls in dari-runtime (capture and Room storage)
dari-noopNo-op stub for release builds

See Module Structure for the full list.

On this page