# Building ITK with emscripten

**URL:** https://discourse.itk.org/t/building-itk-with-emscripten/2919
**Category:** Beginner Questions
**Created:** [April 10, 2020, 4:32am UTC](https://discourse.itk.org/t/building-itk-with-emscripten/2919 "2020-04-10T04:32:34Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [April 10, 2020, 5:58pm UTC](https://discourse.itk.org/t/building-itk-with-emscripten/2919/5 "2020-04-10T17:58:54Z")

</div>

itk.js provides ITK 5.1 RC 3 compiled with Emscripten.

itk.js minimizes the need to learn JavaScript. If you have a segmentation pipeline written ITK / C++, itk.js makes it easy to build it and run it in a browser.

To build it, `npx itk-js build .` as described here:

[https://insightsoftwareconsortium.github.io/itk-js/examples/hello\_world\_node.html](https://insightsoftwareconsortium.github.io/itk-js/examples/hello_world_node.html)

Here is what a simple test pipeline looks like (note that it is only standard ITK /CMake / C++):

[https://github.com/InsightSoftwareConsortium/itk-js/tree/master/test/MedianFilterPipeline](https://github.com/InsightSoftwareConsortium/itk-js/tree/master/test/MedianFilterPipeline)

Here is how to call it:

[https://github.com/InsightSoftwareConsortium/itk-js/blob/16fe9367de0a28a29f3a4c17ad181ff3731ec168/test/Browser/runPipelineBrowserTest.js#L143-L155](https://github.com/InsightSoftwareConsortium/itk-js/blob/16fe9367de0a28a29f3a4c17ad181ff3731ec168/test/Browser/runPipelineBrowserTest.js#L143-L155)

---

_[View the full topic](https://discourse.itk.org/t/building-itk-with-emscripten/2919)._
