Skip to content

A lightweight React WebView Debugger to inspect and edit cookies, localStorage, sessionStorage, console errors, and network calls directly in your web app, without connecting a USB or using external dev tools.

License

Notifications You must be signed in to change notification settings

sahiljena/react-webview-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React WebView Debugger

A powerful, plug-and-play debugging panel for WebViews, PWAs, and web apps. Inspect storage, track network calls, monitor console errors, and check browser capabilities — all directly inside your app, without USB cables or external DevTools.

If you’ve ever struggled to debug a mobile WebView… this tool is built for you.


📦 Installation

npm install @sahiljena/react-webview-debugger
# or
yarn add @sahiljena/react-webview-debugger

🚀 Get Started in Seconds

Drop it anywhere in your app:

"use client";
import { DebuggerTool } from "@sahiljena/react-webview-debugger";

export default function App() {
  return (
    <>
      <DebuggerTool />
      <h1>My App</h1>
    </>
  );
}

That’s it. The debugger immediately starts capturing:

  • Cookies
  • localStorage & sessionStorage
  • Network requests and responses
  • Console errors & warnings
  • Environment features like SharedArrayBuffer

No setup. No configuration. No hassle.


✨ What Makes It Awesome

  • Live inspection of cookies, localStorage, and sessionStorage
  • Edit, delete, and create storage entries effortlessly
  • Real-time console error tracking
  • Network request viewer with searchable logs
  • One-click export: Receive a compressed JSON containing everything
  • Feature detector: Instantly check browser API support

🔧 Recommended Usage

Add an environment flag to show the debugger only in dev builds:

{
  process.env.NEXT_PUBLIC_DEBUG === "true" && <DebuggerTool />;
}

Note: Console & network logs refresh when switching between tabs (auto-refresh coming soon).


📁 Links


📜 License

MIT © Sahil Jena


About

A lightweight React WebView Debugger to inspect and edit cookies, localStorage, sessionStorage, console errors, and network calls directly in your web app, without connecting a USB or using external dev tools.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published