Skip to content

Bun

Use BuildTarget.bun when you want a JS runtime with fast startup and a compact deployment model.

Example config

dart
import 'package:spry/config.dart';

void main() {
  defineSpryConfig(
    host: '127.0.0.1',
    port: 4100,
    target: BuildTarget.bun,
  );
}

Good fit

  • Bun-based self-hosting
  • teams already operating Bun in production
  • deployments where Bun is the preferred runtime contract

Practical note

Bun is still just a target. The route layer, middleware, and config surface stay the same as every other Spry deployment.

Released under the MIT License.