Playground

See VerifyFetch in action. Try the live demo, explore code examples, and understand the memory benefits.

Live Demo

Watch real integrity verification happen in your browser. We'll fetch a file and verify its hash.

https://cdn.jsdelivr.net/npm/lodash@4.17.21/package.json
Computing...
Result
Click "Fetch & Verify" to run the demo

Code Examples

Basic

These are code examples for reference. Install VerifyFetch to run them in your project.

Memory Usage: Streaming vs Buffered

Native fetch with integrity buffers entire files. Use verifyFetchStream() to process chunks with constant ~2MB memory.

Buffered (fetch + integrity)
verifyFetchStream() (~2MB)

Note: Basic verifyFetch() also buffers the response. Use verifyFetchStream() for large files.

Ready to add integrity verification?

Get started with one command

npm install verifyfetch
View Documentation