Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributewasm_ffi

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

pub.devRemove
wasm_interop

Dart wrapper for the WebAssembly JavaScript API.

pub.devRemove
ScoresHealth68 (best)41
Maintenance64 (best)0
Quality100 (best)91
Popularity52 (best)46
Community52 (best)6
Compatibility7185 (best)
UsageDownloads (30 days)30k (best)13k
Likes1617 (best)
Pub points160 / 160 (best)140 / 160
GitHub stars1527 (best)
MaintenanceLatest release2.4.0, 3 months ago (best)2.0.1, 5 years ago
Major versions in 12 months00
Contributors3 (best)1
Publishervm75.duckdns.orgUnverified
FitPlatformsWebAll (pure Dart)
WASM-readyYesNo
KindFFI (native library)Pure Dart
Code generationNoYes
Direct dependencies52 (best)
LicenseBSD-2-CLAUSEBSD-3-CLAUSE
Setup effortMediumLow
JudgementStrengths
  • Enables reuse of existing C/C++ codebases via WebAssembly on the web.
  • Mirrors the familiar dart:ffi API pattern closely.
  • Enables direct interop with the WebAssembly JavaScript API on the web.
  • Supports null-safety and recent WebAssembly IDL features like 64-bit integer Globals and externref types.
Weaknesses
  • Separately loaded Wasm modules do not share memory by default.
  • Strict return type constraints and special rules apply when looking up and invoking functions.
  • Limited to web environments where the WebAssembly JavaScript API is available.
  • Not intended for modules requiring custom JavaScript glue code.
WarningsNoneNone
wasm_ffi vs wasm_interop: which Flutter package should you use? | pubscout