Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedart_jsonwebtoken

A Dart library for creating, signing, decoding and verifying JSON Web Tokens (JWT).

pub.devRemove
json_annotation

Provides annotations for json_serializable to generate JSON (de)serialization code.

pub.devRemove
ScoresHealth8184 (best)
Maintenance4970 (best)
Quality100 (best)81
Popularity9497 (best)
Community8080
Compatibility100100
UsageDownloads (30 days)2.1M16M (best)
Likes3601.3k (best)
Pub points160 / 160 (best)150 / 160
GitHub stars1061.6k (best)
MaintenanceLatest release3.4.1, 7 months ago4.12.0, 6 months ago (best)
Major versions in 12 months00
Contributors1551 (best)
Publisherjonasroussel.comgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies31 (best)
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • All standard JWT algorithms supported
  • Defensive type checks and timing-attack resistant HMAC
  • JWK conversion helpers
  • Pure Dart, works on all platforms
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
Weaknesses
  • No built‑in token storage or refresh flow
  • No integration with auth backends out of the box
  • Requires manual key management
  • Requires a separate code‑gen step with build_runner and json_serializable.
  • Only useful when paired with a generator; on its own it does nothing.
WarningsNoneNone
dart_jsonwebtoken vs json_annotation: which Flutter package should you use? | pubscout