Skip to content

remnawave/xray-monaco-editor

 
 

Repository files navigation

Xray Config Validator (xray-online)

Parse and validate xray's JSON configuration in your browser.

The basic idea is: Many GUI clients do not provide good error messages if a JSON config fails to load. Users don't want to run the core directly to find the error message. Therefore, let's use a browser tool in the style of jsonlint.com.

Try it out here

Because some configuration validation happens after parsing, some mistakes are not caught, only most typing mistakes. If you find an obvious gap that bothers you, raise an issue.

Contributing

xray-online uses a patched version of xray-core compiled to WASM. The build process is entirely driven through the Makefile. A POSIX shell is recommended, WSL is probably mandatory on Windows.

  • make build to build the WASM module from scratch.
  • make dev-lite to download the WASM module from GitHub instead.
  • make serve to launch the development server.

About

Online config editor&validor with Monaco editor

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 64.0%
  • Go 12.0%
  • Python 11.0%
  • JavaScript 6.9%
  • Makefile 3.1%
  • CSS 2.2%
  • HTML 0.8%