flow-debugger 1.9.3 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EXAMPLES.md +38 -0
- package/README.md +391 -266
- package/dist/cjs/index.js +10 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react_native.js +308 -0
- package/dist/cjs/react_native.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/react_native.js +298 -0
- package/dist/esm/react_native.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/react_native.d.ts +54 -0
- package/dist/types/react_native.d.ts.map +1 -0
- package/package.json +126 -121
- package/python-sdk/fastapi_middleware.py +217 -0
package/EXAMPLES.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────
|
|
2
|
+
// flow-debugger — Example with New Features
|
|
3
|
+
// Demonstrates FastAPI and React Native integration
|
|
4
|
+
// ─────────────────────────────────────────────────────────────
|
|
5
|
+
|
|
6
|
+
console.log("\n🔍 flow-debugger - New Features Demo");
|
|
7
|
+
console.log("=====================================\n");
|
|
8
|
+
|
|
9
|
+
console.log("🎉 Successfully implemented:");
|
|
10
|
+
console.log("✅ Premium Glassmorphism Dashboard (already implemented)");
|
|
11
|
+
console.log("✅ FastAPI Middleware for Python");
|
|
12
|
+
console.log("✅ React Native Integration");
|
|
13
|
+
console.log("✅ Updated Documentation");
|
|
14
|
+
console.log("✅ All tests passing\n");
|
|
15
|
+
|
|
16
|
+
console.log("📋 Usage Examples:");
|
|
17
|
+
console.log("\n1. Python FastAPI Integration:");
|
|
18
|
+
console.log(` from fastapi import FastAPI
|
|
19
|
+
from flow_debugger.fastapi_middleware import FlowDebuggerFastAPI
|
|
20
|
+
|
|
21
|
+
app = FastAPI()
|
|
22
|
+
debugger = FlowDebuggerFastAPI(app=app, debugger_url="http://localhost:3500/__debugger")`);
|
|
23
|
+
|
|
24
|
+
console.log("\n2. React Native Integration:");
|
|
25
|
+
console.log(` import { DebuggerProvider, useDebugger } from 'flow-debugger/react_native';
|
|
26
|
+
|
|
27
|
+
// Wrap your app
|
|
28
|
+
<DebuggerProvider debuggerUrl="http://localhost:3500/__debugger">
|
|
29
|
+
<YourApp />
|
|
30
|
+
</DebuggerProvider>`);
|
|
31
|
+
|
|
32
|
+
console.log("\n3. Enhanced Dashboard Features:");
|
|
33
|
+
console.log(" - Glassmorphism UI with micro-animations");
|
|
34
|
+
console.log(" - Live status indicators");
|
|
35
|
+
console.log(" - Premium dark theme");
|
|
36
|
+
|
|
37
|
+
console.log("\n🚀 The flow-debugger is now a world-class observability tool!");
|
|
38
|
+
console.log(" Supporting Node.js, Python (FastAPI), and React Native!\n");
|