devpul
Core of DevPul: streams HTTP calls, errors, session info and custom events from a running Dart or Flutter debug build to a browser UI over the Dart VM service. No proxy, no server. Pure Dart, works on the web.
Install
dependencies:
devpul: ^0.1.0
Add devpul_dio for Dio and devpul_flutter for Flutter error hooks.
Usage
import 'package:devpul/devpul.dart';
void main() {
Devpul.session({'name': 'My app', 'version': '1.0.0'}, tags: {'env': 'dev'});
Devpul.emit('cart.updated', {'items': 3});
try {
sync();
} catch (e, s) {
Devpul.error(e, s, source: 'sync');
}
}
Run the app in debug mode and paste the VM service URL it prints into DevPul. For plain Dart use dart run --enable-vm-service.
DevpulConfig sets console output, size limits, ignore rules and opt-in redaction. DevpulHttp is the building block for HTTP client adapters. Both are documented in the main README, together with the event schema.
Limits
- Debug builds only. Release and profile builds never emit.
- Configuration is per isolate.
Libraries
- devpul
- Streams HTTP calls, errors and custom events from a debug build to the DevPul browser UI over the Dart VM service.