# Npm install HDF5 tools (h5dump, h5repack) as static WASM/JS

**URL:** <https://forum.hdfgroup.org/t/npm-install-hdf5-tools-h5dump-h5repack-as-static-wasm-js/13587>\
**Category:** HDF5 Ancillary Tools\
**Created:** [November 13, 2025, 10:04pm UTC](https://forum.hdfgroup.org/t/npm-install-hdf5-tools-h5dump-h5repack-as-static-wasm-js/13587 "2025-11-13T22:04:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian.maranville](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@brian.maranville](https://forum.hdfgroup.org/u/brian.maranville)\
**Post date:** [November 13, 2025, 10:04pm UTC](https://forum.hdfgroup.org/t/npm-install-hdf5-tools-h5dump-h5repack-as-static-wasm-js/13587/1 "2025-11-13T22:04:01Z")

</div>

I just refactored my build of libhdf5 etc. to WebAssembly, and with a little extra effort I was able to compile the tools (`h5ls`, `h5dump`, `h5repack`, etc.) to executable Javascript CLI programs. The full hdf5 library is statically linked in each one, so they’re a little big (3+ MB each)

To try it out, if you have nodejs installed you can do

`npm install hdf5-wasm-tools`

and then you can use any of the tools, e.g.

`npx h5dump myfile.h5`

(tools also run in the `bun` JS runtime)
