dart_frog
1.2.6, released a year ago by dart-frog.dev
A minimalistic Dart backend framework with a built‑in dev server and Docker support.
What it does
Dart Frog provides a lightweight runtime for building HTTP APIs in Dart. It ships with a fast dev server, middleware support, and a simple CLI for project scaffolding and production builds.
AI-written summary of version 1.2.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building small to medium sized REST APIs in Dart
- Need a quick dev server with hot reload
- Deploying to Docker or cloud platforms
Skip it when
- Creating large, complex enterprise backends that require extensive third‑party integrations
- Building client‑side applications or mobile UIs
Strengths
- Fast, minimalistic runtime
- Built‑in dev server with hot reload
- CLI generates Dockerfile for easy deployment
Weaknesses
- Limited ecosystem compared to larger frameworks
- Not designed for heavy client‑side work
- Requires Dart SDK
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 7
Run `dart pub global activate dart_frog_cli` then `dart_frog create my_project` and `dart_frog dev` to start the server.
```dart
import 'package:dart_frog/dart_frog.dart';
Future<Response> onRequest(RequestContext ctx) async {
return Response(body: 'Hello, world!');
}
```Alternatives
Packages that do the same job and could replace dart_frog.
- shelf_router
A request router for the shelf web-framework with support for URL parameters and nested routers.
92Compare - vania
A fast backend framework for Dart with routing, ORM, migrations, and middleware.
71Compare - relic_core
Core framework for Relic web server
82Compare - relic_io
dart:io adapter for Relic web server.
81Compare
Works with
Packages commonly used together with dart_frog: ones it builds on, ones built on it, and its own family.
- mimedart_frog depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- shelfdart_frog depends on itComposable web server middleware for Dart
- shelf_staticdart_frog depends on itServe static files over HTTP with the shelf package
- http_parserdart_frog depends on itA platform-independent package for parsing and serializing HTTP formats.
- http_methodsdart_frog depends on itProvides a list of IANA‑registered HTTP methods and helper functions to check them.
- shelf_hotreloaddart_frog depends on itWrapper to easily enable hot-reload for shelf applications.
- dart_frog_lintSame familyProvides Dart Frog‑specific lint rules for static analysis.
- dart_frog_genSame familyCode generation tooling for Dart Frog backend applications.