
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
qr-element-extended
Advanced tools
A simple wrapper for QR code generation and scanning in webcomponents
This goal of this project is to create a simple wrapper for web components that provides much of the useful functionality of lifecycle frameworks like react without the complication or overhead.
In particular there is no compile-time step for this library, each of the files can be loaded as a module.
To use this, (currently, until its on npmjs.com)
To a caller add to package.json/dependencies
"html-element-extended": "https://github.com/mitra42/html-element-extended",
Then in your webcomponents.js file for example include it with
import { EL, HTMLElementExtended, getUrl } from './node_modules/html-element-extended/htmlelementextended.js';
import { ContentVideo } from './node_modules/html-element-extended/videoelementextended.js';
import { QRScanExtended, QRCodeExtended } from './node_modules/html-element-extended/qrlementextended.js';
To add a new module,
Each module is documented internally but as a TL;DR
** htmlelementextended.js
Provides HTMLElementExtended which can be used instead of HTMLElement to create your own web components, but has the key functionality already there.
** qrelementextended.js
Use HTMLElementExtended to build a QR scanner and a QR display
** videoelementextended.js
Uses HTMLElementExtended to create yaml2sqlite.jsa number of video webComponents that know how to display videos from a variety of sources (based on the URL) allowing a single component to handle YouTube, Vimeo, Internet Archive, WebTorrent etc.
Note - all of these are under development. If you use them please introduce yourself in a git issue, and I'll bear this in mind when making any breaking revisions.
** eventbus.js A simple event handler to hide the mechanisms
const bus = new EventBus
** Upgrading packages There is a fair bit of instability at the moment (July 2023) in npm with modules and commonJS coexisting. The following document some of the issues with upgrading *** webtorrent At some point webtorrent.min.js was moved into dist/ certainlsqllib.jsy there in 2.1.13
FAQs
A simple wrapper for QR code generation and scanning in webcomponents
We found that qr-element-extended demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.