Amnezia libXray fork
  • Go 98.6%
  • Shell 1.4%
Find a file
FrogRocky 5e0a0a1920
Merge pull request #3 from amnezia-vpn/frog/replace-xray-module
chore: use canonical Xray module path
2026-07-14 10:38:31 +02:00
doc revert stats support 2023-10-09 19:01:30 +08:00
main Move to AWG 2024-05-23 09:25:13 +03:00
nodep support new features of Xray-core 1.8.9 2024-03-11 20:06:26 +08:00
xray chore: update xray module path 2026-07-10 12:32:54 +02:00
.gitignore Modify android build 2024-05-27 12:21:11 +03:00
build.sh chore: update xray module path 2026-07-10 12:32:54 +02:00
controller.go export DialerController 2023-11-24 12:45:07 +08:00
controller_android.go chore: update xray module path 2026-07-10 12:32:54 +02:00
go.mod chore: update xray module path 2026-07-10 12:32:54 +02:00
go.sum chore: update xray module path 2026-07-10 12:32:54 +02:00
LICENSE init 2023-05-27 20:26:19 +08:00
logger_android.go Add log redirection for Android 2024-06-04 20:14:19 +03:00
nodep_wrapper.go Move to AWG 2024-05-23 09:25:13 +03:00
README.md remove findIp 2023-11-30 13:13:38 +08:00
tun2socks_wrapper.go Add tun2socks 2024-05-27 13:28:36 +03:00
xray_wrapper.go Move to AWG 2024-05-23 09:25:13 +03:00
xray_wrapper_android.go chore: update xray module path 2026-07-10 12:32:54 +02:00

libXray

This is an Xray wrapper focusing on improving the experience of Xray-core mobile development.

Note

  1. This repository has very limited maintainers. If you're not reporting a bug, or making a PR, your question will most likely be ignored.

  2. This lib does not guarantee the stability of the api, you need to adapt it by yourself.

  3. If your issue is about some Platform development, like iOS or Android, it will be just closed.

Features

nodep

file.go

write data to file.

memory.go

try to control the max memory.

port.go

get free port.

share.go

convert v2rayN subscriptions to Xray Json.

convert VMessAEAD/VLESS sharing protocol to Xray Json.

subscription.go

convert Xray Json to subscription links.

vmess.go

convert VMessQRCode to Xray Json.

xray_json.go

subset of Xray config, add name field to outbound.

support flattening outbounds.

xray

geo_cut.go

cut geosite.data 和 geoip.data.

geo.go

read geosite.dat and geoip.dat, generate json file and count rules, including Attribute.

ping.go

test the delay.

stats.go

read the

uuid.go

convert custom text to uuid.

validation.go

test Xray config.

xray.go

start and stop Xray instance.

lib package

build.sh

generate xcframework and aar.

It will always use the latest Xray-core.

controller.go

experimental Android support.

nodep_wrapper.go

export nodep.

xray_wrapper.go

export xray.

Credits

Project X

VMessPing

FreePort