# shelf (Dart)

> Web server middleware for Dart

Source: https://talira.ai/catalog/shelf-dart-1qdvxr6a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^2]

shelf is the Dart team's web server middleware library: a server is a handler function that takes a request and returns a response, and middleware wraps handlers to add logging, routing, compression and the like, composed with a Pipeline. It mixes synchronous and asynchronous processing and returns a string or a byte stream with the same model. The same repository holds the packages built on it, such as shelf_router for routing, shelf_static for serving files, shelf_proxy and shelf_web_socket. It's BSD-3-Clause licensed and published on pub.dev by the Dart team.

## Links

- GitHub: https://github.com/dart-lang/shelf
- Docs: https://pub.dev/documentation/shelf/latest/

## Problems it solves

- write a small HTTP server or API in Dart
- add logging or routing middleware to a Dart web server
- serve static files from a Dart backend

## Features

- handlers and composable middleware joined with a Pipeline
- synchronous and asynchronous handlers with the same model
- shelf_router for routing requests to handlers
- shelf_static for serving static files
- shelf_proxy and shelf_web_socket in the same repository

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.69, adoption 0.60, momentum 0.27, community 0.72, backing 0.55, extensibility 0.00.

- last commit 13 days ago
- 14 commits in the last 90 days
- latest release shelf_static-v1.2.0 44 days ago
- 1.0k GitHub stars
- 62 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Alternatives

- [Serverpod](https://talira.ai/catalog/serverpod-5rg9p86g.md): The ultimate backend for Flutter
- [Dart Frog](https://talira.ai/catalog/dart-frog-gprzb4nx.md): A fast, minimalistic backend framework for Dart

## Sources

[^1]: https://github.com/dart-lang/shelf/blob/master/pkgs/shelf/LICENSE (checked 27 Nov 2026)
[^2]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
