# Do I need to install the full Paraview just for ParaViewWeb?

**URL:** https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304
**Category:** Web Support
**Created:** [November 1, 2021, 11:58pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304 "2021-11-01T23:58:58Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![feacluster](https://discourse.paraview.org/user_avatar/discourse.paraview.org/feacluster/32/7856_2.png) [@feacluster](https://discourse.paraview.org/u/feacluster)
#### Post date: [November 1, 2021, 11:58pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/1 "2021-11-01T23:58:58Z")

</div>

My machine is running low on disk space so I am wondering if I have to install the full paraview (2-3GB) just to use ParaViewWeb? I am only planning to use ParaViewWeb to serve vtk files in a web browser for multiple users.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [November 2, 2021, 2:33pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/2 "2021-11-02T14:33:38Z")

</div>

Are you looking for serving the geometry or also doing remote rendering?

Also, depending on the types of files you have, vtk.js might be able to read and render them directly. If that is the case, you will just need to build a client and your server can simply be an nginx/apache.

Otherwise, you can also use VTK to do the same thing (VTK Web). We have some examples on how to use Trame [here](https://github.com/Kitware/trame/tree/master/examples/VTK) with VTK. With Trame, you will have to do the same setup as ParaViewWeb for serving multiple users by configuring a launcher and an apache on the front for the routing. But it should be easier and faster to develop the web app that you are looking for.

---

<div class="post-metadata">

### Author: ![feacluster](https://discourse.paraview.org/user_avatar/discourse.paraview.org/feacluster/32/7856_2.png) [@feacluster](https://discourse.paraview.org/u/feacluster)
#### Post date: [November 2, 2021, 11:53pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/3 "2021-11-02T23:53:13Z")

</div>

Thanks for the tips! I was not aware of vtk.js nor Trame. Basically I want users on the internet to visualize small vtk files like these:

[https://calculix.feacluster.com/one\_element.vtk](https://calculix.feacluster.com/one_element.vtk)  
[https://calculix.feacluster.com/beam.vtk](https://calculix.feacluster.com/beam.vtk)

They will rarely be more than 100 kb. And I don’t expect more than a few visitors a day to be viewing them.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [November 3, 2021, 2:41pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/4 "2021-11-03T14:41:01Z")

</div>

Then I will go with a plain vtk.js app while having a basic web server providing access to your file via http.  
You might even use our self hosted [ParaView Glance](https://kitware.github.io/paraview-glance/) to read and show your files. You can even look at [this guide](https://kitware.github.io/paraview-glance/doc/loading_files.html) to see how you can use the url to make the app load your data directly.

I just tried loading your file and it worked but not from the url as the reader factory might be missing a `*.vtk` which might be supported by itk.js.

FYI @Forrest_Li

If you want it in plain JS (rather than wasm with itk.js), you may have to fix/improve the existing legacy reader inside vtk.js to properly read your vtk files.

---

<div class="post-metadata">

### Author: ![feacluster](https://discourse.paraview.org/user_avatar/discourse.paraview.org/feacluster/32/7856_2.png) [@feacluster](https://discourse.paraview.org/u/feacluster)
#### Post date: [November 4, 2021, 1:30am UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/5 "2021-11-04T01:30:33Z")

</div>

ParaView Glance seems perfect! I was able to manually upload my files and visualize them!! However, I could not get it to load my data directly. I tried just using the diskout.vtp file in the guide, but that did not work. Here is the URL I tried:

[https://kitware.github.io/paraview-glance/app/?name=diskout.vtp&url=https://calculix.feacluster.com/diskout.vtp](https://kitware.github.io/paraview-glance/app/?name=diskout.vtp&url=https://calculix.feacluster.com/diskout.vtp)

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [November 4, 2021, 2:25pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/6 "2021-11-04T14:25:46Z")

</div>

You have a CORS issue

```auto
Access to XMLHttpRequest at 'https://calculix.feacluster.com/diskout.vtp' from origin 'https://kitware.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

```

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [November 4, 2021, 2:26pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/7 "2021-11-04T14:26:40Z")

</div>

If need be you can host Glance on your server since it is just static html/css/js files.

---

<div class="post-metadata">

### Author: ![feacluster](https://discourse.paraview.org/user_avatar/discourse.paraview.org/feacluster/32/7856_2.png) [@feacluster](https://discourse.paraview.org/u/feacluster)
#### Post date: [November 4, 2021, 4:07pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/8 "2021-11-04T16:07:14Z")

</div>

Thanks. I think for now I will ask users to manually download then upload the file to the public ParaView Glance page. A little extra mouse clicks, but ok for now as there is not much usage of it.

Later I can look into installing my own Glance if need be…

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [November 4, 2021, 4:20pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/9 "2021-11-04T16:20:56Z")

</div>

The two solutions are:

- Update the CORS policy on your Web server to allow the files to be loaded by Glance from [github.io](http://github.io).
- Clone gh-pages branch from git repo and copy the /app or /latest directory on your server. Nothing to build.

---

<div class="post-metadata">

### Author: ![feacluster](https://discourse.paraview.org/user_avatar/discourse.paraview.org/feacluster/32/7856_2.png) [@feacluster](https://discourse.paraview.org/u/feacluster)
#### Post date: [November 4, 2021, 4:46pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/10 "2021-11-04T16:46:47Z")

</div>

Awesome, I got it working by updating the CORS policy on my web server per these instructions here:

> **[How to Enable CORS in Apache Web Server - Ubiq BI](https://ubiq.co/tech-blog/enable-cors-apache-web-server/)**
>
> CORS allows you to accept cross domain requests on your website. Here's how to enable CORS in Apache web server.

When I first read your message I just assumed CORS policy was something on kitware’s server.

Do you recommend zipping the VTU files first? For now I expect them to be less than a 100kB. But they could be as large as 100+MB upto 1 GB…

You can see an example of what I am doing here:

[https://www.feacluster.com/web\_calculix.php](https://www.feacluster.com/web_calculix.php)

After clicking the solve button, wait 5 seconds then click the button in the top right to view model in 3D.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [November 4, 2021, 5:28pm UTC](https://discourse.paraview.org/t/do-i-need-to-install-the-full-paraview-just-for-paraviewweb/8304/11 "2021-11-04T17:28:45Z")

</div>

The vtu format itself support compression and you should use that instead of “zipping” the file.

Also, you should use `https://kitware.github.io/paraview-glance/nightly` rather than the default that seems to have an issue with the itk.js part (wasm reader).

Otherwise that is pretty cool!
