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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-json-visualizer

v1.0.8

Published

Visual JSON data flow inspector for developers

Readme

React JSON Visualizer

React JSON Visualizer is a lightweight JSON visualizer and JSON viewer dev tool that helps developers understand complex JavaScript objects and arrays through an interactive node-based UI.

It is designed to be DX-friendly, UI/UX focused, and simple to use. You import one function, pass your data, and instantly see the JSON data flow.


What is React JSON Visualizer?

-Works with React, Next.js, Vanilla JS, and any browser environment

React JSON Visualizer turns any JavaScript object or array into a visual data graph. -Each object becomes a node -Nested objects and arrays are connected visually -Primitive values stay inside nodes -Users can drag, collapse, and explore data relationships -This makes it ideal as a developer tool, debugging utility, or internal JSON inspector.


Features

React JSON Visualizer with connected nodes Interactive JSON viewer Drag and pan the canvas Collapse and expand nodes Auto layout (no manual positioning) Clean UI / UX focused design Zero configuration Works with Vanilla JS, React.js, Next.js No external dependencies


Installation

npm install react-json-visualizer

or

pnpm add react-json-visualizer

Usage

You only need one function.

import { renderJSON } from "react-json-visualizer";

renderJSON(data);

That’s it. No setup, no config, no framework lock.

Interactive UI:

After running this code, a button/icon will appear at the top-right corner of the page. Click it to launch the JSON Visualizer, and you can start exploring your data interactively.

JavaScript Example

  import { renderJSON } from "json-visualizer";

  const data = {
    product: {
      id: 10,
      title: "Laptop",
      specs: {
        ram: "16GB",
        cpu: "M1"
      }
    }
  };

  renderJSON(data);

React.js Example

import { useEffect } from "react";
import { renderJSON } from "json-visualizer";

export default function App() {
  useEffect(() => {
    renderJSON({
      user: {
        name: "John",
        role: "Admin"
      }
    });
  }, []);

  return null;
}

Important: This is a client-side dev tool. It must run in the browser.


API

renderJSON(data) | Parameter | Type | Description | | :--- | :--- | :--- | | data | Object or Array | Any valid JavaScript JSON-like data structure. |


Automatically injects required styles Clears previous visualization Handles deep nested structures Updates layout dynamically Use Cases Debugging API responses Inspecting backend JSON data Understanding deeply nested objects Internal admin dashboards Developer tools and inspectors Teaching JSON and data structures UI/UX exploration of data flow Framework Support This tool is framework-agnostic.

Vanilla JavaScript React.js Next.js Vue Svelte Any browser environment


License :

MIT License © Ratnesh Kumawat

Author

Ratnesh Kumawat Portfolio: https://ratneshkumawat.vercel.app


React JSON Visualizer is built to be simple, visual, and developer-friendly. If you work with JSON every day, this tool helps you see your data, not just read it.


Keywords

json visualizer json visualizer json viewer json inspector developer tools dev tool frontend tools ui ux dx friendly data visualization javascript json