
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@remnawave/xtls-sdk-nestjs
Advanced tools
 
A NestJS module wrapper for the XTLS SDK, providing seamless integration of XTLS functionality into your NestJS applications.
npm install @remnawave/xtls-sdk-nestjs
import { XtlsSdkNestjsModule } from '@remnawave/xtls-sdk-nestjs';
@Module({
imports: [
XtlsSdkNestjsModule.forRoot({
ip: 'your-ip-address',
port: 'your-port',
}),
],
})
export class AppModule {}
import { XtlsSdkNestjsModule } from '@remnawave/xtls-sdk-nestjs';
@Module({
imports: [
XtlsSdkNestjsModule.forRootAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => ({
ip: configService.get('XTLS_IP'),
port: configService.get('XTLS_PORT'),
}),
inject: [ConfigService],
}),
],
})
export class AppModule {}
Use the @InjectXtls() decorator to inject the XTLS SDK instance into your services:
import { Injectable } from '@nestjs/common';
import { InjectXtls } from '@remnawave/xtls-sdk-nestjs';
import { XtlsApi } from '@remnawave/xtls-sdk';
@Injectable()
export class YourService {
constructor(@InjectXtls() private readonly xtlsApi: XtlsApi) {}
async yourMethod() {
// Use xtlsApi here
}
}
| Option | Type | Description |
|---|---|---|
| ip | string | The IP address for the XTLS connection |
| port | string | The port number for the XTLS connection |
forRoot(options: XtlsModuleOptions): Static method for synchronous module configurationforRootAsync(options: AsyncModuleOptions): Static method for asynchronous module configuration@InjectXtls(): Decorator for injecting the XTLS SDK instanceAGPL-3.0-only
Contributions are welcome! Please feel free to submit a Pull Request.
For support, please open an issue in the GitHub repository.
FAQs
 
We found that @remnawave/xtls-sdk-nestjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies