Vexana는 Dio 위에 구축된 Flutter 패키지로, HTTP 요청 처리를 위한 사용하기 쉬운 추상화를 제공하여 네트워크 작업을 간소화합니다. 일반적인 네트워킹 작업인 GET, POST, PUT, DELETE 호출, 요청/응답 인터셉터 관리, 일관된 오류 처리를 간편하게 수행할 수 있습니다. 내장된 직렬화 및 캐싱 지원으로 개발 생산성을 높이면서도 유연성을 유지합니다. 여러 플랫폼에서 신뢰성 있고 깔끔한 네트워크 계층 관리가 필요한 프로젝트에 적합합니다.
사용 사례
Flutter 앱에서의 API 통합
오류 관리와 함께 HTTP 요청 처리
재사용 가능한 네트워크 서비스 구현
API 응답 캐싱
JSON 데이터 직렬화
크로스 플랫폼 네트워크 작업
주요 기능
Dio 위에 구축됨
사용하기 쉬운 HTTP 클라이언트
자동 응답 직렬화
요청/응답 인터셉터
오류 처리 유틸리티
캐싱 지원
적합한 대상
Dio를 사용하는 플러터 개발자
클린 네트워크 계층이 필요한 프로젝트
일관된 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.