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

forma-text

v1.0.26

Published

FormaText is a modern, feature-rich, and highly customizable React text editor with AI integration. It delivers a seamless and intuitive editing experience, supporting everything from simple text input to advanced rich content creation.

Downloads

26

Readme

FormaText Editor

npm AI Powered by Gemini

FormaText is a modern, feature-rich, and highly customizable React text editor with AI integration. It provides a seamless and intuitive editing experience, offering both standard and advanced features to support a wide range of use cases—from simple text input to rich content editing.


🚀 Installation

npm install forma-text

🧑‍💻 Usage

Here's a basic example of how to use the TextEditor component in your React application:

import { useState } from "react";
import FormaText from "forma-text";

function App() {
  const [content, setContent] = useState("<p>Hello, world!</p>");

  return (
    <FormaText
      content={content}
      setContent={setContent}
      geminiApiKey="YOUR_GEMINI_API_KEY"
      theme="modern" // Options: "classic", "modern", "futuristic"
      premiumApiKey="API_KEY" //Optional
    />
  );
}

export default App;

✨ Features

🎨 Theme Variants

FormaText comes with three beautifully designed themes, allowing you to tailor the editor's look and feel to your application:

| Theme | Preview | |----------------|--------------------------------------------------------------------------------------------------------| | Classic | Classic Theme | | | | | Modern | Modern Theme | | | | | Futuristic | Futuristic Theme |

✨ Each theme is crafted with unique UI elements, and toolbar styles for different user preferences.


🤖 AI Features


🔒 Basic AI Features

  • Refactor code blocks within the editor
  • Improve basic SEO automatically
  • Rewrite and enhance content for readability
  • Rich text formatting with real-time preview
  • Display diff tracking to compare content versions

🔑 Premium AI Features

  • Advanced refactoring with AI-powered suggestions
  • Improve advanced SEO and GEO automatically
  • Reorganize and optimize content using advanced SEO best practices
  • Rewrite and enhance content for better engagement
  • Structure content logically with headings and subheadings
  • Apply inline CSS styling for better visual hierarchy
  • Rich text formatting and real-time preview
  • Support for multiple languages: English, Japanese, Hindi, French, Spanish, Sinhalese, Arabic, Chinese
  • Display diff tracking to compare content versions

✅ Standard Features

  • Basic Text Formatting: Bold, Italic, Underline, Strikethrough, Superscript, and Subscript.
  • Headings and Paragraphs: Switch between different heading levels and paragraph styles.
  • Font Customization: Change font family and size.
  • Text & Highlight Colors: Full-color palette for text and background.
  • Lists: Ordered & unordered lists with indentation.
  • Text Alignment: Left, center, and right alignment options.
  • Links: Add/edit hyperlinks with a modal.
  • Block Elements: Blockquotes, code blocks, and horizontal lines.
  • Undo/Redo: Full undo and redo support.
  • Emoji Picker: Rich emoji selection.
  • Clear Formatting: Remove all styles from selected text.
  • AI-Powered Refactoring (with geminiApiKey):
    • Improve clarity, grammar, and flow using Google Gemini AI.
    • Get intelligent suggestions with a highlighted diff view.
  • Image Insertion:
    • Upload and embed images.
    • Resize images after inserting.
    • Store image as a Base64 string.
  • Video Embedding: Embed YouTube/Vimeo videos by URL.
  • Table Creation: Add customizable tables.
  • Multi-Column Layouts: Easily structure content with columns.
  • Word (.docx) Import: Import directly from Word files.
  • Full-Screen Mode: Distraction-free editing.
  • Source View: View and edit raw HTML.

Premium Access

We provide premium keys for special purposes.
For production use or extended access and features, please contact us at: Contact

⚙️ Component Props

| Prop | Type | Default | Description | | ------------------- | -------- | ------- | ----------------------------------------------- | | content | string | "" | The HTML content to be displayed and edited. | | setContent | function | "" | Function called with updated content. | | geminiApiKey | string | "" | Your Google Gemini API key for AI refactoring. | | parentEditorClass | string | "" | Custom CSS class for the main editor container. | | toolBarClass | string | "" | Custom CSS class for the toolbar. | | textContentClass | string | "" | Custom CSS class for the content area. | | theme | string | "" | Editor themes (classic, modern, futuristic) | | premiumApiKey | string | "" | Premium Api key for Advance Gen AI |


📄 Application Preview

Classic Theme


Classic

Modern Theme


Modern

Futuristic Theme


Futuristic


📄 License

This project is licensed under the MIT License.
See the LICENSE file for more details.