Skip to main content

Introduction

NestLens is an elegant debugging and monitoring assistant for NestJS applications, inspired by Laravel Telescope. It provides deep insights into your application's behavior during development with a beautiful, real-time dashboard.

NestLens Dashboard

What is NestLens?

NestLens captures and visualizes everything happening in your NestJS application:

  • HTTP Requests - Track all incoming requests with headers, body, response, and timing
  • Database Queries - Monitor SQL queries with slow query detection
  • Exceptions - Capture errors with full stack traces and request context
  • Application Logs - View all log entries with level filtering
  • Background Jobs - Track Bull/BullMQ queue jobs
  • Scheduled Tasks - Monitor cron jobs and scheduled tasks
  • Cache Operations - Track cache hits, misses, and operations
  • And much more... - 18 watchers in total!

Why NestLens?

FeatureDescription
Zero ConfigurationWorks out of the box with sensible defaults
18 WatchersComplete visibility into every aspect of your app
Beautiful DashboardModern React UI with dark mode support
Family TrackingGroup related entries by request or operation
Automatic ORM DetectionBuilt-in support for TypeORM and Prisma
TypeScript NativeFull type safety throughout
Production Ready1,312 tests ensuring quality

Quick Preview

app.module.ts
import { Module } from '@nestjs/common';
import { NestLensModule } from 'nestlens';

@Module({
imports: [
NestLensModule.forRoot({
enabled: process.env.NODE_ENV !== 'production',
}),
],
})
export class AppModule {}

That's it! Open http://localhost:3000/nestlens to see your dashboard.

Comparison with Alternatives

FeatureNestLensNest DevToolsCustom Logging
Real-time DashboardYesYesNo
Database Query TrackingYesLimitedManual
Family GroupingYesNoNo
Slow Query DetectionYesNoNo
18 Entry TypesYesNoNo
Dark ModeYesNoN/A
Rate LimitingYesN/AManual
PriceFreePaidFree

What's Next?

Get started with NestLens in just a few minutes: