पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

GitHub रिपॉज़िटरीVB10/vexana

vexana

वेक्जाना डियो के साथ नेटवर्क मैनेजर प्रोजेक्ट है।

vexana प्रोजेक्ट कवर
स्टार
153
फ़ोर्क
41
अंतिम पुश (UTC)
10 अग॰ 2026
प्रोजेक्ट स्थिति
सक्रिय

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

Vexana Monorepo

Ask DeepWiki vexana vexana_core vexana_jaspr CI License: MIT Discord

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
Packages at a Glance
Package Version SDK Requirement Primary Use Case
vexana_core ^1.0.0 Pure Dart (^3.6.0) 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.
vexana ^6.1.0 Flutter (sdk: flutter) Flutter applications: Re-exports vexana_core with zero breaking changes. Adds path_provider disk cache, shared_preferences storage, and Flutter NoNetwork UI widgets.
vexana_jaspr ^0.1.0 Jaspr / Web (^3.6.0) Jaspr Web apps: Browser window.localStorage cache adapter, reactive JasprNoNetwork banner component, and navigator connectivity checks.

Which Package Should I Choose?

If you are building... Use this package Why?
Flutter Mobile / Desktop App vexana: ^6.1.0 Gives you everything: core network manager + mobile file/shared preferences caching + Flutter dialogs/widgets. Zero migration needed.
Shared Domain / Data Layer vexana_core: ^1.0.0 Define your INetworkModel classes in a pure Dart package shared across Flutter, Jaspr, and backend services without bringing in Flutter dependencies.
Jaspr Web Application vexana_jaspr: ^0.1.0 Purpose-built for Jaspr with browser local storage caching and Jaspr components for offline state management.
Dart Backend / Server (Shelf, Frog, Dart VM) vexana_core: ^1.0.0 Lightweight, pure Dart HTTP client with Dio, token refreshing, and retry capabilities.

Write Once, Use Everywhere: Shared Models

Define your model once in a pure Dart layer:

import 'package:vexana_core/vexana_core.dart';

final class User extends INetworkModel<User> {
  User({this.id, this.name, this.email});

  final int? id;
  final String? name;
  final String? email;

  @override
  User fromJson(Map<String, dynamic> json) => User(
        id: json['id'] as int?,
        name: json['name'] as String?,
        email: json['email'] as String?,
      );

  @override
  Map<String, dynamic>? toJson() => {'id': id, 'name': name, 'email': email};
}

Now use the exact same User class across:

  1. Flutter app using package:vexana/vexana.dart
  2. Jaspr Web app using package:vexana_jaspr/vexana_jaspr.dart
  3. 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):

    ./script/push_version.sh core     # Pushes vexana_core-v<version>
    ./script/push_version.sh vexana   # Pushes vexana-v<version>
    ./script/push_version.sh jaspr    # Pushes vexana_jaspr-v<version>
    
  • 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.

Veli Bacik GitHub avatar
GitHub लेखक

Veli Bacik ↗

Cross and Native Mobile Dev. #vbislife

भाषाएँDartC++CMakeShellHTMLRubyCSwiftKotlinObjective-C

श्रेणियाँ

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 1 आइटम

  • melosडेवलपमेंट^8.2.2

अपने प्रोजेक्ट के लिए रिपॉज़िटरी कैसे चुनें?

उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।

  1. नाम, लेखक या विवरण से खोजें और तकनीकी विषय से परिणाम सीमित करें।
  2. स्टार, फ़ोर्क और हाल के पुश की तुलना करें। स्टार रुचि दर्शाते हैं, गुणवत्ता की गारंटी नहीं।
  3. उपयोग से पहले GitHub पर README, लाइसेंस और Issues जाँचें।

स्रोत और रखरखाव

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗