Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@programsmagic/toon-viewer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@programsmagic/toon-viewer

Rich React viewer component with split-pane UI for multi-format viewing and conversion

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@toon/viewer

Rich React viewer component with split-pane UI for multi-format viewing and conversion.

Installation

npm install @toon/viewer
# or
pnpm add @toon/viewer
# or
yarn add @toon/viewer

Usage

import { FormatViewer } from '@toon/viewer';
import '@toon/viewer/styles';

function App() {
  return (
    <FormatViewer
      initialContent='{"user": {"id": 123, "name": "Ada"}}'
      initialFormat="json"
      showTokenCounter={true}
      llmMode={true}
    />
  );
}

Features

  • Split-pane viewer (side-by-side format comparison)
  • Real-time format conversion
  • Token count display (live updates)
  • Drag & drop file support
  • Syntax highlighting
  • Copy as fenced block (LLM-grade mode)
  • Format validation with error highlighting

Components

FormatViewer

Main split-pane viewer component.

FileDropZone

Drag & drop file upload component.

TokenCounter

Token count display component.

FormatSelector

Format selection dropdown.

CopyButton

Copy button with prompt wrapper.

License

MIT

Keywords

react

FAQs

Package last updated on 09 Nov 2025

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