relic_io
2.0.0, released 8 days ago by serverpod.dev
dart:io adapter for Relic web server.
What it does
Provides a dart:io adapter for the Relic web server framework, allowing developers to run Relic apps using standard Dart I/O.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a backend web service or API in Dart using the Relic framework with dart:io.
- You want a modern, high-performance web server framework alternative to Shelf.
Skip it when
- You are building client-side Flutter applications that only consume APIs.
- You are using a different web framework such as Shelf.
Strengths
- Integrates seamlessly with the Relic web server framework.
- Strongly typed APIs and built-in trie-based router support.
Weaknesses
- Requires Dart 3.10.0 or later.
- Niche ecosystem compared to older packages like shelf.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 7
Add relic and relic_io to your dependencies and initialize in your main function.
import 'package:relic/io_adapter.dart';
import 'package:relic/relic.dart';
Future<void> main() async {
final app = RelicApp()
..get('/user/:name/age/:age', helloHandler);
await app.serve();
}Alternatives
Packages that do the same job and could replace relic_io.
- bones_api
A powerful API backend framework for Dart with HTTP server, routing, SQL translator, and DB adapters.
75Compare - shelf
Composable web server middleware for Dart
95Compare - realtime_client
Dart client for Supabase Realtime, listening to PostgreSQL changes via WebSocket
89Compare - shelf_proxy
A shelf handler for proxying HTTP requests to another server.
86Compare
Works with
Packages commonly used together with relic_io: ones it builds on, ones built on it, and its own family.
- cryptorelic_io depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- mimerelic_io depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- stack_tracerelic_io depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- stream_channelrelic_io depends on itAn abstraction for two-way communication channels based on the Dart Stream class.
- web_socketrelic_io depends on itAn easy-to-use library for communicating with WebSockets that has multiple implementations.
- relic_corerelic_io depends on itCore framework for Relic web server
- relicBuilt on relic_ioLightweight web server framework inspired by Shelf, with typed APIs and a high‑performance native Zig adapter.