-
Notifications
You must be signed in to change notification settings - Fork 84
Libraries for SMART Health Cards
Josh Mandel edited this page Dec 1, 2021
·
3 revisions
For the most part, you can implement SMART Health Cards using a library for JWS and a library for QR codes, and stitching things together from there (see below). But we do have a few examples of "swiss army knife" style libraries for SMART Health Cards:
- .NET https://github.com/angusmillar/SmartHealthCard
- Ruby https://github.com/dvci/health_cards/tree/main/
- Golang https://github.com/amitkgupta/go-smarthealthcards
You'll need a library that supports generating multi-segment QRs, and allows control over the encoding mode for each segment. Here are some libraries that folks in the community have used:
- .NET https://www.nuget.org/packages/Net.Codecrete.QrCodeGenerator
- JS https://github.com/soldair/node-qrcode
- Java, TypeScript/JavaScript, Python, C++, C, Rust https://github.com/nayuki/QR-Code-generator
- http://qrlogo.kaarposoft.dk/qrdecode.html is very helpful browser-based tool (click "Produce debug output")
You'll need a library that supports binary payloads, and not just JSON payloads. Most JWS libraries handle this, but libraries limited to JWT do not.