debug-js

    debug-js/debug

    A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers

    11.5K stars
    995 forks
    133 GitHub watchers
    Updated Nov 7, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    No releases in the last 90 days; the most recent was 421 days ago, with 108 contributors on GitHub.

    Use Cases & Benefits

    • Provides a tiny JavaScript debugging utility compatible with Node.js and web browsers using namespace-based debug logging.
    • Enables selective, color-coded debug output toggling via environment variables or dynamic API calls for clear, manageable debugging.
    • Use for debugging modular Node.js applications by enabling or disabling debug logs per module or feature namespace.
    • Use for adding debug logging in browser-based JavaScript projects with persistent debug state via localStorage.
    • Use for customizing debug output streams and formatting to integrate with various logging or monitoring systems.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers.

    debug exposes a function; simply pass this function the name of your module, and it will return a decorated version of console.error for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole.

    The DEBUG environment variable is then used to enable these based on space or comma-delimited names.

    Excerpt from the debug-js/debug README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    995+8

    Open issues

    98+8

    Compared with peers in Observability

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    debug-js/debug compared with Observability repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    Asymptote-Labs/agent-beacon3.4K+315751 day ago
    VictoriaMetrics/VictoriaMetrics18.1K+70751 day ago
    jaegertracing/jaeger23.4K—654 days ago
    vectordotdev/vector22.8K—6411 days ago
    amir20/dozzle14.9K—40today
    debug-js/debug11.5K—35421 days ago
    Category median18.1K+19365—

    Discover Repositories

    Search across tracked repositories by name or description