I will answer here as my answer will also concern ParaView at some point.
Unfortunately, TTK is not natively available in JS, but I see several way of integrating TTK into a website:
If you have a server that can handle the computation, you can use a ParaView server with TTK and integrate the rendering with a project like visualizer or trame.
An alternative still relying on a server for the computation is to use the ttkWebSocketIO filter to send the data and then use a render engine you are filimiar with, using a plugin to handle the data. It may require low level interactions.
To use it natevely in Javascript, I am afraid I don’t know how to do that.
Thank you @Charles_Gueunet atleast i got some lead from your answer, i wasted my whole day trying to figure out what are the ways that i can do to implement the pipeline that i have already built in paraview with ttk plugin loaded somewhere in project.
When u mean i can use paraview server with TTK, you meant using python right? I am sorry i am also new to python also !!
The interaction with the pvserver will indeed be in python. If you use an existing web front-end, most of the python interaction will already be provided though. So you may not need to much python.
I would not recommend you to go from scratch and create a whole python client as it would be a lot of work, and people have already developed robust solution for this problem.