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.
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.dartAlternatives
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.
87Compare - mason_api
Dart API client for Mason CLI
81Compare - relic
Lightweight web server framework inspired by Shelf, with typed APIs and a high‑performance native Zig adapter.
91Compare - angel3_websocket
WebSockets support and event broadcasting for the Angel3 framework.
77Compare
Works with
Packages commonly used together with shelf_easy: ones it builds on, ones built on it, and its own family.
- cryptoshelf_easy depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- uuidshelf_easy depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- mimeshelf_easy depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- shelfshelf_easy depends on itComposable web server middleware for Dart
- shelf_staticshelf_easy depends on itServe static files over HTTP with the shelf package
- shelf_web_socketshelf_easy depends on itShelf handler that upgrades HTTP to WebSocket and provides a WebSocketChannel per connection.
- http_parsershelf_easy depends on itA platform-independent package for parsing and serializing HTTP formats.
- web_socket_channelshelf_easy depends on itCross‑platform WebSocket channel wrapper for Dart