finch
1.6.2, released 13 days ago by finchdart.com
A lightweight Dart framework for building server‑side web apps, APIs, databases and WebSockets.
What it does
Finch provides routing, database integration (MongoDB, MySQL, SQLite), WebSocket support, cron jobs, and static file serving for server‑side Dart applications. It also includes features like i18n, form validation, and OpenAPI documentation generation.
AI-written summary of version 1.6.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a full‑stack server framework in pure Dart
- You want built‑in support for multiple databases and WebSockets
- You prefer a single package that handles routing, config, and utilities
Skip it when
- You are building only a client‑side Flutter app
- You need a highly modular micro‑library rather than an all‑in‑one framework
- You require deep integration with Firebase or other hosted backends
Strengths
- Unified API for routing, DB, and WebSockets
- Supports MongoDB, MySQL, SQLite out of the box
- Built‑in i18n, cron jobs, and OpenAPI generation
- Fast performance with native Dart compilation
Weaknesses
- Large dependency footprint
- Primarily server‑side; not suited for mobile UI code
- Learning curve if unfamiliar with server concepts
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 18
Add finch to pubspec, run `dart pub get`; no special permissions needed. Use FinchApp to configure routes, DB connections, and start the server.
final app = FinchApp(configs: configs);
void main() async {
app.get(path: '/hello', index: (rq) async => rq.renderString(text: 'Hello World'));
await app.start();
}Alternatives
Packages that do the same job and could replace finch.
- realtime_client
Dart client for Supabase Realtime, listening to PostgreSQL changes via WebSocket
89Compare - flint_dart
Full‑stack Dart framework for building server, UI, and APIs in pure Dart
74Compare - vania
A fast backend framework for Dart with routing, ORM, migrations, and middleware.
71Compare - relic_core
Core framework for Relic web server
82Compare
Works with
Packages commonly used together with finch: ones it builds on, ones built on it, and its own family.
- archivefinch depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- yamlfinch depends on itA Dart library for parsing YAML documents into Dart data structures.
- mimefinch depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- json_annotationfinch depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- intlfinch depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- pointycastlefinch depends on itA Dart library providing a wide range of cryptographic algorithms and primitives.
- sqlite3finch depends on itLightweight and convenient SQLite bindings for Dart using dart:ffi
- html_unescapefinch depends on itUn-escapes HTML-encoded strings supporting named, decimal, and hexadecimal character references.