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/ui-teams

v0.9.144

Published

React renderer for Microsoft Teams Adaptive Cards and Teams chat surfaces

Readme

@dbx-tools/ui-teams

Render Microsoft Teams Adaptive Cards or a Teams-style conversation preview in a React application. This browser package uses the adaptivecards renderer, card contracts from @dbx-tools/shared-teams, and the shared @dbx-tools/ui foundation.

Quick start

import { TeamsChat } from "@dbx-tools/ui-teams/react";

export function SupportChat() {
  return <TeamsChat className="h-full" />;
}

Import the stylesheet after your AppKit UI theme.

Package fit

Use this package with the @dbx-tools/teams server plugin. Import @databricks/appkit-ui/styles.css before this package's stylesheet. The components don't read AppKit client configuration. TeamsChat and AdaptiveCardGallery use the explicit endpoint and buildEndpoint props, which default to /api/teams/messages and /api/teams/card.

The browser preview doesn't implement Microsoft Bot Framework authentication. The /messages route returns activities in the HTTP response only when the server enables its development-only allowUnauthenticated option. For a local preview against the normal server configuration, set endpoint="/api/teams/activity". Keep Microsoft Teams bot credentials and Connector API delivery on the server.

Use @dbx-tools/ui-mastra for Mastra chat and @dbx-tools/ui for common AppKit, authentication, email, and search components.

Package contents

  • TeamsChat posts Bot Framework activities and renders reply attachments as Adaptive Cards. It keeps one conversation ID per mount, cancels an active request on unmount, and supports starter prompts.
  • AdaptiveCardView renders a compiled Adaptive Card and supports Action.OpenUrl handling through onOpenUrl.
  • AdaptiveCardGallery edits a CardSpec, compiles it through POST /api/teams/card, and renders the result.
  • CARD_SAMPLES provides examples with facts, link actions, and notes.
  • TextBlock Markdown uses marked. If parsing fails, the renderer displays the source as plain text.

Configure the chat preview

import { TeamsChat } from "@dbx-tools/ui-teams/react";

const Chat = () => <TeamsChat className="h-full" />;

Point endpoint elsewhere if the plugin is mounted under a different name, and pass agentId to converse with a specific agent instead of the server's default. starters replaces the built-in DEFAULT_STARTERS prompts.

Render a card

import { AdaptiveCardView, type AdaptiveCard } from "@dbx-tools/ui-teams/react";

const Preview = ({ card }: { card: AdaptiveCard }) => (
  <AdaptiveCardView card={card} className="ac-container" />
);

AdaptiveCardView renders any compiled Adaptive Card document, including one returned by the create_teams_card tool, the plugin's buildCard export, or the /api/teams/card route. Card text is treated as Markdown, matching how Teams renders a TextBlock.

Add a live preview page

import { AdaptiveCardGallery } from "@dbx-tools/ui-teams/react";

const Cards = () => <AdaptiveCardGallery />;
export default Cards;

Add <AdaptiveCardGallery /> to a route. It posts the edited CardSpec to the @dbx-tools/teams plugin's /api/teams/card route and renders the compiled card. Point it at a different mount with buildEndpoint.

Styles

Import the stylesheet once from the host app's Tailwind entry, after Tailwind and your AppKit UI theme:

@import "tailwindcss";
@import "@databricks/appkit-ui/styles.css";
@import "@dbx-tools/ui-teams/styles.css";

The Teams stylesheet imports the shared @dbx-tools/ui foundation and uses AppKit semantic tokens. Import it once from the host application's Tailwind entry point.

Package exports

  • ./react: TeamsChat, DEFAULT_STARTERS, AdaptiveCardView, AdaptiveCardGallery, CARD_SAMPLES, and the re-exported Activity, AdaptiveCard, CardResult, and CardSpec types.
  • ./styles.css: AppKit-token-based gallery styles and a minimal Adaptive Card container skin.