Xray online config validator (Xray in WASM!) #3779
mmmray
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://mmmray.github.io/xray-online/ is a tool to parse and validate Xray configuration.
Many people are writing JSON config in various clients and panels. When mistakes happen, often the error message in some GUI just says "Invalid config" or even better, "core restarting". So, here's a tool that lets you find mistakes early, beyond just some JSON syntax errors, without the need to download and run the core from console.
The tool runs entirely in the browser and doesn't send any input anywhere. Xray's
conf/infra
module and its dependencies are compiled to WASM. geosite.dat and geoip.dat are taken from v2fly and embedded into the website as well.I had to fork xray so that it can be compiled to WASM. The patchset is a bit unelegant and should not be merged upstream, and it's easy to maintain separately. Maybe one day I figure out a way to refactor config in such a way that doesn't require a lot of
go:build
comments.Sourcecode here: https://github.com/mmmray/xray-online -- feedback welcome
Beta Was this translation helpful? Give feedback.
All reactions