Skip to content
pubscout

server_universe

0.0.38, released 2 years ago by an unverified publisher

Cross‑platform server and edge function helper for REST APIs

WASM-ready
$ flutter pub add server_universe
Source repository

What it does

Provides a lightweight server framework that runs on mobile, desktop, web, and serverless platforms. It exposes a simple API for routing, middleware, and response handling, and supports edge functions on Supabase, Vercel, Netlify, and Cloudflare.

AI-written summary of version 0.0.38, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a quick, minimal server for prototyping or small services
  • You want to deploy the same code to mobile, desktop, web, or serverless environments
  • You prefer a single library over multiple platform‑specific solutions

Skip it when

  • You require advanced features like authentication, database integration, or complex middleware pipelines
  • You need extensive documentation or community support
  • You are building a large, production‑grade backend that demands mature tooling

Strengths

  • Cross‑platform compatibility
  • Simple API surface
  • Fast startup and low overhead
  • Supports edge functions out of the box

Weaknesses

  • Limited documentation and examples
  • No built‑in auth or database clients
  • Sparse community and ecosystem
  • Feature set is still evolving

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
7

Add dependency via `dart pub add server_universe`; import `package:server_universe/native.dart` for native servers. No build_runner or codegen required.

import 'package:server_universe/native.dart';

void main() async {
  final app = ServerUniverseNative();
  app.get('/hello', (req, res) => res.send('Hello World'));
  await app.listen(port: 8080);
}

Alternatives

Packages that do the same job and could replace server_universe.

  • shelf

    Mature, well‑documented server framework for Dart with extensive middleware ecosystem

Works with

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