Skip to content

KtorMonitor

Maven Central License Platforms Slack JetBrains Klibs.io Documentation API GitHub stars GitHub forks

Powerful tool to monitor Ktor Client requests and responses, making it easier to debug and analyze network communication.

✨ Features

  • 🌐Ktor Network Monitoring: Real-time interception and logging of Ktor Client traffic.
  • 📱Kotlin Multiplatform (KMP): Full support for Android, iOS, Desktop (JVM), Wasm, and JS.
  • 🛠️Highly Configurable: Customize retention periods, content length limits, and notification behavior.
  • 🔒Security First: Redact sensitive headers (e.g., Authorization).
  • 📂Data Export: Save request/response details to local files for easier debugging or sharing.
  • 🎨Rich Previews: Built-in viewers for JSON, XML, HTML, CSS, Form Data, Image (JPG, PNG, SVG, GIF, WEBP).
  • 📡SSE & WebSockets: Track one-way streams (SSE) and bidirectional traffic (WebSockets).
  • 🛡️Production Safe: No-Op version to ensure monitoring code is excluded from your production builds.

By default, KtorMonitor:

  • androidisActive for debug builds and disabled for release builds
  • iosisActive for debug builds and disabled for release builds
  • desktop -> isActive for all builds
  • wasmisActive for all builds
  • jsisActive for all builds