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

@dbx-tools/appkit-email-ui

v0.1.112

Published

Readme

@dbx-tools/appkit-email-ui

React UI for @dbx-tools/appkit-email: a self-contained Approve / Deny card for an outbound email awaiting human confirmation (the send_email tool flow), the field preview it wraps, and a standard editable compose view for use outside a chat bubble.

The components are presentational - they render the draft (To / Cc / Subject / Markdown body / attachment filenames) and report intent. to and cc may each carry one or more addresses. The approval / send state and transport belong to the caller (wire them to your AppKit chat client's tool-approval flow, or your own send action). The preview, approval card, and compose view all share the address / attachment helpers and the Markdown body renderer, so a draft looks the same everywhere.

Install

npm install @dbx-tools/appkit-email-ui

Peers are satisfied transitively via @dbx-tools/appkit-ui (@databricks/appkit-ui, react, react-dom).

Usage

Import the styles once, then render the card when a send_email tool call is pending approval:

import "@dbx-tools/appkit-email-ui/styles.css";
import { EmailApprovalCard } from "@dbx-tools/appkit-email-ui/react";

<EmailApprovalCard
  email={draft} // partial EmailMessage as it streams in
  onApprove={() => resolve({ approved: true })}
  onDeny={() => resolve({ approved: false })}
/>;

Need only the labelled To / Cc / Subject / Body / Files preview (to compose your own card)? Use EmailPreview:

import { EmailPreview } from "@dbx-tools/appkit-email-ui/react";

<EmailPreview email={draft} />;

The body is rendered as Markdown so links, lists, and emphasis display rather than showing raw syntax.

Compose view

EmailComposeView is a standard editable form (To / Cc / Bcc / Subject / Markdown body with a live preview toggle / file attachments) for sending mail outside the approval flow. It owns the draft as local state and hands the assembled EmailMessage to onSend:

import { EmailComposeView } from "@dbx-tools/appkit-email-ui/react";

<EmailComposeView
  senders={senders} // from GET /api/email/senders (optional)
  onSend={(message, from) => sendEmail(message, from)}
  onCancel={() => setComposing(false)}
/>;

When senders is provided (e.g. fetched from the plugin's /senders route), a From dropdown is shown and its value is passed to onSend; omit it to let the server resolve the sender. Attachments are read into base64 EmailAttachments in the browser.