Skip to content
n-ufPublic

About

debugsy: in-process React debugging panel (@n-uf/debugsy) and its site, debugsy.n-uf.com

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

debugsy by n-uf

debugsy

Caution

Not yet stable

debugsy is young and still changing. Its API, panel and log format are not final.

Version numbers are dates (YY.M.R), not semantic versions, so any release may break things, including the exports you call, the panel's controls and the shape of the log entries you read. Pin an exact version and read the CHANGELOG before you upgrade. If you need a stable React debugging tool, use React Developer Tools for components and renders.

In-process React debugging panel: structured logs, render and dependency tracking, module LEDs and a virtualised log view, mounted inside your app. Site: https://debugsy.n-uf.com

Folder What
packages/debugsy @n-uf/debugsy, the library (the root and /core, published as a built ES module)
apps/web the showcase site (Next.js), debugsy.n-uf.com
packages/eslint-config, packages/typescript-config internal shared configs

Extracted from finfactory/pdf-n-uf (packages/debugsy, apps/debugsy-app) with its history on 2026-11-02.

Use it

npm i @n-uf/debugsy

Mount <DebugsyLook /> from a client component. No token, no .npmrc, no CSS import, no Tailwind and no bundler config; it needs React 19.

"use client";

import { DebugsyLook, dsy, registerModule } from "@n-uf/debugsy";

registerModule("auth", {
  label: "Auth",
  emoji: "🔐",
  description: "Sign-in and session state",
  points: {
    session: {
      emoji: "🔑",
      label: "Session",
      description: "Session refresh and expiry",
    },
  },
});

// Point keys are bare and shared by all modules: "session", not "auth.session".
dsy.warn("session", "Session expired", { ttlSeconds: 0 });

export function DebugPanel() {
  return <DebugsyLook />;
}

A point logs nothing until it's on: its LED in the panel, ?debug=session in the URL, or dsy.enable("session").

The package exports its root and /core (logging without the panel); the folders under src/ are internal. The panel renders its own scoped stylesheet, so it looks the same in a Tailwind app and a plain one. More in the package README.

Develop

pnpm install              # everything comes from npmjs, no token
pnpm dev                  # the site on http://localhost:3004
pnpm turbo lint check-types build

Live editing from an app (HMR)

An app that uses scripts/local-lib-links.mjs (pdf-n-uf's web and admin) can alias @n-uf/debugsy to this checkout's source, so edits hot-reload in the app:

LOCAL_LIB_REPOS=/opt/projects/n-uf/debugsy pnpm --dir apps/web dev

Versions and release

Calendar versions, YY.M.R, the same scheme as @n-uf/hypr-tiling:

  • YY the year, M the calendar month of the release (no leading zero), R a counter within that month that starts at 0.
  • pnpm release:next-version prints the next version; pnpm version:bump writes it to packages/debugsy/package.json. Prefer them over a hand-typed version: M is always the release month, never "the last month + 1".
  • A release PR bumps the version and adds an entry to packages/debugsy/CHANGELOG.md. Merging it to main publishes that version to npmjs (public, with provenance) and to GitHub Packages, and tags it v<version> (.github/workflows/release.yml); merges without a bump publish nothing. npmjs uses trusted publishing (no stored token): the package's Trusted Publisher on npmjs.com names this repo and release.yml.
  • Never reuse a version number that was published and then removed; record it in BURNED_VERSIONS in packages/debugsy/scripts/calendar-version-bump.mjs.

Vercel deploys the site from main through its GitHub connection (root apps/web).

Licence

PolyForm Perimeter 1.0.1, the same licence as hypr-tiling; see LICENSE.

About

debugsy: in-process React debugging panel (@n-uf/debugsy) and its site, debugsy.n-uf.com

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages