New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@whoisryosuke/debug-panel

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whoisryosuke/debug-panel

Simple debug panel for ReactJS apps. Lets you create inputs inside a debug panel and use their output in your app (like a debug text field, or color picker).

latest
npmnpm
Version
0.1.9
Version published
Maintainers
1
Created
Source

Debug Panel

Simple debug panel for ReactJS apps. Lets you create inputs inside a debug panel and use their output in your app (like a debug text field, or color picker).

Perfect for prototyping and getting quick feedback, or presenting and allowing others to toggle aspects of the design.

Supported Inputs

  • String Input
  • Number Input
  • Range Slider
  • Dropdown
  • Checkbox / Switch
  • Button
  • Hotkeys
  • Color Picker
  • Vector (3D or 4D)
  • Piano Keys

How to use

  • Install: npm i @whoisryosuke/debug-panel
  • Use the hook useDebug() to create a debug input.
const YourComponent = () => {
  const { yourInput } = useDebug({
    // String input
    yourInput: {
      type: "input",
      value: "test",
    },
  });

  return (
    <div>
      <p>{yourInput}</p>
    </div>
  );
};

The hook returns an object with the property/key name you provided (yourInput in this case).

  • Need a specific input? Use the type prop to change it.
const { yourInput } = useDebug({
  // Range input
  range: {
    type: "range",
    min: 0,
    max: 100,
    step: 0.1,
    value: 4.2,
  },
});

Check the example app for previews of each type.

Release

Using GitHub:

  • Run the new version GitHub action. This updates your package.json with the new version and creates a new tag on GitHub.
  • Create a new release with the new version tag. This triggers a build that automatically gets pushed to NPM.

Or manually:

  • Bump version in package.json
  • yarn build
  • npm login
  • npm publish --access public
  • Create new tag and release on GitHub.

FAQs

Package last updated on 09 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts