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

@raazkhnl/rk-editor-ui

v4.6.0

Published

Free open-source Word-style UI layer for RK Word Editor — toolbar, menubar, modals, find-and-replace, document outline, status bar, dark mode, page layout dialog, and a <rk-word-editor> custom element. Drop-in rich-text editor for any web app.

Readme

@raazkhnl/rk-editor-ui

Drop-in Word-style UI for the web. Toolbar, menubar, modals, find-and-replace, document outline, status bar, dark mode, page layout dialog — and a <rk-word-editor> web component. Built on top of @raazkhnl/rk-editor-core.

npm npm downloads License: MIT

The polished default UI for RK Word Editor — a free, fully open-source Microsoft Word / Google Docs alternative for the web. MIT-licensed. No paywall. No telemetry.

Install

npm install @raazkhnl/rk-editor-core @raazkhnl/rk-editor-ui

Quick start (one line, any framework)

import { EditorShell } from '@raazkhnl/rk-editor-ui';
import '@raazkhnl/rk-editor-ui/styles.css';

new EditorShell({
  container: document.getElementById('app')!,
  initialContent: '',
  placeholder: 'Start typing here…',
  outline: true,
  theme: 'light',           // 'light' | 'dark' | 'auto'
});

That gives you:

  • ✅ A4 / Letter / Legal / A3 / A5 / Tabloid page surface
  • ✅ Word-style menubar (File / Edit / Insert / Format / View / Help)
  • ✅ Two-row formatting toolbar with all the SVG icons
  • ✅ Dark mode toggle (auto from system preference)
  • Find & replace (Ctrl/⌘+F, Ctrl/⌘+H) — draggable popup, regex / whole-word / case
  • Document outline sidebar with click-to-jump
  • ✅ Status bar with page count, word count, reading time, zoom (Ctrl/⌘++/-/0)
  • ✅ Themed dialogs for table, image, link, math, footnote, citation, page layout
  • ✅ Insert: image, table, draggable text box, math, footnote, citation, table of contents, page break

As a Web Component

<script type="module" src="https://unpkg.com/@raazkhnl/rk-editor-ui"></script>
<link rel="stylesheet" href="https://unpkg.com/@raazkhnl/rk-editor-ui/dist/style.css" />

<rk-word-editor placeholder="Type here…" theme="auto" outline></rk-word-editor>

React example

import { useEffect, useRef } from 'react';
import { EditorShell } from '@raazkhnl/rk-editor-ui';
import '@raazkhnl/rk-editor-ui/styles.css';

export default function MyEditor() {
  const ref = useRef<HTMLDivElement>(null);
  useEffect(() => {
    if (!ref.current) return;
    const shell = new EditorShell({ container: ref.current, initialContent: '<p>Hello!</p>' });
    return () => shell.destroy();
  }, []);
  return <div ref={ref} style={{ height: '100vh' }} />;
}

(Vue, Svelte, Angular and Next.js patterns are in the main README.)

Theming

Override CSS variables on .rk-word-editor:

.rk-word-editor {
  --rk-primary: #6d28d9;
  --rk-primary-hover: #5b21b6;
  --rk-radius: 8px;
}
.rk-word-editor[data-rk-theme='dark'] {
  --rk-bg: #18181b;
  --rk-surface: #27272a;
}

Exports

  • EditorShell — bundled editor + toolbar in one constructor (recommended)
  • WordToolbar — toolbar/menubar standalone
  • Modal, FindReplaceBar, StatusBar, Outline — individual building blocks
  • Icons, icon(name) — the SVG icon set used internally
  • Dialog helpers: showLinkDialog, showImageDialog, showTableDialog, showMathDialog, showFootnoteDialog, showCitationDialog, showPageLayoutDialog, showShortcutsDialog, showAboutDialog
  • <rk-word-editor> custom element (auto-registered on import)

Documentation

Full docs, recipes & API reference on GitHub →

License

MIT © RaaZ Khanal