Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeuniversal_platform

Platform detection across Flutter, Dart web, and desktop without errors

pub.devRemove
wasm_ffi

Drop-in replacement for dart:ffi for WebAssembly on the web platform.

pub.devRemove
ScoresHealth5068 (best)
Maintenance264 (best)
Quality96100 (best)
Popularity91 (best)52
Community58 (best)52
Compatibility100 (best)71
UsageDownloads (30 days)2M (best)30k
Likes313 (best)16
Pub points150 / 160160 / 160 (best)
GitHub stars111 (best)15
MaintenanceLatest release1.1.0, 2 years ago2.4.0, 3 months ago (best)
Major versions in 12 months00
Contributors4 (best)3
Publishergskinner.comvm75.duckdns.org
FitPlatformsAll (pure Dart)Web
WASM-readyYesYes
KindPure DartFFI (native library)
Code generationNoNo
Direct dependencies0 (best)5
LicenseMITBSD-2-CLAUSE
Setup effortLowMedium
JudgementStrengths
  • No dependencies, lightweight
  • Works on all supported platforms including Web
  • Simple boolean API
  • Enables reuse of existing C/C++ codebases via WebAssembly on the web.
  • Mirrors the familiar dart:ffi API pattern closely.
Weaknesses
  • Only provides platform checks, no other utilities
  • No support for platform-specific APIs beyond booleans
  • Separately loaded Wasm modules do not share memory by default.
  • Strict return type constraints and special rules apply when looking up and invoking functions.
WarningsNoneNone
universal_platform vs wasm_ffi: which Flutter package should you use? | pubscout