first commit

This commit is contained in:
rus07tam 2026-01-07 14:47:29 +00:00
commit 8eb4fcf055
100 changed files with 28695 additions and 0 deletions

23
README.md Normal file
View file

@ -0,0 +1,23 @@
# XTLS SDK
![Code Quality](https://img.shields.io/codacy/grade/?logo=codacy)
![Code Size](https://img.shields.io/github/languages/code-size/RuJect/ts-xray-core)
![License](https://img.shields.io/github/license/RuJect/ts-xray-core)
![Open Issues](https://img.shields.io/github/issues-raw/RuJect/ts-xray-core)
![Commit Activity](https://img.shields.io/github/commit-activity/m/RuJect/ts-xray-core)
A TypeScript SDK for interacting with [Xray Core](https://github.com/XTLS/Xray-core) via gRPC API.
Example:
```ts
import { XrayClient } from '@ruject/xray-core';
const client = new XrayClient('127.0.0.1', '10000');
const req = await client.handler.addVmessUser({
email: 'test@example.com',
level: 0,
tag: 'vmess-in'
});
console.log(req.isOk)
```