Skip to content
pubscout

wordpress_client

10.2.0, released 3 weeks ago by arunprakashg.com

A strongly typed WordPress client for REST, GraphQL, and CRUD operations.

WASM-ready
$ flutter pub add wordpress_client
Source repository

What it does

Provides a comprehensive, typed client library to interact with the WordPress REST API and WPGraphQL. Supports CRUD operations across 30+ endpoints, authentication methods, caching, pagination, and offline writes.

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

Use it when

  • Building a Dart or Flutter application that communicates with a self-hosted or WordPress.com site
  • Needing typed models, queries, and mutations for WordPress REST or WPGraphQL APIs

Skip it when

  • Building apps that do not interact with WordPress or a CMS utilizing the WordPress API standard

Strengths

  • Comprehensive coverage of WordPress REST endpoints, GraphQL, and custom post types
  • Built-in resilience features like caching, retries, and offline write queues
  • Cross-platform support including web, mobile, and desktop

Weaknesses

  • Specific tightly-coupled ecosystem focused entirely on WordPress

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
6

Installs via pubspec.yaml with no complex native permissions or configuration required.

import 'package:wordpress_client/wordpress_client.dart';

final client = WordpressClient.forSite(
  siteUrl: Uri.parse('https://example.com'),
);

final response = await client.posts.list(ListPostRequest(perPage: 10));

Alternatives

Packages that do the same job and could replace wordpress_client.

  • http

    If you only need basic HTTP networking and want a lightweight alternative.

Works with

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