New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@outray/nest

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@outray/nest

NestJS plugin to automatically expose your dev server via Outray tunnel

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

@outray/nest

NestJS integration for Outray, the open-source tunneling solution. Automatically expose your local NestJS server to the internet during development.

Installation

npm install @outray/nest
# or
pnpm add @outray/nest
# or
yarn add @outray/nest

Usage

Import the outray function and call it in your main.ts file after your application starts listening.

import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { outray } from '@outray/nest';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  
  // Start the server
  await app.listen(3000);

  // Start the tunnel in development
  if (process.env.NODE_ENV !== 'production') {
    await outray(app);
  }
}
bootstrap();

Configuration

You can pass options to the outray function:

await outray(app, {
  // Optional: Explicitly specify port (auto-detected otherwise)
  port: 3000,
  
  // Optional: Request a specific subdomain
  subdomain: 'my-cool-app',
  
  // Optional: Use a custom domain
  customDomain: 'api.example.com',
  
  // Optional: Suppress console output
  silent: false,
});

Options Reference

OptionTypeDefaultDescription
portnumberAuto-detectedThe local port your NestJS app is running on.
subdomainstringRandomRequest a specific subdomain.
apiKeystringprocess.env.OUTRAY_API_KEYYour Outray API key.
enabledbooleantrue (in dev)Whether to enable the tunnel.
silentbooleanfalsespecific to Console logs.
onTunnelReady(url: string) => void-Callback when tunnel is ready.

License

MIT

Keywords

nestjs

FAQs

Package last updated on 10 Feb 2026

Did you know?

Socket

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.

Install

Related posts