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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-editor-studio

v1.0.9

Published

Next-generation block-based rich text and interactive media editor for React, Next.js, and TypeScript. Features Notion-style blocks, live polls, election charts, live update timelines, responsive HTML export, and Tailwind CSS styling.

Readme

React Editor Studio 🚀

NPM Version NPM Downloads Bundle Size License TypeScript React 18 & 19 Compatible

The next-generation block-based rich text and interactive media editor for React, Next.js, and TypeScript. Build Notion-style documents, live election dashboards, interactive opinion polls, breaking news timelines, and export 100% standalone, responsive HTML with zero runtime dependencies.



🌟 Why React Editor Studio?

| Feature | React Editor Studio | TipTap / ProseMirror | Editor.js | Slate.js | |---|:---:|:---:|:---:|:---:| | Block-Based Architecture (Notion / Gutenberg style) | ✅ Yes | ⚠️ Custom Setup | ✅ Yes | ⚠️ Custom Setup | | Live Opinion Polls & Real-Time Voting | ✅ Built-in | ❌ No | ❌ No | ❌ No | | Interactive Election Trackers & Charts | ✅ Built-in | ❌ No | ❌ No | ❌ No | | Live Updates Timeline Feed (Social Embeds) | ✅ Built-in | ❌ No | ❌ No | ❌ No | | 1-Click Standalone Clean HTML Exporter | ✅ Zero-dependency | ⚠️ Manual | ⚠️ JSON Only | ⚠️ Manual | | Multi-Column Responsive Grid Layouts | ✅ Built-in | ⚠️ Complex | ❌ Limited | ⚠️ Complex | | Tailwind CSS & Dark Mode Native | ✅ Yes | ⚠️ Manual | ❌ No | ⚠️ Manual | | In-Line Interactive PDF Viewer | ✅ Built-in | ❌ No | ❌ No | ❌ No | | Mobile Touch & 475px Responsive Toolbar | ✅ Built-in | ⚠️ Partial | ⚠️ Partial | ⚠️ Partial |


📦 Installation

Install with your preferred package manager:

# NPM
npm install react-editor-studio

# Yarn
yarn add react-editor-studio

# PNPM
pnpm add react-editor-studio

# Bun
bun add react-editor-studio

⚡ Quick Start

1. Next.js (App Router / Pages Router)

'use client'; // Required for Next.js App Router

import React, { useState } from 'react';
import { EditorStudio, type BlockInstance } from 'react-editor-studio';
import 'react-editor-studio/dist/style.css';

export default function ArticleEditorPage() {
  const [blocks, setBlocks] = useState<BlockInstance[]>([]);

  const handleSave = (savedBlocks: BlockInstance[], html: string) => {
    console.log('Saved JSON blocks:', savedBlocks);
    console.log('Clean exported HTML:', html);
  };

  return (
    <main className="w-screen h-screen">
      <EditorStudio
        theme="light"
        initialTitle="Breaking Story: Next-Gen Technology Unveiled"
        onChange={(currentBlocks) => setBlocks(currentBlocks)}
        onSave={handleSave}
        enableLiveUpdates={true}
        enableEmbeds={true}
        enablePolls={true}
        enableCharts={true}
      />
    </main>
  );
}

2. Vite + React + TypeScript

import React, { useState } from 'react';
import { EditorStudio, type BlockInstance } from 'react-editor-studio';
import 'react-editor-studio/dist/style.css';

export default function App() {
  const [blocks, setBlocks] = useState<BlockInstance[]>([]);

  return (
    <div style={{ width: '100vw', height: '100vh' }}>
      <EditorStudio
        theme="light"
        initialTitle="My First Article"
        onChange={(b) => setBlocks(b)}
        onSave={(b, html) => {
          // Send to API or Database
          fetch('/api/save-post', {
            method: 'POST',
            headers: { 'Content-Type': 'application/json' },
            body: JSON.stringify({ blocks: b, html }),
          });
        }}
      />
    </div>
  );
}

🧩 Comprehensive Block Library

React Editor Studio includes over 25+ plug-and-play blocks out of the box:

  • 📝 Typography: Paragraph, Headings (H1–H6), Bullet List, Numbered List, Checklist, Blockquote, Pullquote, Verse, Preformatted Text.
  • 🎨 Layout & Containers: Responsive Columns (1–4 columns, 50-50, 70-30, 30-70), Grid Groups, Horizontal Rows, Accordions, Separators, Spacers.
  • 🖼️ Media & Embeds: Single Image, Dynamic Gallery Grid, Full-Width Cover Image with Overlay, Image Sliders, YouTube, Vimeo, Twitter/X, Instagram, Spotify, and Interactive PDF Viewer.
  • 📊 Interactive Data & Live Polls:
    • Live Opinion Polls: Single-choice, multiple-choice, animated percentage bars, custom vote expiry, and customizable vote counts.
    • Election Trackers & Visualizations: Parliament Semi-Circle Arch, Tally Bar Progress, Candidate Head-to-Head Battle, and Vote Share Percentage.
  • 🔴 Live Updates Timeline Feed:
    • Chronological live updates ticker with real-time timestamps, pinning, embed support (YouTube, Twitter, Instagram, Spotify), PDF documents, and inline media attachments.
  • 💻 Developer Tools: Code Editor with auto-language detection, Syntax Highlighting, Inline HTML mode, and 1-click Markdown shortcuts.

📤 1-Click Clean HTML Exporter

Convert editor state into ultra-clean, semantic, standalone HTML with responsive styles ready to publish anywhere (WordPress, Ghost, Webflow, Custom CMS):

import { exportToHtml, exportHtml } from 'react-editor-studio';

// Generate standalone HTML string from block array
const cleanHtmlString = exportToHtml(blocks);

// Output example:
// <div class="editor-studio-content">
//   <h1>My Headline</h1>
//   <p>Clean semantic text...</p>
// </div>

⚙️ Props & Configuration

| Prop | Type | Default | Description | |---|---|---|---| | initialBlocks | BlockInstance[] | [] | Pre-populate the canvas with existing block data | | initialTitle | string | "" | Set the default article / document title | | theme | 'light' \| 'dark' | 'light' | Toggle between clean light mode and sleek dark mode | | onChange | (blocks: BlockInstance[]) => void | undefined | Real-time callback triggered on every block edit | | onSave | (blocks: BlockInstance[], html: string) => void | undefined | Callback fired when user clicks Save / Export | | autoSave | boolean | true | Automatically saves state to local browser storage | | enableLiveUpdates | boolean | true | Enable/Disable the Live Updates timeline ticker block | | enableEmbeds | boolean | true | Enable/Disable social embeds (Twitter, Instagram, YouTube, Spotify) | | enablePolls | boolean | true | Enable/Disable interactive opinion polls & voting blocks | | enableCharts | boolean | true | Enable/Disable election charts & live data trackers | | allowedBlocks | string[] | undefined | Optional whitelist of allowed block types | | disabledBlocks | string[] | undefined | Optional blacklist of disabled block types | | className | string | "" | Custom Tailwind / CSS wrapper class | | hideToolbar | boolean | false | Hide top formatting bar for minimal embedded views |


❓ Frequently Asked Questions (FAQ)


🤝 Contributing

Contributions, issues, and feature requests are welcome!
Feel free to check out the Issues page.


📄 License

This project is MIT licensed.

Created with ❤️ by Krunal Solanki