🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@camunda/copilot-chat

Package Overview
Dependencies
Maintainers
17
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@camunda/copilot-chat

Camunda Copilot Client Library - React components and utilities for Camunda Platform 8

alpha
latest
Source
npmnpm
Version
0.0.0-alpha2
Version published
Maintainers
17
Created
Source

Camunda Copilot Client

React component library for embedding Camunda Copilot chat interface into web applications.

Installation

npm install @camunda/copilot-chat

Usage

import { CopilotChat } from '@camunda/copilot-chat';

function App() {
  const handleSendMessage = async (request, options, instance) => {
    // Handle message sending logic
    const response = {
      output: {
        generic: [
          {
            response_type: 'text',
            text: `You said: "${request.input.text}"`,
          },
        ],
      },
    };

    await instance.messaging.addMessage(response);
  };

  return <CopilotChat customSendMessage={handleSendMessage} workareaSelector="body" />;
}

Props

  • customSendMessage (required): Function to handle message sending and responses
  • workareaSelector (optional): CSS selector for the workarea container (default: "body")

Features

  • Bottom-right floating launcher button
  • Sidecar panel that slides in from the right
  • Automatically injected styles (no separate CSS import needed)

Development

Prerequisites

  • Node.js ≥18.0.0
  • npm ≥9.0.0

Setup

npm install

Local Development

# Run both library build (watch mode) and demo app together
npm run dev

# Or run individually:
# Build library in watch mode
npm run build:watch

# Run demo app (in another terminal)
npm run demo

# Run tests
npm test

# Lint
npm run lint

The demo app runs at http://localhost:4200. The dev command automatically rebuilds the library when you make changes and hot-reloads the demo app.

Contributing

# 1. Create a feature branch
git checkout -b '#ticketNumber/my-feature-description'

# 2. Make changes and test with dev mode
npm run dev

# 3. Run tests
npm test

# 4. Build to verify
npm run build

# 5. Commit and push
git commit -m "feat: my feature"
git push

License

Camunda License 1.0 - See LICENSE file for details.

Keywords

camunda

FAQs

Package last updated on 25 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts