Installation
Vyuh Server packages are published on Vyuh's pub registry. Before adding dependencies, configure your pub token — see Pub Token Setup.
Core
# pubspec.yaml
dependencies:
vyuh_server:
hosted: https://pub.vyuh.tech
version: ^0.2.0That's enough to bootstrap a server, register features, and mount routes. No database, no auth, no telemetry — just the Relic transport, the plugin framework, and the vyuh global accessor.
Adding Plugins
Add a plugin only when you need its role. Each plugin owns one singleton or contributes into one chain.
Database — Postgres
dependencies:
vyuh_server:
hosted: https://pub.vyuh.tech
version: ^0.2.0
vyuh_server_plugin_postgres:
hosted: https://pub.vyuh.tech
version: ^0.2.0Storage — Supabase files
dependencies:
vyuh_server_plugin_storage:
hosted: https://pub.vyuh.tech
version: ^0.1.1Auth — JWT + API key
dependencies:
vyuh_server_plugin_auth_jwt:
hosted: https://pub.vyuh.tech
version: ^0.2.0
vyuh_server_plugin_auth_apikey:
hosted: https://pub.vyuh.tech
version: ^0.2.0Both plugins can coexist — the framework concatenates their strategies into a single chain. A request walks the chain until one strategy returns an Actor or one throws AuthFailed.
Telemetry — pick one
Dev / tests:
dependencies:
vyuh_server_plugin_telemetry_console:
hosted: https://pub.vyuh.tech
version: ^0.2.0Production:
dependencies:
vyuh_server_plugin_telemetry_otel:
hosted: https://pub.vyuh.tech
version: ^0.2.0The framework enforces this at boot: registering two TelemetryPlugins throws SingletonCollisionError. Use environment-based wiring in main to swap between them.
Filters and CRUD
dependencies:
cdx_query_server_postgres:
hosted: https://pub.vyuh.tech
version: ^0.1.1
vyuh_server_plugin_entity_crud:
hosted: https://pub.vyuh.tech
version: ^0.2.5
vyuh_entity_crud_types:
hosted: https://pub.vyuh.tech
version: ^0.2.2Realtime — SSE fan-out
dependencies:
vyuh_server_plugin_realtime:
hosted: https://pub.vyuh.tech
version: ^0.2.1OpenAPI
dependencies:
vyuh_server_plugin_openapi:
hosted: https://pub.vyuh.tech
version: ^0.2.0Full SaaS Stack
A complete production stack:
dependencies:
vyuh_server:
hosted: https://pub.vyuh.tech
version: ^0.2.0
vyuh_server_plugin_postgres:
hosted: https://pub.vyuh.tech
version: ^0.2.0
vyuh_server_plugin_storage:
hosted: https://pub.vyuh.tech
version: ^0.1.1
vyuh_server_plugin_auth_jwt:
hosted: https://pub.vyuh.tech
version: ^0.2.0
vyuh_server_plugin_telemetry_otel:
hosted: https://pub.vyuh.tech
version: ^0.2.0
cdx_query_server_postgres:
hosted: https://pub.vyuh.tech
version: ^0.1.1
vyuh_server_plugin_entity_crud:
hosted: https://pub.vyuh.tech
version: ^0.2.5
vyuh_entity_crud_types:
hosted: https://pub.vyuh.tech
version: ^0.2.2
vyuh_server_plugin_realtime:
hosted: https://pub.vyuh.tech
version: ^0.2.1
vyuh_server_plugin_openapi:
hosted: https://pub.vyuh.tech
version: ^0.2.0
# Your domain types, validators, etc.
json_annotation: ^4.9.0
dev_dependencies:
build_runner: ^2.4.0
json_serializable: ^6.8.0Run dart pub get, then jump to the Quick Start.
Dart SDK
Vyuh Server requires Dart 3.8+:
environment:
sdk: ^3.8.0