Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandercerutti/hono-passkit-webservice
Easy-to-plug integration of Apple Wallet Web Services with hono.dev
https://github.com/alexandercerutti/hono-passkit-webservice
apple apple-passkit apple-wallet ios passkit wallet
Last synced: about 2 months ago
JSON representation
Easy-to-plug integration of Apple Wallet Web Services with hono.dev
- Host: GitHub
- URL: https://github.com/alexandercerutti/hono-passkit-webservice
- Owner: alexandercerutti
- License: mit
- Created: 2024-11-04T23:17:33.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-04T23:23:46.000Z (2 months ago)
- Last Synced: 2024-11-24T18:34:27.332Z (about 2 months ago)
- Topics: apple, apple-passkit, apple-wallet, ios, passkit, wallet
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hono Passkit WebService
Integrate Apple Wallet Web services in your current (or new) Hono.dev integration.
## Architecture
Hono Passkit Webservice, as the name says, wraps Apple Wallet specifications into a Hono integration.
It exposes a set of middlewares / routes that will let yourself to dedicate exclusively to the integration of the business logic.
Each plugin represents a subscription to an endpoint defined in [Apple Wallet Developer Documentation](https://developer.apple.com/documentation/walletpasses/adding_a_web_service_to_update_passes).
Everything is designed to provide a good developer experience. It is fully compatible with Typescript.
This package is an integration of [passkit-webservice-toolkit](https://github.com/alexandercerutti/passkit-webservice-toolkit). Visit it for other integrations.
### Installation
```sh
$ npm install hono-passkit-webservice
```---
## API Documentation
All the details are available in the project wiki.
---
### Usage example
All the exposed middlewares work like this:
```js
import { Hono } from "hono";
import registrationRouter from "hono-passkit-webservice/v1/registration.js";const app = new Hono();
app.route("/", registrationRouter({
async onRegister(deviceLibraryIdentifier, passTypeIdentifier, serialNumber, pushToken) {
/** your implementation */
}
async onUnregister(deviceLibraryIdentifier, passTypeIdentifier, serialNumber) {
/** your implementation */
}
}));
```