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

@akhlaqdigital/editor

v0.14.19

Published

A powerful, modern rich text editor for React applications and vanilla JavaScript. Built with Tiptap and optimized for performance, accessibility, and developer experience.

Readme

📝 Akhlaq Digital Editor

Editor Preview

A modern, powerful rich text editor for React and vanilla JavaScript

npm version Downloads License: MIT

📖 Documentation · 🎯 Live Demo · 📧 Support

✨ Why Choose This Editor?

  • Lightning Fast - Optimized performance with minimal bundle size
  • 🎨 Beautiful by Default - Modern, clean UI that works out of the box
  • 📱 Mobile First - Touch-optimized interface for all devices
  • 🔧 Easy Integration - Works with React, Next.js, Vue, or vanilla JS
  • 🔒 Type Safe - Full TypeScript support
  • 🌐 Dual Distribution - NPM package + CDN for maximum flexibility

🚀 Quick Start

NPM Installation (React)

npm install @akhlaqdigital/editor
import { SimpleEditor } from "@akhlaqdigital/editor";

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

  return (
    <SimpleEditor
      content={content}
      onChange={setContent}
      placeholder="Start writing..."
      height={400}
    />
  );
}

CDN Usage (Vanilla JS)

<div id="editor" style="height: 400px;"></div>

<script src="https://cdn.jsdelivr.net/npm/@akhlaqdigital/editor/dist/ad-editor.js"></script>
<script>
  const editor = window.AkhlaqDigitalEditor.init({
    container: "#editor",
    placeholder: "Start typing...",
    content: "<p>Welcome!</p>",
    onChange: (content) => console.log(content),
  });
</script>

📖 Documentation

| Resource | Description | Link | | ---------------------- | -------------------------------- | --------------------------------------------------------------- | | 📚 Complete Guide | Full documentation with examples | View Docs → | | ⚛️ React/NPM Guide | React integration guide | NPM Docs → | | 🌐 CDN/Vanilla JS | Vanilla JavaScript guide | CDN Docs → | | 🎯 Live Demo | Interactive playground | Try Demo → |

🎨 Styling & CSS Classes

The editor uses CSS classes with the akd- prefix to avoid conflicts with your application styles:

  • .akd - Main editor container with all core editor styles
  • .dropdown-menu - Dropdown menus for mentions and tools
  • .tableWrapper - Table container for responsive table handling

Import Styles

// For NPM/React projects
import "@akhlaqdigital/editor/styles.css";
<!-- For CDN usage -->
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@akhlaqdigital/editor/dist/styles.css"
/>

All styles are scoped and won't interfere with your existing CSS framework (Bootstrap, Tailwind, etc.).

📦 Core Features

  • 📝 Rich Text Editing - Bold, italic, headers, lists, and more
  • 📷 Image Support - Drag & drop images with resizing
  • 😊 Emoji Picker - Categorized emoji selection
  • 👥 Mentions - @user functionality with suggestions
  • 📎 File Upload - Drag & drop file handling
  • 📊 Tables - Full table editing capabilities
  • 💻 Code Blocks - Syntax highlighted code
  • 📱 Mobile Responsive - Touch-optimized interface

🔧 Props Reference

| Prop | Type | Default | Description | | ---------------------- | ---------- | --------------------------- | ----------------------------------------------------------------- | | content | string | null | Initial HTML content | | onChange | function | () => {} | Callback when content changes | | placeholder | string | "Enter your content here" | Placeholder text | | height | number | 300 | Editor height in pixels | | isEditable | boolean | true | Enable/disable editing | | isRefreshEditor | boolean | false | Force remount when deps change | | isAutoFocus | boolean | false | Autofocus the editor on mount | | isShowMention | boolean | true | Enable @mentions | | isShowEmoji | boolean | true | Enable emoji picker | | isFileUpload | boolean | true | Enable file uploads | | isBottomToolbar | boolean | false | Show toolbar at the bottom | | acceptedFileTypes | string | - | Accepted file types for upload (e.g. "image/*,application/pdf") | | mentions | array | [] | Mention suggestions (array of user objects) | | onInit | function | - | Callback when editor is initialized | | handleImageInsertion | function | - | Custom handler for image insertion | | handleFilesChange | function | async () => {} | Custom handler for file uploads | | className | string | - | Custom class for the editor container |

🎨 Styling

Easily customize the editor appearance:

.akd-editor-wrapper {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.akd-editor-content {
  min-height: 200px;
  padding: 16px;
}

🤝 Support

📄 License

MIT License


Made with ❤️ by Akhlaq Digital