drengr_flutter_sdk 0.4.0 copy "drengr_flutter_sdk: ^0.4.0" to clipboard
drengr_flutter_sdk: ^0.4.0 copied to clipboard

Zero-code mobile analytics for Flutter — one line captures and ships every HTTP request/response (http, Dio, dart:io) to Drengr with secret/PII redaction, no networking changes.

example/example.dart

import 'package:drengr_flutter_sdk/drengr_flutter_sdk.dart';

/// The one-liner: capture + redact + ship to your Drengr dashboard. In a
/// Flutter app this goes in `main()` before `runApp`.
void main() {
  Drengr.start(
    publishableKey: 'drengr_pk_your_key',
    ingestUrl: 'https://your-ref.supabase.co/functions/v1/ingest',
    appPackage: 'com.example.app',
  );

  // Any dart:io / package:http / Dio request from here on is captured,
  // redacted on device, and delivered in batches. Taps, rage/dead taps, and
  // crashes are captured too (behavior: false to opt out). For screen names:
  //   MaterialApp(navigatorObservers: [Drengr.navigatorObserver])
  // Optional:
  //   Drengr.identify('user_123', {'plan': 'pro'});
  //   Drengr.setExperiment('checkout_flow', 'b');
  //   await Drengr.flush();

  // Advanced: handle redacted events yourself instead of shipping them.
  // Drengr.start(onEvent: (e) => print('${e.method} ${e.url}'));
}
0
likes
160
points
343
downloads

Documentation

API reference

Publisher

verified publisherdrengr.dev

Weekly Downloads

Zero-code mobile analytics for Flutter — one line captures and ships every HTTP request/response (http, Dio, dart:io) to Drengr with secret/PII redaction, no networking changes.

Homepage
Repository (GitHub)
View/report issues

Topics

#networking #http #observability #analytics #monitoring

License

Apache-2.0 (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on drengr_flutter_sdk