osrv 0.1.0
osrv: ^0.1.0 copied to clipboard
Unified Dart-first server runtime across Dart native, JS runtimes, and edge adapters.
osrv_example #
Minimal non-publishable pub package that depends on osrv via a local path.
Run #
dart pub get
dart run osrv serve
This uses server.dart by default.
Build #
dart pub get
dart run osrv build
Build output:
dist/bin/server(ordist/bin/server.exeon Windows)dist/js/core/server.js- Node/Bun/Deno direct deploy adapters under
dist/js/* - edge direct deploy adapters under
dist/edge/*
If you want to run source directly without osrv CLI:
dart run server.dart