µQR: introduce uqr js library, use for QR codes #7102
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
original idea by @Ansuel in #7069
FAO also: @jow- @feckert @hnyman
µQR is ~13K, providing a light-weight option, outputting to only SVG for at least luci-proto-wireguard (example included).
Original library here.
I investigated doing this via ucode RPC calls to avoid a
require
, but this adds a conversion step from js to ucode, so no go. Depending on the 13K lib is acceptable.@Ansuel also suggests QR codes for wifi. I could add those also.
Compare: On X86_64 23.05.3, to produce QR codes requires a lib and binary weighing ~ 70K today (>500% bigger).
On ath79 23.05.3, to produce QR codes requires a lib and binary weighing ~ 129K today (~1000% bigger).
qrencode is a decent tool and can output to a number of formats largely unused on openwrt.
Signed-off-by: <[email protected]>
row (viagit commit --signoff
)<package name>: title
first line subject for packagesPKG_VERSION
in the Makefile