#35296·element-web

Integration with tor-js to connect with .onion instances

Author: wjhfebnfjenweCreated Oct 1, 2026Updated Oct 1, 2026
LabelsT-Enhancement

Your use case

What would you like to do?

I would like to host an element-web client on a clearnet webserver that can use https://github.com/ethereum/tor-js to connect with my .onion matrix instance.

Why would you like to do it?

Two main reasons: make my matrix instance available to non-technical users without any additional software (tor client) and conversely allow any client reach "hidden" instances easily.

How would you like to achieve it?

I suppose element-web should simply import the right library and allow connecting to .onion sites. This would obviously be an experimental feature at first, controlled via config.json by the webserver admin. Since choosing a gateway is also an issue, it could either be chosen by the user or a default could be provided by the admin.

Have you considered any alternatives?

Tor .onion instances are widely adopted already and have multiple use cases for secure and private conversations. Bringing easy access to mass users will increase diversity and allow more people to reach interesting rooms. There is no alternative to the freedom which this brings.

Additional context

https://github.com/ethereum/tor-js https://ethereum.github.io/tor-js/index.html