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

@editora/ui-editor

v0.1.9

Published

Editor-focused UI extensions for Editora (floating toolbar, command palette, context menus)

Readme

Use @editora/ui-core. The six elements below are defined and maintained there, and wrapped for React by @editora/ui-react. Installing @editora/ui-editor does not add them and does not change them: the page is the same with it and without it.

The elements

| Element | What it is | React component | | --- | --- | --- | | <ui-command-palette> | A modal search box over a list of commands, driven by the keyboard. | CommandPalette | | <ui-floating-toolbar> | A toolbar that opens next to an anchor element, and closes on Escape or an outside click. | FloatingToolbar | | <ui-context-menu> | A menu that opens on right-click, with typeahead. | ContextMenu | | <ui-selection-popup> | A popup that opens next to an anchor element, with an optional arrow. | SelectionPopup | | <ui-block-controls> | A group of controls for one block of content, moved between with the arrow keys. | BlockControls | | <ui-plugin-panel> | A titled panel docked to the right, left or bottom of the page, which can be dismissed. | PluginPanel |

The React components are in @editora/ui-react, and the options of every element are in @editora/ui-core.

Quick start

Install @editora/ui-core, and use the elements as HTML. A command palette is a list of your own buttons with slot="command": open it with openPalette(), and listen for select.

npm install @editora/ui-core
<script type="importmap">
  {
    "imports": {
      "@editora/ui-core": "https://cdn.jsdelivr.net/npm/@editora/ui-core/dist/index.esm.js",
      "@editora/icons": "https://cdn.jsdelivr.net/npm/@editora/icons/dist/index.esm.js"
    }
  }
</script>
<script type="module">
  import '@editora/ui-core';
</script>

<style>
  /* The commands are your own buttons, so you style them. The palette marks the one the arrow keys are on. */
  ui-command-palette button { display: block; width: 100%; margin: 0; padding: 10px 14px; border: 0; border-radius: 6px; background: transparent; color: #24292f; font: 15px system-ui, sans-serif; text-align: left; cursor: pointer; }
  ui-command-palette button[data-active='true'] { background: #dbeafe; }
</style>

<button id="open" type="button">Open the command palette</button>
<p id="status">Nothing run yet</p>

<ui-command-palette id="palette" placeholder="Type a command...">
  <button slot="command">Insert table</button>
  <button slot="command">Toggle bold</button>
  <button slot="command">Clear formatting</button>
</ui-command-palette>

<script type="module">
  const palette = document.getElementById('palette');

  document.getElementById('open').addEventListener('click', () => palette.openPalette());

  // The palette filters as you type, moves with the arrow keys, runs a command on Enter and closes on Escape.
  palette.addEventListener('select', (event) => {
    document.getElementById('status').textContent = `Ran: ${event.detail.label}`;
  });
</script>

What this package contains

It exports six classes: UIFloatingToolbar, UICommandPalette, UIContextMenu, UIPluginPanel, UIBlockControls and UISelectionPopup. They are earlier, simpler versions of the elements in @editora/ui-core, and each module defines its tag only if the tag is still free (if (!customElements.get(tag))).

It never is: @editora/ui-editor imports @editora/ui-core first, and that defines all six tags. Loading this package therefore registers nothing, and customElements.get('ui-command-palette') is the element of @editora/ui-core, not the class of this package. If you want to extend one of the elements, import its class from @editora/ui-core, which exports the same names.

Install

npm install @editora/ui-editor

It depends on @editora/ui-core (and lists it as a peer dependency), so that is installed with it.

License

MIT © Ajay Kumar