
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
A React library to create realistic peeling effects with hooks, presets, and animations. Zero external dependencies.
React Peel is a React wrapper around peel.js that makes page peel, page flip, scratch card, and reveal effects easy to build. It ships with presets, hooks, and animation helpers, with no runtime dependencies beyond React.
usePeel hook for programmatic controlFull documentation and examples: https://iqbal-rashed.github.io/react-peel
npm install react-peel
import { PeelWrapper, PeelTop, PeelBack, PeelBottom } from "react-peel";
function MyComponent() {
return (
<PeelWrapper height={200} width={200} drag>
<PeelTop style={{ backgroundColor: "#81afcb" }} />
<PeelBack style={{ backgroundColor: "#a0c7df" }} />
<PeelBottom style={{ backgroundColor: "#688394" }}>
Content revealed here
</PeelBottom>
</PeelWrapper>
);
}
The three layer components map to the peel effect layers:
PeelTop is the layer that peels back.PeelBack is the underside of the peeled layer.PeelBottom is the content revealed underneath.<PeelWrapper preset="stickyNote" height={150} width={150} drag>
<PeelTop style={{ backgroundColor: "#fff9c4", padding: 16 }}>
Remember this
</PeelTop>
<PeelBack style={{ backgroundColor: "#fff59d" }} />
<PeelBottom style={{ backgroundColor: "#f5f5f5" }} />
</PeelWrapper>
Available presets:
stickyNote, pageFlip, revealCard, calendar, envelope, giftCard, photoAlbum, scratchCard
import { PeelWrapper, PeelTop, PeelBack, PeelBottom, usePeel } from "react-peel";
function RevealCard() {
const { peelRef, animate, reset } = usePeel();
const handleReveal = async () => {
await animate({
to: { x: -100, y: -100 },
duration: 800,
easing: "easeOut",
});
};
return (
<>
<button onClick={handleReveal}>Reveal</button>
<button onClick={reset}>Reset</button>
<PeelWrapper ref={peelRef} height={200} width={200}>
<PeelTop style={{ backgroundColor: "#e3f2fd" }} />
<PeelBack style={{ backgroundColor: "#bbdefb" }} />
<PeelBottom style={{ backgroundColor: "#90caf9" }}>
Surprise
</PeelBottom>
</PeelWrapper>
</>
);
}
"use client").MIT (c) Iqbal Rashed
FAQs
A React library to create realistic peeling effects with hooks, presets, and animations. Zero external dependencies.
We found that react-peel 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.