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.
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.
86Compare - dart_frog
A minimalistic Dart backend framework with a built‑in dev server and Docker support.
80Compare
Works with
Packages commonly used together with shelf_plus: ones it builds on, ones built on it, and its own family.
- shelfshelf_plus depends on itComposable web server middleware for Dart
- shelf_staticshelf_plus depends on itServe static files over HTTP with the shelf package
- shelf_web_socketshelf_plus depends on itShelf handler that upgrades HTTP to WebSocket and provides a WebSocketChannel per connection.
- web_socket_channelshelf_plus depends on itCross‑platform WebSocket channel wrapper for Dart
- mime_typeshelf_plus depends on itLibrary to map file names or extensions to MIME types and vice versa
- shelf_routershelf_plus depends on itA request router for the shelf web-framework with support for URL parameters and nested routers.
- shelf_hotreloadshelf_plus depends on itWrapper to easily enable hot-reload for shelf applications.