सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Vexana एक Flutter पैकेज है जो Dio पर आधारित होकर नेटवर्क ऑपरेशन को सरल बनाता है, HTTP रिक्वेस्ट के संभालने के लिए आसान उपयोग के अबस्ट्रैक्शन प्रदान करता है। यह आम नेटवर्किंग कार्यों को आसानी से संचालित करता है जैसे GET, POST, PUT और DELETE कॉल करना, रिक्वेस्ट/रिस्पॉन्स इंटरसेप्टर का प्रबंधन करना, और त्रुटियों को एक समान तरीके से संभालना। आंतरिक रूप से सीरियलाइज़ेशन और कैशिंग का समर्थन करने वाला Vexana डेवलपर उत्पादकता को बढ़ाता है जबकि लचीलापन बनाए रखता है। यह बहु-प्लेटफॉर्म पर भरोसेमंद और साफ नेटवर्क लेयर प्रबंधन की आवश्यकता वाले प्रोजेक्ट्स के लिए आदर्श है।
उपयोग
Flutter ऐप में API एकीकरण
त्रुटि प्रबंधन के साथ HTTP अनुरोधों का हैंडलिंग
पुनर्उपयोगी नेटवर्क सेवाओं का कार्यान्वयन
Caching API प्रतिक्रियाएँ
JSON डेटा को सीरियलाइज़ करना
प्लेटफॉर्म-सहित नेटवर्क संचालन
मुख्य विशेषताएँ
Dio पर आधारित
उपयोग में आसान HTTP क्लाइंट
स्वचालित प्रतिक्रिया अनुक्रमण
अनुरोध/प्रतिक्रिया अंतर्वर्तक
त्रुटि संभाल उपकरण
कैशिंग का समर्थन
इनके लिए उपयुक्त
Dio का उपयोग करने वाले Flutter विकासकर्ता
एक साफ नेटवर्क लेयर की आवश्यकता वाले प्रोजेक्ट्स
स्थिर API प्रबंधन की आवश्यकता वाले ऐप्स
विकास गति को प्राथमिकता देने वाली टीमें
क्रॉस-प्लेटफॉर्म मोबाइल और वेब ऐप्स
विचार योग्य बातें
Dio के परिचय की आवश्यकता है
HTTP नेटवर्किंग पर सीमित
जटिल परिदृश्यों के लिए अतिरिक्त सेटअप की आवश्यकता हो सकती है
गैर-HTTP प्रोटोकॉल्स के लिए उपयुक्त नहीं
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Vexana Monorepo
Vexana is an advanced, production-grade network layer built on top of Dio. It offers type-safe dynamic model parsing, unified error modeling, automatic token refresh, retry interceptors, and multi-platform cache management.
Starting with v6.1.0, Vexana is organized as a modular monorepo divided into three specialized packages so your networking models and core logic can run anywhere — from Flutter mobile and desktop apps to pure Dart servers, CLIs, and Jaspr web applications.
The Vexana Ecosystem
graph TD
subgraph Core ["Pure Dart Layer"]
VC["vexana_core<br/>(Pure Dart, 0 Flutter SDK)<br/>INetworkModel, NetworkManager, Retry, Token Refresh"]
end
subgraph FlutterLayer ["Flutter App Layer"]
V["vexana<br/>(Flutter Package)<br/>Re-exports vexana_core<br/>LocalFile, LocalPreferences, NoNetwork Widget"]
end
subgraph JasprLayer ["Jaspr Web Layer"]
VJ["vexana_jaspr<br/>(Jaspr Web Package)<br/>LocalStorage Cache, JasprNoNetwork, JasprNetworkCheck"]
end
VC -->|re-exports & extends| V
VC -->|consumes & extends| VJ
Pure Dart core: Zero dart:ui or Flutter SDK dependencies. Compiles with dart2js. Ideal for shared data models, Dart backends (Shelf/Frog), CLI tools, and core logic.
Flutter applications: Re-exports vexana_core with zero breaking changes. Adds path_provider disk cache, shared_preferences storage, and Flutter NoNetwork UI widgets.
Jaspr Web app using package:vexana_jaspr/vexana_jaspr.dart
Dart CLI / Server using package:vexana_core/vexana_core.dart
Repository Structure
vexana/├──packages/│├──vexana_core/# Pure Dart networking core (models, manager, mixins)│├──vexana/# Flutter integration (cache, widgets, re-exports core)││└──example/# Flutter example app (Wasm compatible)│└──vexana_jaspr/# Jaspr Web integration (local storage, web components)│└──example/# Jaspr sample web application├──apps/│└──playground/# Interactive live playground Flutter web app├──tool/│└──verify_purity.dart# Transitive dependency analyzer (enforces pure Dart)├──script/│├──verify.sh# Full verification suite (tests, purity, compile guard, builds)│└──push_version.sh# Multi-package publishing tag helper└──pubspec.yaml# Workspace root & Melos task runner
Development & Verification
This workspace uses Dart Pub Workspaces and Melos.
# Verify everything end-to-end (analyze, purity check, compile guard, all tests, web builds)
./script/verify.sh
# Fast verification (analyze + tests only, ~20s)
./script/verify.sh --quick
# Run all unit and integration tests across packages
melos run test# Check vexana_core purity (ensures 0 flutter packages in transitive tree)
melos run purity
# Guard against dart:ui leakage into pure Dart code via JS compilation
melos run compile-guard
Publishing to pub.dev
Automated publishing is powered by GitHub Actions and pub.dev OIDC. Each
package has its own tag; the version is read from the package's
pubspec.yaml. On pub.dev admin, set the tag pattern per package:
vexana_core-v{{version}}, vexana-v{{version}}, vexana_jaspr-v{{version}}.
Publish a package (push core first when the others need a new core):
Manual Trigger:
Use the Actions tab in GitHub > Publish to pub.dev > Run workflow and select the package to publish (all, vexana_core, vexana, or vexana_jaspr).
License
This project is licensed under the MIT License - see the LICENSE file for details.