api_studio 0.1.1
api_studio: ^0.1.1 copied to clipboard
A powerful in-app API debugging and inspection tool for Flutter. Supports Dio interception, persistent logs, edit-and-run, CURL export, and a beautiful inspector dashboard.
API Studio
Build • Debug • Monitor • Analyze APIs from a Single Toolkit
🚀 Overview #
API Studio is a modern networking toolkit built exclusively for Flutter developers.
It combines networking, debugging, monitoring, request inspection, connectivity tracking, and developer utilities into one clean and easy-to-use package.
Whether you're building a personal project or a production application, API Studio provides everything needed to understand, debug, and manage your application's network layer.
✨ Why API Studio? #
Modern applications require much more than simply sending HTTP requests.
API Studio provides an integrated developer experience that allows you to:
- 🌐 Send network requests
- 📡 Automatically inspect every request
- 📊 Monitor API traffic
- 📱 View beautiful request details
- 🌍 Track internet connectivity
- 📈 Monitor failed requests in real time
- 📝 Generate cURL commands instantly
- 📤 Export request history
- ⚡ Edit and retry requests
- 🔍 Analyze request performance
Everything works together with minimal setup.
🌐 Networking #
- Built-in HTTP Client
- GET
- POST
- PUT
- PATCH
- DELETE
- Multipart Upload
- File Download
- Custom Headers
- Query Parameters
- Authorization Support
- Request Timeout
- Retry Requests
- Base URL Configuration
📡 Automatic API Interceptor #
Every request is captured automatically.
Captured information includes:
- URL
- Method
- Headers
- Request Body
- Query Parameters
- Response
- Status Code
- Response Time
- Error Details
- Stack Trace
No additional configuration required.
📱 API Inspector #
Professional API debugging interface with:
- Search Requests
- Filter by Method
- Filter by Status
- Request Details
- Response Viewer
- Error Viewer
- JSON Formatter
- Copy Request
- Delete Logs
- Edit & Retry
- Generate cURL
🌍 Internet Monitoring #
Monitor application connectivity in real time.
Features include:
- Current Internet Status
- Internet Status Stream
- Connectivity Listener
- Live Updates
📈 Live Streams #
Built-in streams for:
- Internet Connectivity
- Failed API Count
- Request Updates
Perfect for dashboards and debugging.
📝 cURL Generator #
Generate production-ready cURL commands with one click.
Useful for:
- Backend Teams
- QA Testing
- API Sharing
- Terminal Testing
📤 Export Logs #
Export request history as:
- JSON
⚡ Edit & Retry #
Modify intercepted requests directly from the inspector.
Update:
- Headers
- Query Parameters
- Request Body
Retry instantly without changing application code.
📸 Screenshots #
📦 Installation #
Add the package to your project.
dependencies:
api_studio: ^0.1.1
Install packages.
flutter pub get
🚀 Quick Start #
Initialize API Studio.
await ApiStudio.initialize();
🌐 HTTP Client #
Create a client.
final client = ApiStudioClient();
GET Request
final response = await client.get("/posts");
POST Request
await client.post(
"/login",
data: {
"email": "john@example.com",
"password": "123456",
},
);
PUT Request
await client.put("/users/1");
DELETE Request
await client.delete("/users/1");
Every request is automatically available inside the API Inspector.
📱 Open API Inspector #
ApiInspector.show(context);
Inspect every request in real time.
🌍 Internet Connectivity #
Current connectivity status.
ApiStudio.internetStatus
Listen continuously.
ApiStudio.internetStream.listen((status) {
});
📈 Failed API Stream #
ApiStudio.failedApiCountStream.listen((count) {
});
Perfect for dashboards and monitoring widgets.
✅ Supported HTTP Methods #
- GET
- POST
- PUT
- PATCH
- DELETE
- HEAD
- OPTIONS
🎯 Features #
- Built-in HTTP Client
- Automatic API Interceptor
- API Inspector UI
- Request & Response Viewer
- Error Viewer
- JSON Formatter
- Edit & Retry
- cURL Generator
- Internet Monitoring
- Live Internet Stream
- Failed API Stream
- Export Logs
📄 License #
MIT License
Made with ❤️ for the Flutter Community