passkit
Version, currently master branch1 version
- master branchlatestMar 31, 2021
github.com/place-labs/passkit
No description declared in shard.yml.
1 stars
1 dependent
License: not declared
Installation
# Add this to your shard.yml
dependencies:
passkit:
github: place-labs/passkit
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 0.35.1
Dependencies
Development Dependencies
README
PassKit
Crystal shard for creating signed Apple Passes.
Installation
-
Add the dependency to your
shard.yml:dependencies: passkit: github: place-labs/passkit -
Run
shards install
Configuration
Configuration is achieved by specifying paths to various certificates private keys.
# Base64-encoded Pass certificate
export SIGNING_CERT=<...>
# Base64-encoded Pass key certificate
export PRIVATE_KEY=<...>
# Pass key certificate password (optional)
export PRIVATE_KEY_PASSWORD=purplemonkeydishwasher
# Base64-encoded Apple Worldwide Developer Relations Certification Authority certificate
export WWDR_CERT=<...>
Usage
require "passkit"
# Create a new pass definition
pass = PassKit::Pass.new(
pass_type_identifier: "pass.com.example",
organization_name: "Willy Wonka",
serial_number: "12345",
team_identifier: "TM123",
description: "The golden ticket",
logo_text: "Willy Wonka inc."
)
# Or ingest a pass.json
pass = PassKit::Pass.from_json(File.read("pass.json"))
# Now generate a signed .pkpass file
pk_pass = PassKit::PKPass.new(pass)
# Add some file or URL
pk_pass.add_file("icon.png", File.read("my_icon.png"))
pk_pass.add_url("http://example.org/icon.png")
# Do something with the generated file
File.write("GoldenTicket.pkpass", pk_pass.to_s)
Contributing
- Fork it (https://github.com/place-labs/passkit/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Mar 31, 2021
- Crystal
>= 0.35.1- Indexed
- yes
Dependents
Repository
github.com/place-labs/passkit
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1