npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nestjs-telescope

v1.1.0

Published

A debugging and monitoring tool for NestJS applications, inspired by Laravel Telescope

Readme

NestJS Telescope 🔭

A powerful debugging and monitoring tool for NestJS applications, inspired by Laravel Telescope. Provides real-time HTTP request monitoring, exception tracking, and a beautiful web interface for debugging your applications.

npm version License: MIT GitHub stars GitHub forks

✨ Features

  • 🔍 Real-time HTTP Monitoring: Capture and inspect all HTTP requests and responses
  • 🚨 Exception Tracking: Detailed stack traces and error information
  • 📊 Live Statistics: Real-time metrics and performance analytics
  • 🎨 Beautiful UI: Modern React-based interface with dark mode support
  • 🔐 Optional Authentication: Basic auth protection for sensitive environments
  • ⚡ High Performance: Minimal overhead with efficient data storage
  • 🔧 Easy Integration: Simple setup with NestJS applications
  • 📱 Responsive Design: Works seamlessly on desktop and mobile

🚀 Quick Start

Installation

npm install nestjs-telescope

Super Simple Setup ✨

Just add one line to your main.ts - that's it!

// main.ts
import { NestFactory } from '@nestjs/common';
import { AppModule } from './app.module';
import { TelescopeModule } from 'nestjs-telescope';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  
  // 🔭 One line setup - magic!
  TelescopeModule.setup(app);
  
  await app.listen(3000);
}
bootstrap();

No module imports needed! Your AppModule stays unchanged:

// app.module.ts - No changes required!
import { Module } from '@nestjs/common';

@Module({
  imports: [], // No need to import TelescopeModule
  // ... your controllers and providers
})
export class AppModule {}

Access the Dashboard

Visit http://localhost:3000/telescope and start debugging! 🎉

📖 Documentation

Configuration Options

interface TelescopeConfig {
  enabled?: boolean;                    // Enable/disable telescope
  auth?: {                              // Basic auth credentials
    username: string;
    password: string;
  };
  maxEntries?: number;                  // Maximum entries to store (default: 1000)
  autoClearAfter?: number;              // Auto-clear after time in ms
  captureRequestBody?: boolean;         // Capture request bodies
  captureResponseBody?: boolean;        // Capture response bodies
  captureHeaders?: boolean;             // Capture headers
  captureQuery?: boolean;               // Capture query parameters
  captureIP?: boolean;                  // Capture IP addresses
  captureUserAgent?: boolean;           // Capture user agents
}

Alternative Setup (Legacy)

If you prefer the traditional module import approach:

// app.module.ts
import { Module } from '@nestjs/common';
import { TelescopeModule } from 'nestjs-telescope';

@Module({
  imports: [TelescopeModule],
  // ... your providers
})
export class AppModule {}

⚠️ Note: Use either TelescopeModule.setup(app) OR module import, not both!

API Endpoints

The module provides the following REST endpoints:

  • GET /telescope - Web interface
  • GET /telescope/api/entries - List all entries
  • GET /telescope/api/entries/:id - Get specific entry
  • GET /telescope/api/stats - Get statistics
  • DELETE /telescope/api/entries - Clear all entries

🎯 Use Cases

  • Development Debugging: Monitor API calls during development
  • Production Monitoring: Track errors and performance in production
  • API Testing: Inspect request/response data for testing
  • Performance Analysis: Analyze response times and bottlenecks
  • Security Auditing: Monitor suspicious requests and patterns

🚀 Production Ready

✅ What's New in v1.0.12

  • 🔧 Zero-config setup: Just TelescopeModule.setup(app) and you're done!
  • 🎨 Fixed production UI: No more blank screens in production environments
  • 📦 Enhanced asset serving: Works with Docker, serverless, and all deployment types
  • ⚡ Better performance: Optimized middleware and asset caching
  • 🛡️ Improved security: Better header sanitization and error handling

🌐 Production Deployment

Telescope now works seamlessly in production across all environments:

  • Docker containers - Assets served from correct paths
  • Serverless (AWS Lambda, Vercel, etc.) - Bundled assets
  • Traditional servers - npm package resolution
  • CDN/static hosting - Proper MIME types and caching headers

🛠️ Development

Prerequisites

  • Node.js >= 18.0.0
  • npm >= 8.0.0

Setup

# Clone the repository
git clone https://github.com/HiGeorges/NestJs-Telescope.git
cd NestJs-Telescope

# Install dependencies
npm install

# Build all packages
npm run build

# Start development
npm run dev

Project Structure

├── packages/
│   ├── core/           # NestJS backend module
│   │   ├── src/
│   │   └── dist/
│   └── ui/            # React frontend
│       ├── src/
│       └── dist/
├── apps/
│   └── demo/          # Demo application
└── README.md

Available Scripts

npm run build          # Build all packages
npm run dev            # Start development server
npm run test           # Run all tests
npm run lint           # Lint all packages
npm run clean          # Clean build artifacts

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support


Made with ❤️ by Georges HELOUSSATO