Ticket generation: QR codes, SVG tickets, and Apple Wallet passes.

  • QR codes — SVG-based QR code generation for check-in URLs
  • SVG tickets — visual ticket images for email attachments
  • Apple Wallet.pkpass file generation with PKCS#7 signing

Functions

f
buildInfoLines

Build info lines from ticket data (non-PII event and booking details)

f
buildPkpass

Build a complete .pkpass file as a Uint8Array (ZIP archive)

f
buildTicketUrl
No documentation available
f
createManifest

Create manifest.json mapping filenames to SHA-1 hashes

f
extractSvgContent

Extract the inner content of an SVG element (strip the outer <svg> wrapper)

f
extractViewBox

Extract the viewBox from an SVG element to compute its coordinate space

f
generatePassJson

Build the pass.json content from pass data and signing credentials

f
generateQrSvg

Generate an SVG string for a QR code encoding the given text. Returns a complete <svg> element suitable for inline embedding.

f
generateSvgTicket

Generate a standalone SVG ticket with QR code and event/booking details. Returns a complete SVG document string.

f
isValidPemCertificate

Validate that a string is a parseable PEM certificate

f
isValidPemPrivateKey

Validate that a string is a parseable PEM private key

f
sha1Hex

Compute SHA-1 hex digest of a Uint8Array

f
signManifest

Sign the manifest with PKCS#7 detached signature

Type Aliases

Variables

v
WALLET_ICONS

Decoded icon files for inclusion in .pkpass bundles