
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@paxapos/av-inputs
Advanced tools
A high-performance StencilJS library providing optimized web components for camera, barcode scanning, and data input operations. Built for production environments with focus on performance, reliability, and cross-browser compatibility.
Camera-based barcode/QR scanner
Hardware barcode scanner input
AI-powered face detection & recognition
Simple webcam photo capture
Feature | input-barcode | input-scan-reader | input-face-api-webcam | input-file-from-webcam |
---|---|---|---|---|
Input Method | Camera scanning | Hardware scanner | AI face detection | Camera photo |
Processing | Real-time decode | Keyboard events | Neural networks | Simple capture |
Performance | Medium CPU | Minimal CPU | High CPU | Low CPU |
Use Case | Mobile/tablet scanning | Fixed scanner stations | Security/attendance | Quick photos |
<!-- Camera barcode scanning -->
<input-barcode
facing-mode="environment"
width="400px"
height="300px">
</input-barcode>
<!-- Hardware scanner input -->
<input-scan-reader
scan-title="Scan ID Card"
modal-timer="2000">
</input-scan-reader>
<!-- Face detection -->
<input-face-api-webcam
auto-capture="true"
score-threshold="0.8">
</input-face-api-webcam>
<!-- Simple photo capture -->
<input-file-from-webcam
auto-start="true"
image-quality="0.9">
</input-file-from-webcam>
const elInputFileFromWebcam = document.getElementById("my-input");
elInputFileFromWebcam.addEventListener("click", (ev) => {
elInputFileFromWebcam.takePic().then( (pic) => console.info("here is your picture", pic))
});
defaults to 460px in canvas you must set always the width
defaults to 460px in canvas you must set always the height
we uses "user" or "environment" but you have others. If you don't write this property. the element will change facinbg Mode each time you click the element
For more FacingModel optiones you cant read here https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/facingMode#value
you can override the default behaviour by adding a callback function here. if you put something here. will execute this function for doing a canvas.drawImage
you must call ctx.drawImage(this.elVideo, left, top, imgSize, imgSize, 0,0, this.canvas.width, this.canvas.height) inside your function
we are just bypassing the callback function
let ctx = this.canvas.getContext('2d');
functionCallback.call(ctx, elVideo, left, top, imgSize, imgSize, 0,0, this.canvas.width, this.canvas.height);
```js
# Methods
## takePic
you can easily take a picture by calling this method in your element
```js
elInputFileFromWebcam.takePic().then( (pic) => console.info("here is your picture", pic))
Change front or back camera
elInputFileFromWebcam.toggleCamera()
returns a File
elInputFileFromWebcam.addEventListener("pictureTaken", (pic) => console.info("here is my pic from callback", pic))
returns a ConstrainDOMString each time a FacingModel was changed
elInputFileFromWebcam.addEventListener("facingModeChanged", (fm) => console.info("here is your facing Mode now", fm))
[2.1.0] - 2025-08-22
FAQs
Stencil Component Input webcam
The npm package @paxapos/av-inputs receives a total of 27 weekly downloads. As such, @paxapos/av-inputs popularity was classified as not popular.
We found that @paxapos/av-inputs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.