Skip to content
pubscout

shelf_easy

5.3.6, released 4 weeks ago by cszykj.com

Lightweight framework with a JSON model generator, database operator, and web/WebSocket server/client.

$ flutter pub add shelf_easy
Source repository

What it does

Provides a comprehensive toolkit for building Dart servers and clients, including a JSON model generator, database operator interface for MongoDB, WebSocket/HTTP web framework, logging, and localization.

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

Use it when

  • You want a unified Dart framework for both server-side and client-side web/WebSocket communication.
  • You are using MongoDB and want a strongly-typed database query builder combined with a code generator.

Skip it when

  • You need a backend framework supporting databases other than MongoDB (PostgreSQL support is only planned).
  • You are building a standard mobile application UI and only need isolated UI components.

Strengths

  • Combines JSON serialization generation, database operators, and server/client networking into one library.
  • Strongly typed query builder helpers that reduce string-key errors.
  • Includes modules for localization, logging, and clustering support.

Weaknesses

  • Database operations currently only support MongoDB directly.
  • Framework tightly couples multiple modules into a single package.

Setup

Kind
Pure Dart
Effort
Medium
Code generation
No
Direct dependencies
16

Requires running custom generator scripts (e.g. dart generator.dart) to generate data models and database auxiliary classes.

// Example generator execution from README
dart generator.dart

Alternatives

Packages that do the same job and could replace shelf_easy.

  • dart_mcp

    A Dart library for building Model Context Protocol (MCP) servers and clients.

  • mason_api

    Dart API client for Mason CLI

  • relic

    Lightweight web server framework inspired by Shelf, with typed APIs and a high‑performance native Zig adapter.

  • angel3_websocket

    WebSockets support and event broadcasting for the Angel3 framework.

Works with

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