Caution
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.
npm i @n-uf/debugsyMount <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.
pnpm install # everything comes from npmjs, no token
pnpm dev # the site on http://localhost:3004
pnpm turbo lint check-types buildAn 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 devCalendar versions, YY.M.R, the same scheme as @n-uf/hypr-tiling:
YYthe year,Mthe calendar month of the release (no leading zero),Ra counter within that month that starts at 0.pnpm release:next-versionprints the next version;pnpm version:bumpwrites it topackages/debugsy/package.json. Prefer them over a hand-typed version:Mis 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 tomainpublishes that version to npmjs (public, with provenance) and to GitHub Packages, and tags itv<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 andrelease.yml. - Never reuse a version number that was published and then removed; record it
in
BURNED_VERSIONSinpackages/debugsy/scripts/calendar-version-bump.mjs.
Vercel deploys the site from main through its GitHub connection (root
apps/web).
PolyForm Perimeter 1.0.1, the same licence as hypr-tiling; see LICENSE.