Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

articwriter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

articwriter

A block based Article Writer component with Built-in Renderer

latest
Source
npmnpm
Version
0.1.6
Version published
Maintainers
1
Created
Source

✍️ ArticWriter

ArticWriter is a ⚡ powerful block-based article editor with an integrated HTML renderer. Write your content with flexible blocks, customize your tools, and render clean HTML — all from a single package.

Version 0.1.0 Changelog:

  • Removed built-in block type dependence
  • Added Block Based configuration
  • Added Flag Section Title as Table of Content option (Spacial)
  • Plugin usage made easier
  • TypeCasting made more Editor Friendly

🌐 Demo

Checkout Demo of articwriter

🚀 Features

  • 🧱 Block-based article writing
  • Inline tools support
  • 🧩 Custom editor block plugins
  • 🔧 Inline tool plugins
  • 🎨 Renderer block plugins
  • 🎨 Per-block Style Customization (renderer)
  • 🌙 Dark Mode supported
  • ⚛️ Optimized for React projects

🖼️ Preview

Editor and Renderer side by side: Editor & Renderer

📦 Installation

Using npm:

# using npm
npm install articwriter

# using yarn
yarn add articwriter

📁 Package Structure

articwriter/
├── editor     # The full-featured editor
└── renderer   # HTML renderer for the written content
  • editor → Used to create and manage blocks
  • renderer → Used to render the saved content

📌 The root package does not export anything directly.

🔧 Examples

Editor

import Editor from "articwriter/editor";

const [Component, save] = Editor({
    config: {
        uploadImage: async (file) => {
            return `file_url.png`;
        },
    },
});

return (
    <>
        <Component />
        <button
            onClick={async () => {
                const data = await save();
                console.log(data);
            }}
        >
            Save
        </button>
    </>
);

Renderer

import Renderer from "articwriter/renderer";

const [Component] = Renderer({
    // config
});

return <Component blocks={blocks} />;

⚙️ Configurations

Editor

PropTypeDescription
blocksListInitial blocks data to load in the editor
defaultBlockstringDefault block type (e.g. "paragraph")
pluginsListEditor plugin which follows the Plugin Rules
configUserConfigConfig options (see below)

UserConfig:

KeyTypeDescription
uploadImage(file: File) => Promise<string>Async function to upload images, returning image URL
enableTableOfContentsbooleanTurns on Flag section title as Table of Content
blocks{ [type]: { inlineToolbar?: boolean, defaultTag?: string } }Add Block based Configurations

Renderer

PropTypeDescription
pluginsListRenderer plugin which follows the Plugin Rules
configUserConfigConfig options (see below)

UserConfig:

KeyTypeDescription
blockName{ className?: string; style?: React.CSSProperties }Styles for each block type. Use lowercase names (e.g. paragraph)

🔧 Built-in blocks

Block NameUsage Name (lowercase)
Paragraphparagraph
Headingheading
Listlist
Tabletable
Dividerdivider
Codecode
Quotequote
Imageimage
HTMLPreviewhtml-preview

🛠️ Tech Stack

  • 🧑‍💻 Built with React + Tailwind CSS
  • 🔁 Compatible with all React versions (React 18+ recommended)
  • 📦 No external framework dependencies

📜 License

MIT License @TheProjectsX

Keywords

editor

FAQs

Package last updated on 05 Sep 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