{"repo":"tinovyatkin/pass-js","free":true,"listed":false,"github":"https://github.com/tinovyatkin/pass-js","clone":"git clone https://github.com/tinovyatkin/pass-js.git","description":"Apple Wallet Passes generating library for Node.JS","language":"TypeScript","stars":734,"topics":["apple","wallet","pass","passkit","ios","nodejs","apple-pass"],"license":"AGPL-3.0","category":"mobile-apps","readme_excerpt":"@walletpass/pass-js A Node.js library for generating Apple Wallet passes with localizations, NFC, and web-service push updates. Written in TypeScript. Installation Get your certificates To start, you'll need a certificate issued by the iOS Provisioning Portal. You need one certificate per Pass Type ID. After adding this certificate to your Keychain, export it as a .p12 file (Keychain Access → My Certificates → right-click → Export), then convert it into a .pem file using the passkit-keys command: Or directly with openssl : Then copy the .pem file into your keys directory. The Apple Worldwide Developer Relations Certification Authority certificate is bundled with this package — you don't need to supply it yourself. Start with a template A template carries the fields, images, and localizations shared between your passes. Use it to stamp out individual passes. Template.load and Template.fromBuffer are intended for trusted template assets. Do not pass attacker-controlled folders, ZIP buffers, or .pkpass bundles to these APIs; loading untrusted bundles can consume excessive memory and may crash or stall the process. The first argument to the Template constructor is the pass style ( coupon , eventTicket , etc.); the second is an optional object with any fields you want to set on the template. You can access template fields directly: The following fields are required on every pass: - passTypeIdentifier — the Apple Pass Type ID (has the pass. prefix) - teamIdentifier — your Apple Dev","default_branch":null,"files":null,"tree":[],"storefront":"/r/tinovyatkin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tinovyatkin/pass-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}