Show HN: Partycles – Zero-dependency React animations library with 11 effects

2 jonathanleane 1 6/6/2025, 10:31:27 AM github.com ↗

Comments (1)

jonathanleane · 1d ago
Hey HN! I built Partycles because I needed lightweight celebration animations for a React project and couldn't find anything that wasn't bloated with dependencies.

It's just one hook - useReward() - that gives you 11 different particle effects: confetti, fireworks, sparkles, hearts, stars, bubbles, snow, emoji, coins, lightning, and flower petals. The whole thing is under 10KB gzipped with zero dependencies.

Demo: https://jonathanleane.github.io/partycles

The library is MIT licensed and on GitHub. Would love contributions - especially new animation types or performance improvements. The codebase is pretty straightforward, each animation is its own module.

I'm using it in production for success notifications and user achievements. Works great on mobile too.

Tech: TypeScript, React 16.8+, rollup for bundling. No canvas - just DOM elements with CSS transforms, which keeps it simple and performant.

Happy to answer any questions!