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

turbo-debug

v0.1.3

Published

Visualize and debug what Hotwire Turbo is doing - frame outlines, events, and more in a drop-in script.

Readme

turbo-debug

A lightweight JavaScript library to visually debug Turbo Frames on your web pages. It marks visible frames with a red dashed border and shows their id and src for quick inspection.


Features

  • Highlights all visible <turbo-frame> elements.
  • Shows frame id and src using a small overlay.
  • Automatically updates when frames are added, removed, or loaded dynamically.
  • Non-intrusive: only sets position: relative on frames that are statically positioned.
  • Supports automatic enabling on page load.

Installation

Using npm

npm install turbo-debug

Using CDN

<script type="module" src="https://unpkg.com/[email protected]/dist/turbo-debug-auto.min.js"></script>

This will automatically enable turbo-debug on page load. Replace x.y.z with the latest version found in the releases.


Usage

Manually Enable

import { enableTurboDebug } from 'turbo-debug';

// enable debugging on demand
enableTurboDebug();

Automatic Enable (on page load)

import 'turbo-debug/auto';

This will automatically enable turbo-debug once the DOM is ready.


API

enableTurboDebug()

Highlights all visible turbo frames and starts observing DOM changes and frame loads.

disableTurboDebug()

Removes highlights and stops observing changes.


Behavior

  • Frames already positioned absolute or fixed will not have their position overridden.
  • Observes the DOM using MutationObserver and throttles updates to prevent performance issues.
  • Supports dynamic addition/removal of frames.

Development

Build

npm run build

This generates both minified and unminified builds in the dist folder:

  • dist/turbo-debug.js – unminified
  • dist/turbo-debug.min.js – minified
  • dist/turbo-debug-auto.js – auto-enable variant

Tests

npm test

Watch mode

npm run watch

License

MIT © 2025 Ricardo van Hoepen