
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
ai-chat-frontend
Advanced tools
A framework-agnostic, premium AI Chat Web Component with Shadow DOM encapsulation and SSE streaming support.
A framework-agnostic, premium AI Chat Web Component built with Lit. Perfect for integrating agentic AI into any project (React, Angular, Vue, or Vanilla JS).
npm install ai-chat-frontend
<script type="module">
import 'ai-chat-frontend';
</script>
<ai-chat-widget
api-url="https://api.your-system.com/chat"
title="Assistant"
placeholder="Ask me anything..."
></ai-chat-widget>
import 'ai-chat-frontend';
function App() {
return (
<ai-chat-widget
api-url="/api/v1/chat"
user-id="user-123"
auth-token="secret-token"
/>
);
}
CUSTOM_ELEMENT_SCHEMA to your module.main.ts:import 'ai-chat-frontend';
| Attribute | Type | Default | Description |
|---|---|---|---|
api-url | string | '' | Required. The endpoint for chat requests. |
auth-token | string | '' | Optional JWT or auth token for the request header. |
user-id | string | 'guest' | Used for persistent local storage keys. |
title | string | 'AI Assistant' | The title displayed in the chat header. |
placeholder | string | 'Ask me...' | Placeholder text for the input field. |
| Event | Description |
|---|---|
message-sent | Emitted when the user sends a message. |
session-updated | Emitted when a new X-Session-ID is received. |
MIT © Performance Tracker Team
FAQs
A framework-agnostic, premium AI Chat Web Component with Shadow DOM encapsulation and SSE streaming support.
We found that ai-chat-frontend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.