awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
debug-js avatar

debug-js/debug

0
View on GitHub↗
11,444 stars·978 forks·JavaScript·MIT·14 views

Debug

This project is a JavaScript logging utility and namespace-based debugger used for printing formatted, color-coded debug messages to the console in Node.js, web browsers, and Deno. It serves as a console output formatter and execution time profiler to help identify bugs and track program flow.

The system manages debug visibility through named namespaces, allowing specific groups of messages to be enabled or disabled via environment variables. It distinguishes different modules in the output stream by assigning specific colors to these namespaces.

The utility includes capabilities for measuring millisecond intervals between log calls to identify performance bottlenecks. It also supports placeholder-based string interpolation for data formatting and the redirection of log data to custom streams or output methods.

Features

  • Console Log Formatters - Renders data types and objects in readable layouts using placeholders and custom formatters for console output.
  • Namespace-Based Log Filtering - Provides a system to enable or disable specific groups of debug messages using named namespaces and environment variables.
  • Performance Profiling Tools - Calculates millisecond intervals between log calls to identify performance bottlenecks.
  • JavaScript and TypeScript Debugging - Identifies bugs and tracks program flow in JavaScript apps by logging specific module activity to the console.
  • Namespace-Based Debuggers - Implements a logging system that enables or disables groups of messages using named namespaces and environment variables.
  • Namespace-Based Log Filtering - Controls message visibility by matching specific string identifiers against an environment-defined list of active namespaces.
  • Environment Variable-Based Configuration - Initializes active namespaces and settings by parsing system environment strings at runtime for zero-code configuration.
  • Log Management - Controls which parts of a codebase output logs using named namespaces to reduce console noise during development.
  • Logging Utilities - Provides a lightweight utility for printing formatted, color-coded debug messages to the console in Node.js and web browsers.
  • Stream Redirection - Routes log data to a configurable stream or function instead of hardcoding a specific system output method.
  • Console Color Mappings - Assigns specific ANSI or CSS colors to namespaces to visually distinguish different modules in the output stream.
  • Browser Console Debugging - Adds structured and color-coded debug information to web browser consoles to make complex application states easier to read.
  • Node.js Debuggers - Measures execution time and intervals between events in Node.js to find and fix performance bottlenecks.
  • Custom Log Formatting - Renders logs using placeholders and custom formatters to display objects and data types in a readable layout.
  • Message Interpolations - Formats messages by replacing custom markers with processed values passed as arguments to the logger.
  • Function Execution Timing - Calculates the millisecond difference between consecutive debug calls to identify bottlenecks.
  • Execution Time Profilers - Measures execution gaps by tracking the timestamp of the previous log call and calculating the difference.
  • Debug Instance Controllers - Allows the creation of named debugging instances that toggle visibility via environment variables or dynamic method calls.
  • Colored Log Formatters - Assigns colors to debug namespaces to visually separate different modules within the console output.
  • Debug Log Filters - Uses wildcards and exclusion prefixes to include or omit specific groups of debuggers from the output.
  • Logging - Listed in the “Logging” section of the Awesome Go awesome list.
  • Debugging And Profiling - Lightweight utility for logging debug information.

Star history

Star history chart for debug-js/debugStar history chart for debug-js/debug

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does debug-js/debug do?

This project is a JavaScript logging utility and namespace-based debugger used for printing formatted, color-coded debug messages to the console in Node.js, web browsers, and Deno. It serves as a console output formatter and execution time profiler to help identify bugs and track program flow.

What are the main features of debug-js/debug?

The main features of debug-js/debug are: Console Log Formatters, Namespace-Based Log Filtering, Performance Profiling Tools, JavaScript and TypeScript Debugging, Namespace-Based Debuggers, Environment Variable-Based Configuration, Log Management, Logging Utilities.

Which projects share features with debug-js/debug?

Projects with overlapping indexed features include: visionmedia/debug — This project is a namespace-based logging utility for JavaScript runtimes, including Node.js and web browsers. It… winstonjs/winston — Winston is a versatile logging library for Node.js designed to record system events and metadata. It functions as a… gabime/spdlog — spdlog is a high-performance C++ logging library designed to record diagnostic messages and application events. It… rs/zerolog — Zerolog is a structured logging library for Go designed for high-performance event capture and observability. It… swiftybeaver/swiftybeaver — SwiftyBeaver is an extensible logging framework for Swift that routes log output to multiple destinations… sirupsen/logrus — Logrus is a structured logging library for Go that produces machine-readable output using key-value pairs and JSON…

Projects sharing features with Debug

These projects share indexed features with Debug. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • visionmedia/debugvisionmedia avatar

    visionmedia/debug

    11,447View on GitHub↗

    This project is a namespace-based logging utility for JavaScript runtimes, including Node.js and web browsers. It provides a system for categorizing output into distinct namespaces to enable filtered visibility and color-coded identification of log sources. The utility allows for dynamic log control, where output streams can be toggled on or off via environment variables or method calls without restarting the application. It includes an execution time profiler that calculates the elapsed time between consecutive log calls to identify performance bottlenecks. Further capabilities include the

    JavaScript
    View on GitHub↗11,447
  • winstonjs/winstonwinstonjs avatar

    winstonjs/winston

    24,478View on GitHub↗

    Winston is a versatile logging library for Node.js designed to record system events and metadata. It functions as a multi-transport log manager that routes data to various destinations and a structured log formatter that transforms entries into JSON or plain text. The project is distinguished by its pluggable transport architecture, which decouples the logging interface from delivery mechanisms. This allows for the creation of custom transport extensions and the use of hierarchical logger instances to inherit configurations while attaching persistent metadata to downstream messages. The libr

    JavaScript
    View on GitHub↗24,478
  • gabime/spdloggabime avatar

    gabime/spdlog

    28,922View on GitHub↗

    spdlog is a high-performance C++ logging library designed to record diagnostic messages and application events. It serves as an asynchronous logging framework and thread-safe library that coordinates access across concurrent threads to maintain message integrity. The project functions as a multi-target log router, distributing single events to multiple destinations such as consoles, files, and system daemons. It includes a log rotation manager that handles file lifecycles through basic, rotating, or daily rollover strategies to prevent disk exhaustion. The library covers a broad range of cap

    C++cppcpp11header-only
    View on GitHub↗28,922
  • rs/zerologrs avatar

    rs/zerolog

    12,220View on GitHub↗

    Zerolog is a structured logging library for Go designed for high-performance event capture and observability. It focuses on generating machine-readable JSON output while minimizing memory overhead through zero-allocation buffer encoding and strongly-typed field validation. The library distinguishes itself by providing a chainable, context-aware interface that allows developers to bind trace identifiers and metadata directly to request lifecycles. It supports complex diagnostic workflows by enabling independent logger instances, custom output routing to multiple concurrent destinations, and ev

    Gogolangjsonlogging
    View on GitHub↗12,220
Compare all 30 related projects→