stream_chat
10.7.0, released 11 days ago by getstream.io
Low‑level Dart client for Stream Chat API
What it does
Provides API access, WebSocket handling, event streams, and offline persistence for chat applications.
AI-written summary of version 10.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need full control over UI and architecture
- You want to integrate with your own state‑management solution
- You need a lightweight client without built‑in widgets
Skip it when
- You want ready‑made chat widgets
- You prefer a higher‑level SDK with UI components
Strengths
- Full control over data flow and UI
- Supports WebSocket, REST, and offline persistence
- Active maintenance and frequent updates
Weaknesses
- No built‑in UI widgets
- Requires more plumbing for UI integration
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 18
Add dependency, run `dart pub get`, instantiate `StreamChatClient` with API key. For code generation, run `dart run build_runner watch` if using JSON serialization.
final client = StreamChatClient('stream-chat-api-key');Alternatives
Packages that do the same job and could replace stream_chat.
- mqtt5_client
A server and browser based MQTT Version 5 client for Dart supporting TCP and WebSockets.
92Compare - dbus
Native Dart D-Bus client for Linux and Windows.
91Compare - relic
Lightweight web server framework inspired by Shelf, with typed APIs and a high‑performance native Zig adapter.
91Compare - mqtt_client
A Dart MQTT client supporting TCP, WebSocket, secure connections and all QoS levels.
91Compare
Works with
Packages commonly used together with stream_chat: ones it builds on, ones built on it, and its own family.
- uuidstream_chat depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- mimestream_chat depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- clockstream_chat depends on itA fakeable wrapper for dart:core clock APIs.
- asyncstream_chat depends on itUtility classes and helpers that extend Dart's async library.
- json_annotationstream_chat depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- http_parserstream_chat depends on itA platform-independent package for parsing and serializing HTTP formats.
- loggingstream_chat depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- web_socket_channelstream_chat depends on itCross‑platform WebSocket channel wrapper for Dart