Skip to content
pubscout

shelf_plus

1.11.0, released a year ago by felix-blaschke.de

Quality of life addon for server-side development within the Shelf platform.

$ flutter pub add shelf_plus
Source repository

What it does

Provides a high-level abstraction layer over shelf_router with built-in response handlers, request body parsing, middleware helpers, and a zero-configuration runner with hot-reload.

AI-written summary of version 1.11.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Dart server using the Shelf ecosystem and want less boilerplate.
  • You need built-in hot-reload and quick setup for server-side applications.

Skip it when

  • You are building a Flutter client-side application.
  • You prefer using vanilla Shelf without any quality-of-life abstraction layers.

Strengths

  • Simplifies response handling for various types like JSON, files, and WebSockets.
  • Built-in hot-reload support for faster development.
  • Full compatibility with the underlying Shelf ecosystem.

Weaknesses

  • Relies on the Shelf ecosystem which has fewer built-in features compared to full-stack frameworks.

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
7
import 'package:shelf_plus/shelf_plus.dart';

void main() => shelfRun(init);

Handler init() {
  var app = Router().plus;
  app.get('/', () => 'Hello World!');
  return app.call;
}

Alternatives

Packages that do the same job and could replace shelf_plus.

  • shelf_proxy

    A shelf handler for proxying HTTP requests to another server.

  • dart_frog

    A minimalistic Dart backend framework with a built‑in dev server and Docker support.

Works with

Packages commonly used together with shelf_plus: ones it builds on, ones built on it, and its own family.