Getting Started
Installation
Install Nest Graph Inspector and start with the minimum configuration.
Install Package
Add Nest Graph Inspector to your NestJS project.
npm install nest-graph-inspectoryarn add nest-graph-inspectorpnpm add nest-graph-inspectorbun add nest-graph-inspectorInstall Module
Import NestGraphInspectorModule in your root module. By default, Nest Graph Inspector uses the Viewer output, so you get an interactive graph experience with no extra output configuration.
app.module.ts
import { Module } from '@nestjs/common';
import { NestGraphInspectorModule } from 'nest-graph-inspector';
@Module({
imports: [
NestGraphInspectorModule // that's it!
],
})
export class AppModule {}
Run Project
npm run startyarn startpnpm startbun run startAfter startup, the inspector logs the Viewer URL and graph endpoint path in your console. Open the Viewer, enter your app origin, and inspect the live dependency graph.
