JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q50435F
  • License MIT

AI-Me React UI components — chat panel, command palette, confirmation dialog

Package Exports

  • @ai-me-chat/react

Readme

@ai-me-chat/react

Drop-in React UI components for AI-Me — chat panel, command palette, confirmation dialog, and hooks.

Installation

npm install @ai-me-chat/react

Quick Start

"use client";

import { AIMeProvider, AIMeChat } from "@ai-me-chat/react";

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <AIMeProvider endpoint="/api/ai-me">
      {children}
      <AIMeChat
        suggestedPrompts={[
          "Show me all projects",
          "Create a new project",
        ]}
      />
    </AIMeProvider>
  );
}

Components

  • <AIMeProvider> — context provider, connects to your AI-Me backend
  • <AIMeChat> — floating chat panel with toggle (Cmd+.)
  • <AIMeCommandPalette> — Cmd+K command palette
  • <AIMeConfirm> — confirmation dialog for destructive actions

Hooks

  • useAIMe() — full chat state (messages, input, submit) for custom UIs
  • useAIMeContext() — access provider context

Theming

<AIMeChat
  theme={{
    primaryColor: "#e11d48",
    backgroundColor: "#0f172a",
    textColor: "#f8fafc",
    borderRadius: "8px",
    fontFamily: "'Inter', sans-serif",
  }}
/>

Peer Dependencies

Package Version
@ai-sdk/react ^3.0.0
ai ^6.0.0
react ^19.0.0
react-dom ^19.0.0

Documentation

Full setup guide and API reference: github.com/aselims/ai-me-chat

License

MIT