An opt-in debugging overlay for web projects and a small macOS/Linux machine diagnostics CLI. The package is dependency-free and avoids reporting hostnames, usernames, IP addresses, or environment variables.
npm install @yeti-cgi/debugging-funNothing is rendered unless debuggingFun is explicitly enabled:
import { debuggingFun } from "@yeti-cgi/debugging-fun";
const removeOverlay = debuggingFun({
debuggingFun: import.meta.env.DEV
});
// Later, if needed:
removeOverlay();Passing true is also supported: debuggingFun(true). The accessible overlay uses Shadow DOM so application styles do not leak into it. It shows the current URL, viewport and screen sizes, language, connectivity, platform, and user agent.
Run without installing:
npx @yeti-cgi/debugging-fun
npx @yeti-cgi/debugging-fun --jsonOr after a global install, run debugging-fun. Reports include OS version and architecture, Node/V8 versions, CPU, memory, uptime, shell name, and terminal status.
import { getMachineInfo, formatMachineInfo } from "@yeti-cgi/debugging-fun/machine";
const info = getMachineInfo();
console.log(formatMachineInfo(info));The included GitHub Actions workflow publishes whenever a GitHub Release is published. Before the first release:
- Create the
@yeti-cgi/debugging-funpackage on npm (the initial publish may need to be performed manually). - On npmjs.com, open the package's Settings → Trusted Publisher and choose GitHub Actions.
- Set organization/user to
yeticgi, repository todebugging-fun, workflow torelease.yml, environment tonpm, and allownpm publish. - In GitHub, create an environment named
npm. Add required reviewers if desired. - Update
package.jsonto a version not already published, commit it, tag it (for examplev0.1.0), and publish the matching GitHub Release.
No long-lived NPM_TOKEN secret is required. The workflow requests an OIDC identity token; provenance is currently disabled by publishConfig.provenance.
Every push to the staging branch publishes a unique prerelease such as 0.1.1-alpha.42 under npm's alpha dist-tag. Install the newest staging build with:
npm install @yeti-cgi/debugging-fun@alphaAlpha publishing does not change the stable latest tag. Keep package.json set to the intended next stable version; publishing a GitHub Release publishes that exact version under latest.
npm test
npm run check
npm pack --dry-runGNU Lesser General Public License v2.1 only. See LICENSE.