
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
alpinejs-scroll-amount
Advanced tools
Track the users scroll position and their progress on the page 🤿
<script
defer
src="https://unpkg.com/alpinejs-scroll-amount@latest/dist/scroll-amount.min.js"
></script>
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
yarn add -D alpinejs-scroll-amount
npm install -D alpinejs-scroll-amount
import Alpine from 'alpinejs'
import scrollAmount from 'alpinejs-scroll-amount'
Alpine.plugin(scrollAmount)
Alpine.start()
<div
x-data="{ scrollPos: {} }"
x-init="scrollPos = $scrollAmount"
x-on:scroll.window="scrollPos = $scrollAmount"
>
<span
class="h-px bg-green-500"
:class="{ 'bg-green-600': scrollPos.atEnd }"
:style="{ width: `${scrollPos.scrollPercent}%` }"
>
</span>
<article> ... </article>
</div>
This is a basic example of showing a progress bar based on the user scroll.
return {
scrollPx: 0,
scrollPercent: 0,
atStart: true / false,
atEnd: true / false,
}
FAQs
Track the users scroll position and their progress on the page 🤿
The npm package alpinejs-scroll-amount receives a total of 50 weekly downloads. As such, alpinejs-scroll-amount popularity was classified as not popular.
We found that alpinejs-scroll-amount 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.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.