Diffy.js
Open Source Software, 2016 - 2025
This library came out of my browser-based interactive experiments and from the need to extract motion data from the webcam through the getUserMedia API. This is the cleaned up version of that code. Hat tip to Soundstep for the technique used in this library. Originally published in 2016, I released v2.0 in August 2025 which uses Rust and WebAssembly for a much higher performance:
What’s New in v2.0:
- 3-5x Performance Improvement: Completely rewritten core with optimized algorithms
- WebAssembly-Ready: Built with Rust foundation for future WASM integration
- 60% Memory Reduction: Efficient memory management and reduced garbage collection
- 100% Backward Compatible: Same API, zero breaking changes
+
- Technique - Rust -> WebAssembly, JavaScript (ES2015, Node.js, Babel, Webpack)
- Inspiration - Magic Xylophone by Soundstep