JSPM

@xenara/xena-sdk

1.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 27
    • Score
      100M100P100Q56323F

    A powerful SDK to embed AI agents into any web platform. Enable conversational experiences, automate workflows, and provide intelligent assistance through a customizable chat interface.

    Package Exports

    • @xenara/xena-sdk
    • @xenara/xena-sdk/dist/widget.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xenara/xena-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    ๐Ÿง  Xena SDK โ€” Embed AI Agents into Any Web Platform

    npm version License: MIT Build Status

    Xena SDK is a powerful, plug-and-play SDK that lets you embed conversational AI agents into any website or web application in minutes. Enable intelligent conversations, automate workflows, and enhance user engagement with ease.


    ๐Ÿš€ Features

    • โšก๏ธ Lightweight & Fast โ€” Designed for quick embedding with minimal setup.
    • ๐Ÿง  AI-Powered โ€” Backed by powerful LLMs for human-like conversation.
    • ๐ŸŽจ Customizable UI โ€” Change colors, avatars, and prompts to match your brand.
    • ๐Ÿ”Œ Platform Agnostic โ€” Works on any frontend (React, Vue, Angular, or plain HTML).
    • ๐Ÿ”’ Secure & Scalable โ€” Optimized for production deployments.
    • ๐Ÿช„ Event Hooks & API Integration โ€” Easily connect to your internal tools or APIs.
    • ๐Ÿ“ฆ CDN or NPM Ready โ€” Load via script tag or install via npm.

    ๐Ÿ“ฆ Installation

    Option 1: Using npm/yarn

    npm install xena-sdk
    # or
    yarn add xena-sdk

    Option 2: Using CDN

    <script src="https://cdn.jsdelivr.net/npm/xena-sdk@latest/dist/xena.min.js"></script>

    ๐Ÿ› ๏ธ Usage

    Basic Setup (with npm)

    import { XenaAgent } from 'xena-sdk';
    
    XenaAgent.init({
      agentId: 'your-agent-id',
      theme: {
        primaryColor: '#4F46E5',
        avatarUrl: 'https://yourcdn.com/avatar.png'
      },
      containerId: 'xena-container' // Optional: your custom container div
    });

    HTML Example (via CDN)

    <div id="xena-container"></div>
    <script src="https://cdn.jsdelivr.net/npm/xena-sdk@latest/dist/xena.min.js"></script>
    <script>
      XenaAgent.init({
        agentId: 'your-agent-id',
        theme: {
          primaryColor: '#00A67E'
        }
      });
    </script>

    ๐ŸŽจ Customization

    You can pass the following options to init():

    Option Type Description
    agentId string Unique identifier for your AI agent
    theme object Colors, avatars, fonts, etc.
    containerId string DOM ID to mount the chat widget
    language string Language for interface & assistant
    welcomeText string Initial greeting message
    hooks object Event listeners (e.g., onMessageSent)

    ๐Ÿ”Œ Integrations

    Xena SDK can be integrated with:

    • ๐Ÿ”— Your internal APIs (e.g., for FAQs, user data, transactions)
    • ๐Ÿ’ฌ Backend chat engines or ML endpoints
    • ๐Ÿ“ˆ Analytics tools like Google Analytics or Mixpanel

    ๐Ÿงช Example Projects

    Demo Tech Stack
    Basic HTML HTML + JS
    React App React + Vite
    Vue Example Vue 3

    ๐Ÿงฉ Future Roadmap

    • Voice input/output
    • Multi-agent support
    • Chat memory and history sync
    • Plugin system for adding skills
    • Mobile SDKs

    ๐Ÿค Contributing

    We welcome contributions! Please read our contribution guide before submitting a pull request.


    ๐Ÿ“„ License

    This project is licensed under the MIT License.