passkit
1.1.0, released 2 years ago by uekoetter.dev
Pure Dart library to create and read Apple PkPass and order files for Apple Wallet.
WASM-ready
What it does
Allows reading, writing, signing, and managing Apple Wallet PkPass and order tracking files. It works on servers, web, and mobile apps in pure Dart.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to generate Apple Wallet passes or order tracking files on a server or within an app.
- You need to parse or update existing PkPass binary files.
Skip it when
- You need a complete mobile UI widget set out-of-the-box (requires passkit_ui for widgets).
- You need to interact directly with Apple's native PassKit framework APIs (use apple_passkit instead).
Strengths
- Pure Dart implementation working across servers and Flutter clients.
- Supports both reading and properly signing PkPass files for Apple Wallet.
Weaknesses
- Push notification updates are only supported on iOS.
- Localization currently uses UTF-8 instead of UTF-16 which may cause edge-case issues.
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 12
Requires setting up Apple certificates and private keys for proper pass signing.
import 'package:passkit/passkit.dart';
void main() {
final passKitBytes = ... // get bytes for the PassKit from somewhere
final pkPass = PkPass.fromBytes(passKitBytes);
}Alternatives
Packages that do the same job and could replace passkit.
- apple_passkit
Pick this if you want to work with Apple's native PassKit APIs instead of a pure Dart parsing/generation library.
60Compare
Works with
Packages commonly used together with passkit: ones it builds on, ones built on it, and its own family.
- archivepasskit depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- cryptopasskit depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- json_annotationpasskit depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- intlpasskit depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- http_parserpasskit depends on itA platform-independent package for parsing and serializing HTTP formats.
- csslibpasskit depends on itA Dart library that parses CSS strings or byte lists into an AST.
- imagepasskit depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- pointycastlepasskit depends on itA Dart library providing a wide range of cryptographic algorithms and primitives.