@rozenite/network-activity-plugin 1.0.0-alpha.1

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/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Szymon Chmal
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,73 @@
1
+ ![rozenite-baner](https://github.com/user-attachments/assets/6d21839f-e624-4d8b-85a2-5f7ef1600b28)
2
+
3
+ ### A Rozenite plugin that provides comprehensive network activity monitoring for React Native applications.
4
+
5
+ [![mit licence][license-badge]][license] [![npm downloads][npm-downloads-badge]][npm-downloads] [![Chat][chat-badge]][chat] [![PRs Welcome][prs-welcome-badge]][prs-welcome]
6
+
7
+ The Rozenite Network Activity Plugin provides real-time network request monitoring, detailed request/response inspection within your React Native DevTools environment. It offers comprehensive network debugging capabilities similar to browser DevTools Network panel.
8
+
9
+ ## Features
10
+
11
+ - **Real-time Network Monitoring**: Track all HTTP/HTTPS requests in real-time
12
+ - **Request Details**: View request headers, method, URL, and timing information
13
+ - **Response Inspection**: Examine response headers, status codes, and timing data
14
+ - **Performance Analysis**: Analyze request duration, connection timing, and performance metrics
15
+ - **Request History**: Maintain a searchable history of network activity
16
+ - **Chrome DevTools Protocol**: Built on CDP for accurate network event capture
17
+ - **Production Safety**: Automatically disabled in production builds
18
+
19
+ ## Installation
20
+
21
+ Install the Network Activity plugin as a dependency:
22
+
23
+ ```bash
24
+ npm install @rozenite/network-activity-plugin
25
+ ```
26
+
27
+ ## Quick Start
28
+
29
+ ### 1. Install the Plugin
30
+
31
+ ```bash
32
+ npm install @rozenite/network-activity-plugin
33
+ ```
34
+
35
+ ### 2. Integrate with Your App
36
+
37
+ Add the DevTools hook to your React Native app:
38
+
39
+ ```typescript
40
+ // App.tsx
41
+ import { useNetworkActivityDevTools } from '@rozenite/network-activity-plugin';
42
+
43
+ function App() {
44
+ // Enable Network Activity DevTools in development
45
+ useNetworkActivityDevTools();
46
+
47
+ return (
48
+ <YourApp />
49
+ );
50
+ }
51
+ ```
52
+
53
+ ### 3. Access DevTools
54
+
55
+ Start your development server and open React Native DevTools. You'll find the "Network Activity" panel in the DevTools interface.
56
+
57
+ ## Made with ❤️ at Callstack
58
+
59
+ `rozenite` is an open source project and will always remain free to use. If you think it's cool, please star it 🌟.
60
+
61
+ [Callstack][callstack-readme-with-love] is a group of React and React Native geeks, contact us at [hello@callstack.com](mailto:hello@callstack.com) if you need any help with these or just want to say hi!
62
+
63
+ Like the project? ⚛️ [Join the team](https://callstack.com/careers/?utm_campaign=Senior_RN&utm_source=github&utm_medium=readme) who does amazing stuff for clients and drives React Native Open Source! 🔥
64
+
65
+ [callstack-readme-with-love]: https://callstack.com/?utm_source=github.com&utm_medium=referral&utm_campaign=rozenite&utm_term=readme-with-love
66
+ [license-badge]: https://img.shields.io/npm/l/rozenite?style=for-the-badge
67
+ [license]: https://github.com/callstackincubator/rozenite/blob/main/LICENSE
68
+ [npm-downloads-badge]: https://img.shields.io/npm/dm/rozenite?style=for-the-badge
69
+ [npm-downloads]: https://www.npmjs.com/package/@rozenite/network-activity-plugin
70
+ [prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
71
+ [prs-welcome]: https://github.com/callstackincubator/rozenite/blob/main/CONTRIBUTING.md
72
+ [chat-badge]: https://img.shields.io/discord/426714625279524876.svg?style=for-the-badge
73
+ [chat]: https://discord.gg/Q4yr2rTWYF