
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@alpinebricks/knob
Advanced tools
A knob ring gauge
Include the Alpinejs lib in your html:
<script type="text/javascript" src="https://unpkg.com/alpinejs@3.9.1/dist/cdn.min.js" defer></script>
Include the component:
<script src="https://unpkg.com/@alpinebricks/knob@0.0.1/dist/index.min.js"></script>
Initialize it and animate to a given value when it displays:
<script>
var $knob;
document.addEventListener('alpine:init', () => {
$knob = $knobRing.create();
// run the initial animation
$knob.animate(30);
// and later run update to animate to a value
$knob.update(40);
});
</script>
Declare the component:
<knob-ring id="knob1" x-cloak x-data stroke="10" radius="100" bg="lightgray"
:progress="$knob.progress" :color="$knob.color">
</knob-ring>
Standard parameters:
stroke: stroke width of the circleradius: controls the size of the circlebg: the background circle colorWatched parameters:
progress: the displayed valuecolor: the main circle coloranimate(v: number): animate the initial valueupdate(v: number): animate to a valueincrement(v?: number): increment the progress by a value, by 1 if not provideddecrement(v?: number): decrement the progress by a value, by 1 if not providedIt is possible to provide a color function at init time to control the main circle color from the progress value. Example:
<script>
var $knob;
document.addEventListener('alpine:init', () => {
$knob = $knobRing.create({
colorFunc: (v) => {
if (v < 50) {
return "red" // or any color code
} else if (v < 80) {
return "orange"
} else {
return "green"
}
}
});
});
</script>
FAQs
An knob ring gauge widget for Alpinejs
We found that @alpinebricks/knob demonstrated a not healthy version release cadence and project activity because the last version was released 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.