Skip to content
pubscout

dart_plex

0.3.2, released 7 days ago by ales-drnz.com

Dart client for Plex Media Server and plex.tv supporting sign-in, libraries, streaming, and search.

WASM-ready
$ flutter pub add dart_plex
Source repository

What it does

Provides a typed Dart client for interacting with Plex Media Server and plex.tv. Handles JWT sign-in, server discovery, library browsing, playlists, playback reporting, search, and audio/video streaming URLs.

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

Use it when

  • Building a Plex client application in Dart or Flutter
  • Streaming media or browsing libraries from a Plex Media Server

Skip it when

  • Building applications that do not use Plex Media Server
  • Needing a UI component library rather than an API client

Strengths

  • Comprehensive coverage of Plex Media Server and plex.tv APIs
  • Typed models with background isolate parsing for large responses
  • Supports JWT sign-in, automatic token refresh, and server discovery

Weaknesses

  • Tied specifically to Plex Media Server architecture
  • Requires manual implementation of media playback engines using the provided transcode URLs

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4

Requires Dart 3.10 or later and valid Plex credentials.

import 'package:dart_plex/dart_plex.dart';

Future<void> main() async {
  final plex = PlexClient(
    credentials: const PlexCredentials(
      clientIdentifier: 'PUT-YOUR-UUID-HERE',
      product: 'MyApp',
      version: '1.0.0',
      device: 'iPhone',
      deviceName: 'My iPhone',
      platform: 'iOS',
    ),
  );
  plex.close();
}

Alternatives

Packages that do the same job and could replace dart_plex.

  • dart_mcp

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

  • typesense

    Dart client library for accessing the HTTP API of the Typesense search engine.

  • vmodal_sdk_flutter

    Typed VModal API client for Flutter to upload videos and search moments by meaning.

  • ftpconnect

    Interact with FTP, FTPS, FTPES, and SFTP servers to upload, download, and manage files.

Works with

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