conanyu-data-viewer
v1.0.14
Published
Parse your data locally, features shown below:
Readme
Data Viewer
Introduction
Parse your data locally, features shown below:

Usage
Online
Visit the demo page: https://conanyu.github.io/data-viewer
Local deployment
Before starting, ensure you have the following installed:
- Clone the repository and navigate to the project directory:
git clone https://github.com/conanyu/data-viewer.git
cd data-viewer- Install project dependencies:
pnpm install- Start the development server:
pnpm devAfter the server starts, you should see output similar to:
VITE v5.0.0 ready in 320 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to exposeOpen your browser and visit http://localhost:5173 to view the application.
SDK
The Data Viewer SDK provides a React component for visualizing structured data in your applications.
Installation
pnpm add conanyu-data-viewerUsage
import DataViewer from "conanyu-data-viewer";
import "conanyu-data-viewer/dist/conanyu-data-viewer.css";
const data = {
users: [
{ id: 1, name: "Alice", age: 30 },
{ id: 2, name: "Bob", age: 25 },
{ id: 3, name: "Charlie", age: 35 },
],
metadata: {
createdAt: "2023-01-15",
source: "API",
},
};
const App = () => {
return <DataViewer title="Data Viewer Demo" data={JSON.stringify(data)} />;
};License
This project is licensed under the MIT License.
