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

@gotipe/ai-ui

v0.1.6

Published

React components for the GoTipe AI layer: a command palette, an action toolbar and controlled ghost text.

Readme

@gotipe/ai-ui

React components for the GoTipe AI layer: a command palette, an action toolbar and a controlled ghost text for your own editor layouts. They work with the extensions and the provider of @gotipe/ai. BlockEditor from @gotipe/block-editor already has its own AI controls built in.

Docs · Website · Repository

Install

npm install @gotipe/ai-ui @gotipe/ai @gotipe/core @gotipe/react react react-dom

Usage

import type { AiCommand, AiProvider } from "@gotipe/ai";
import { AiCommandPalette } from "@gotipe/ai-ui";
import { type GoTipeEditor, createId } from "@gotipe/core";

declare const backendProvider: AiProvider; // your adapter for @gotipe/ai

const commands: AiCommand[] = [
  {
    name: "Summarize",
    description: "Replace the selection with a summary",
    async execute(_editor, context) {
      const content = await backendProvider.executeCommand("summarize", context);
      return [{ id: createId(), type: "summarize", content, confidence: 1 }];
    },
  },
];

export function Palette(props: { editor: GoTipeEditor; onClose: () => void }) {
  return <AiCommandPalette editor={props.editor} commands={commands} onClose={props.onClose} />;
}
  • AiCommandPalette (editor, commands, onClose) lists your commands, filters them as you type and replaces the selection with the suggestion you pick. It shows an error instead when the document changed meanwhile.
  • AiToolbar (editor, onCommand) shows Rewrite, Summarize, Expand, Fix grammar and Translate buttons and calls onCommand with rewrite, summarize, expand, fixGrammar or translate; running the command is up to you.
  • AiGhostText (editor, text, onAccept, onDismiss) renders a completion you control; Tab accepts it. GhostText is its deprecated earlier name.

The components take their words from GoTipeI18nProvider of @gotipe/react (the ai.* keys), English without one. @gotipe/theme has no styles for them: style .gotipe-ai-command-palette and .gotipe-ai-toolbar yourself.

License

@gotipe/ai-ui is licensed under the GoTipe Commercial License: use is free for personal projects, non-profits and education, OSI-licensed open-source projects, organizations with less than USD 1,000,000 gross revenue in the last 12 months, and evaluation or development before production; other production use needs a commercial license. See Licensing.