Skip to content
pubscout

relic_io

2.0.0, released 8 days ago by serverpod.dev

dart:io adapter for Relic web server.

$ flutter pub add relic_io
Source repository

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.

  • shelf

    Composable web server middleware for Dart

  • realtime_client

    Dart client for Supabase Realtime, listening to PostgreSQL changes via WebSocket

  • shelf_proxy

    A shelf handler for proxying HTTP requests to another server.

Works with

Packages commonly used together with relic_io: ones it builds on, ones built on it, and its own family.