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

fixdog

v0.1.16

Published

Turn live UI edits into reviewable GitHub pull requests

Readme

fixdog

Turn live UI edits into reviewable GitHub pull requests

Quick Start

The easiest way to set up fixdog is using the CLI:

npx fixdog init

The CLI will:

  • Detect your framework (Vite or Next.js)
  • Prompt for your project ID (get it from app.fix.dog)
  • Automatically inject the fixdog script into your project
  • For Vite projects: Update vite.config.ts/js/mjs to add projectId.fix.dog to allowedHosts

Non-interactive Mode

For CI/CD or automation:

npx fixdog init --projectId your-project-id --yes

CLI Options:

  • --projectId, --project-id, -p - Project ID (non-interactive mode)
  • --yes, -y - Skip confirmation prompt
  • --silent, -s - Silent mode (no output except errors)
  • --help, -h - Show help message

Manual Setup

If you prefer to set up manually, see the integration guide or visit fix.dog for detailed documentation.

Vite

Add to your index.html inside <head>:

<script type="module">
  if (import.meta.env.DEV) {
    import(
      "https://unpkg.com/fixdog/dist/fixdog.esm.js?projectId=your-project-id"
    );
  }
</script>

Also update your vite.config.ts (or .js/.mjs) to add the project host to allowedHosts:

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
  plugins: [react()],
  server: {
    allowedHosts: ["your-project-id.fix.dog"],
  },
});

Next.js App Router

Add to your app/layout.tsx:

export default function RootLayout({ children }) {
  return (
    <html>
      <head>
        {process.env.NODE_ENV === "development" && (
          <script
            type="module"
            src="https://unpkg.com/fixdog/dist/fixdog.esm.js?projectId=your-project-id"
          />
        )}
      </head>
      <body>{children}</body>
    </html>
  );
}

Next.js Pages Router

Add to your pages/_document.tsx:

import { Html, Head, Main, NextScript } from "next/document";

export default function Document() {
  return (
    <Html>
      <Head>
        {process.env.NODE_ENV === "development" && (
          <script
            type="module"
            src="https://unpkg.com/fixdog/dist/fixdog.esm.js?projectId=your-project-id"
          />
        )}
      </Head>
      <body>
        <Main />
        <NextScript />
      </body>
    </Html>
  );
}

Configuration

Query Parameters

| Parameter | Required | Description | | ----------- | -------- | -------------------------------------------------------------------- | | projectId | Yes | Your Fixdog project ID (get from app.fix.dog) |

Example:

https://unpkg.com/fixdog/dist/fixdog.esm.js?projectId=my-project

For more configuration options and API details, visit fix.dog.

Troubleshooting

  • Source not available: Ensure dev/build has _debugSource (development or React Refresh). Production builds often strip it.
  • Next.js / RSC: Server Components don't have client-side fibers; ensure the inspected component is a client component.
  • Plain HTML element: No React fiber → nothing to log.
  • Iframes / shadow DOM: Inspector stays within the current document; shadow hosts are walked, but cross-iframe is skipped.

Requirements

  • React 16.8+ through React 19
  • Works with Next.js (App Router and Pages Router) and Vite
  • Only runs in development mode by default

Getting Your Project ID

Visit app.fix.dog to create a project and get your project ID.

Documentation

For detailed documentation, examples, and advanced usage, visit fix.dog.