The PassKit TypeScript SDK makes it quick and easy to work with PassKit's APIs for branded digital membership cards, coupons, boarding passes, and event tickets for Apple Wallet and Google Wallet.
- Create a PassKit account — sign up for free.
- Get your SDK credentials from the Developer Tools section of your profile.
- Choose the type of pass you want to create:
- Membership cards
- Coupons
- Boarding passes
- Event tickets
See the PassKit Typescript quickstart for a complete application and credential setup.
npm install @passkit/typescript-grpc-sdkNode.js 20 or later is required.
Create protobuf messages using the generated schemas:
import { create } from "@bufbuild/protobuf";
import {
IdSchema,
type Id,
} from "@passkit/typescript-grpc-sdk/io/common/common_objects_pb";
const id: Id = create(IdSchema, { id: "123" });The main public namespaces are also available from the package root:
import { ct, io } from "@passkit/typescript-grpc-sdk";The generated GenService exports describe RPC methods and message schemas.
Applications are responsible for configuring a compatible transport with the
PassKit endpoint and SDK credentials for their region.
The PassKit GUI is available from your PassKit account.
- Email support@passkit.com
- Use the PassKit online chat
Most files under src/ are generated. Update the source protocol definitions
and regenerate the SDK instead of editing generated modules by hand.
npm ci
npm test
npm pack --dry-runThe test command builds type declarations, ESM, and CommonJS output and checks root and nested imports in both module systems.
Distributed under the MIT License. See LICENSE.