A ready-to-use diff component
Written by Stefan Judis
- Published at
- Updated at
- Reading time
- 1min
I just stumbled over this package: @pierre/diffs.
@pierre/diffsis an open source diff and code rendering library. It's built on Shiki for syntax highlighting and theming, is super customizable, and comes packed with features.
The package just hit v1 and seems to be pretty new. The docs live on diffs (no idea how one could snatch this domain in 2026) and it looks amazing.
It comes as a React and Vanilla JS component, supports server-side rendering, and the configuration options look solid.
Disclaimer: I haven't tried diffs but I can imagine that I will take it as a starter for this blog eventually.

If you enjoyed this article...
Join 6.3k readers and learn something new every week with Web Weekly.
Reply to this post and share your thoughts via good old email.

