Skip to content

Projects

One makes buttons celebrate. The other makes programmed drums sound less robotic.

react-rewards

Micro-interactions for React. Reward your users with confetti, emoji, balloons, fireworks or a pop of stars.

  • 1,686 GitHub stars
  • 147K npm downloads a week
  • Draws with WebGL2, and falls back to Canvas 2D
  • About 7.5 kB gzipped for useReward and confetti
  • Built with TypeScript, for React 18 or later
  • Stays quiet for people who prefer reduced motion

npm install react-rewards

Why I care about microinteractions

Fire a react-rewards effect
Pick an effect. The library loads when you first reach for it.
In your app
const ref = useRef(null);
const { reward } =
  useReward(ref, confetti);

<button
  ref={ref}
  onClick={() => reward()}
>
  Reward me
</button>

human-o-matic

An MCP server that re-performs programmed drum MIDI section by section, steered by your answers.

  • 117 drum libraries with 161 kits built in
  • Written in Python
  • Never writes over your input file
  • The same session and seed always give the same file
  1. YouHumanize ~/songs/song.mid. It's General MIDI, and I play it with Superior Drummer 3.
  2. AgentReading it as gm and writing for superior-drummer-3, I found 4 sections. A: bars 1 to 8, hats, 2 crash hits. B: bars 9 to 24, crash riding, half-time. C: bars 25 to 40, china riding, double kick. B repeats at bars 41 to 56. The snare has 34 soft notes, and bar 33 could be triplets or loose 16ths. Do these look right?
  3. YouYes, the soft notes are ghosts. Bar 33 is triplets.
  4. AgentWhat kind of drummer overall: tight and modern, or looser?
  5. YouTight, modern metal.
  6. AgentWhat's the energy in bars 25 to 40 (china riding, double kick)?
  7. YouIt's a breakdown, full power.
  8. AgentTaking that as maximum energy, tight, little light and shade: kick about 121 to 127, backbeats 124 to 127, timing spread about 2.0 ms. It's in song-2.mid: drag it into the DAW and play from bar 25. Sound right?
An example from the README. The words and numbers depend on the song.