Dari

Introduction

Dari, WebView bridge communication inspector for Android

What is Dari?

Dari is a debug inspector library for Android WebView bridge communication, inspired by Chucker. It captures and displays all WebView↔App bridge messages in a persistent notification and an in-app UI without changing your existing bridge logic.

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
  • Status filter to focus on errors or in-progress calls
  • Export captured messages as 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
dariFull implementation with UI, Room DB, notifications
dari-noopNo-op stub for release builds

On this page