
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@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
 
The npm package @remnawave/xtls-sdk-nestjs receives a total of 46 weekly downloads. As such, @remnawave/xtls-sdk-nestjs popularity was classified as not popular.
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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

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