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.