{"id":25238641,"url":"https://github.com/nabikaz/xray-link-json","last_synced_at":"2026-04-30T07:44:40.243Z","repository":{"id":275062111,"uuid":"924951432","full_name":"NabiKAZ/Xray-Link-Json","owner":"NabiKAZ","description":"This program takes input from the command line and checks whether the input is a JSON or a link. If the input is a JSON, it converts it to Share links, and if the input is a link, it converts it to JSON. This is done using functions from the libXray library, and the result is encoded in Base64.","archived":false,"fork":false,"pushed_at":"2025-01-30T23:48:21.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T19:36:02.540Z","etag":null,"topics":["json","link","trojan","vless","vmess","xray"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NabiKAZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-30T23:42:54.000Z","updated_at":"2025-01-31T14:38:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"634b4fce-f8df-4793-8cb7-abd9a120a094","html_url":"https://github.com/NabiKAZ/Xray-Link-Json","commit_stats":null,"previous_names":["nabikaz/xray-link-json"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2FXray-Link-Json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2FXray-Link-Json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2FXray-Link-Json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NabiKAZ%2FXray-Link-Json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NabiKAZ","download_url":"https://codeload.github.com/NabiKAZ/Xray-Link-Json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393558,"owners_count":20931809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","link","trojan","vless","vmess","xray"],"created_at":"2025-02-11T17:52:51.718Z","updated_at":"2026-04-30T07:44:40.202Z","avatar_url":"https://github.com/NabiKAZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DESCRIPTION\r\nThis program takes input from the command line and checks whether the input is a JSON or a link.\r\nIf the input is a JSON, it converts it to Share links, and if the input is a link, it converts it to JSON.\r\nThis is done using functions from the libXray library, and the result is encoded in Base64.\r\n \r\n# INSTALL\r\n`go mod tidy`\r\n\r\n# USAGE\r\nExample:\\\r\n`go run main.go \"vless://123456789@example.com:443?security=tls\u0026sni=sni.example.com\u0026type=ws\u0026host=host.example.com\u0026path=%2F#sample-vless\"`\r\n\r\nOutput:\r\n```\r\n{\"success\":true,\"data\":{\"transport\":null,\"log\":null,\"routing\":null,\"dns\":null,\"inbounds\":null,\"outbounds\":[{\"protocol\":\"vless\",\"sendThrough\":\"sample-vless\",\"tag\":\"\",\"settings\":{\"vnext\":[{\"address\":\"example.com\",\"port\":443,\"users\":[{\"id\":\"123456789\",\"encryption\":\"none\"}]}]},\"streamSettings\":{\"address\":null,\"port\":0,\"network\":\"ws\",\"security\":\"tls\",\"tlsSettings\":{\"allowInsecure\":false,\"certificates\":null,\"serverName\":\"sni.example.com\",\"alpn\":null,\"enableSessionResumption\":false,\"disableSystemRoot\":false,\"minVersion\":\"\",\"maxVersion\":\"\",\"cipherSuites\":\"\",\"fingerprint\":\"\",\"rejectUnknownSni\":false,\"pinnedPeerCertificateChainSha256\":null,\"pinnedPeerCertificatePublicKeySha256\":null,\"curvePreferences\":null,\"masterKeyLog\":\"\",\"serverNameToVerify\":\"\"},\"realitySettings\":null,\"rawSettings\":null,\"tcpSettings\":null,\"xhttpSettings\":null,\"splithttpSettings\":null,\"kcpSettings\":null,\"grpcSettings\":null,\"wsSettings\":{\"host\":\"host.example.com\",\"path\":\"/\",\"headers\":null,\"acceptProxyProtocol\":false,\"heartbeatPeriod\":0},\"httpupgradeSettings\":null,\"sockopt\":null},\"proxySettings\":null,\"mux\":null}],\"policy\":null,\"api\":null,\"metrics\":null,\"stats\":null,\"reverse\":null,\"fakeDns\":null,\"observatory\":null,\"burstObservatory\":null}}\r\n```\r\n\r\nExample:\\\r\n`go run main.go \"dm1lc3M6Ly9leGFtcGxlLmNvbTo0NDM=\"`\r\n\r\nOutput:\r\n```\r\n{\"success\":true,\"data\":{\"transport\":null,\"log\":null,\"routing\":null,\"dns\":null,\"inbounds\":null,\"outbounds\":[{\"protocol\":\"vmess\",\"sendThrough\":\"\",\"tag\":\"\",\"settings\":{\"vnext\":[{\"address\":\"example.com\",\"port\":443,\"users\":[{\"id\":\"\",\"security\":\"\",\"experiments\":\"\"}]}]},\"streamSettings\":null,\"proxySettings\":null,\"mux\":null}],\"policy\":null,\"api\":null,\"metrics\":null,\"stats\":null,\"reverse\":null,\"fakeDns\":null,\"observatory\":null,\"burstObservatory\":null}}\r\n```\r\n\r\nExample:\\\r\n`go run main.go \"{\\\"outbounds\\\":[{\\\"protocol\\\":\\\"vless\\\",\\\"settings\\\":{\\\"vnext\\\":[{\\\"address\\\":\\\"example.com\\\",\\\"port\\\":443}]}}]}\"`\r\n\r\nOutput:\r\n```\r\n{\"success\":true,\"data\":\"vless://example.com:443\"}\r\n```\r\n\r\n# AUTHOR\r\nProgrammer: NabiKAZ ([x.com/NabiKAZ](x.com/NabiKAZ))\r\n\r\n# DONATION\r\nIf this project was useful for you and you are willing, you can make me happy by giving a Star at the top of this GitHub page. \\\r\nAlso this is my wallet address for Donate:\r\n\r\nUSDT (TRC20): `TEHjxGqu5Y2ExKBWzArBJEmrtzz3mgV5Hb` \\\r\nTON: `UQAzK0qhttfz1kte3auTXGqVeRul0SyFaCZORFyV1WmYlZQj`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabikaz%2Fxray-link-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnabikaz%2Fxray-link-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabikaz%2Fxray-link-json/lists"}