A live demo is available: epanet.de/js/
Please be patient while the app is loading - it's a full-fledged hydraulic analysis engine and takes longer to load than the average website.
The epanet.js app is not finished, its future development also depends on your feedback. One of the envisaged features is a GIS editor interface.
Please use and extend epanet.js - it's open source.
Download the current epanet.js release as a tarball: epanet.js-220.127.116.11.tar.xz
Note that simple adjustments, like an exchange of the default INP file data just require a text editor and only minimum HTML editing skills.
A shell like Bash can be used to build epanet.js. Starting from the tarball, use the following commands to build js.html (configure is created using Autotools):
You can use this approach on platforms like Windows, if you don't have a shell like Bash available. Make sure that the emcc compiler is in your path. In the src folder, run the following command:
emcc -O1 epanet.c hash.c hydraul.c inpfile.c input1.c input2.c input3.c mempool.c output.c quality.c report.c rules.c smatrix.c -o js.html --pre-js js/pre.js --shell-file shell.html --js-library js/library.js -s EXPORTED_FUNCTIONS="['_main', '_hour']"
This approach works from tarball and cloned git repository.
Several libraries are used in epanet.js:
The epanet.js source code is available on Github: github.com/sdteffen/epanet.js