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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@neurodevworks/angular-chatbot

v1.0.0

Published

Advanced AI chatbot components for Angular applications

Readme

@neurodevworks/angular-chatbot

npm version License: MIT

Advanced AI chatbot components for Angular applications with beautiful UI and real-time streaming.

🚀 Features

  • Ready-to-Use Components: Drop-in chatbot components for Angular
  • Beautiful UI: Material Design with customizable themes
  • Real-time Streaming: Live typing indicators and streaming responses
  • Multi-AI Support: Works with OpenAI, Claude, Gemini, and more
  • TypeScript First: Full type safety and IntelliSense support
  • Responsive Design: Mobile-first responsive layout
  • Customizable: Extensive theming and configuration options

📦 Installation

npm install @neurodevworks/angular-chatbot @neurodevworks/chatbot-core

🛠️ Quick Start

1. Import the Module

import { Component } from '@angular/core';
import { ChatbotComponent } from '@neurodevworks/angular-chatbot';

@Component({
  selector: 'app-chat',
  template: `
    <ai-chatbot 
      [config]="chatConfig" 
      [options]="chatOptions">
    </ai-chatbot>
  `,
  imports: [ChatbotComponent]
})
export class ChatComponent {
  chatConfig = {
    apiKey: 'your-openai-api-key',
    provider: 'openai',
    model: 'gpt-3.5-turbo'
  };

  chatOptions = {
    title: 'AI Assistant',
    placeholder: 'Ask me anything...',
    streaming: true,
    showAvatars: true
  };
}

2. Add Styles (Optional)

// In your global styles or component styles
@import '@neurodevworks/angular-chatbot/themes/default';

// Or customize the theme
.ai-chatbot {
  --chatbot-primary-color: #004879;
  --chatbot-secondary-color: #F7931E;
  --chatbot-background-color: #ffffff;
  --chatbot-text-color: #2C2E2F;
}

🎯 Components

ChatbotComponent

The main chatbot component with full chat interface.

<ai-chatbot 
  [config]="chatConfig"
  [options]="chatOptions"
  (messageReceived)="onMessageReceived($event)"
  (messageSent)="onMessageSent($event)">
</ai-chatbot>

Inputs

  • config: ChatConfig - AI service configuration
  • options: ChatOptions - UI and behavior options

Outputs

  • messageReceived: EventEmitter<Message> - Emitted when AI responds
  • messageSent: EventEmitter<Message> - Emitted when user sends message

MessageComponent

Individual message component for custom layouts.

<ai-message 
  [message]="message"
  [showAvatar]="true"
  [theme]="'light'">
</ai-message>

InputComponent

Chat input component for custom interfaces.

<ai-chat-input 
  [placeholder]="'Type your message...'"
  [disabled]="isLoading"
  (messageSent)="onMessageSent($event)">
</ai-chat-input>

⚙️ Configuration

ChatConfig

interface ChatConfig {
  apiKey: string;
  provider: 'openai' | 'claude' | 'gemini';
  model: string;
  baseUrl?: string;
}

ChatOptions

interface ChatOptions {
  title?: string;
  placeholder?: string;
  theme?: 'light' | 'dark' | 'auto';
  showAvatars?: boolean;
  streaming?: boolean;
  fullHeight?: boolean;
  autoScroll?: boolean;
  markdown?: boolean;
  systemPrompt?: string;
}

🎨 Theming

Built-in Themes

// Light theme (default)
chatOptions = { theme: 'light' };

// Dark theme
chatOptions = { theme: 'dark' };

// Auto theme (follows system preference)
chatOptions = { theme: 'auto' };

Custom Themes

.ai-chatbot.custom-theme {
  --chatbot-primary-color: #your-primary-color;
  --chatbot-secondary-color: #your-secondary-color;
  --chatbot-background-color: #your-background-color;
  --chatbot-text-color: #your-text-color;
  --chatbot-border-color: #your-border-color;
  --chatbot-shadow-color: rgba(0, 0, 0, 0.1);
}

🔧 Advanced Usage

Custom Message Handling

export class ChatComponent {
  onMessageReceived(message: Message) {
    console.log('AI responded:', message);
    // Custom logic for AI responses
  }

  onMessageSent(message: Message) {
    console.log('User sent:', message);
    // Custom logic for user messages
  }
}

Streaming Configuration

chatOptions = {
  streaming: true,
  showTypingIndicator: true,
  streamingDelay: 50 // milliseconds between tokens
};

File Upload Support

chatOptions = {
  enableFileUpload: true,
  acceptedFileTypes: ['.pdf', '.txt', '.doc'],
  maxFileSize: 10 * 1024 * 1024 // 10MB
};

📱 Responsive Design

The chatbot components are fully responsive and work great on:

  • Desktop: Full-featured interface with all options
  • Tablet: Optimized layout for touch interaction
  • Mobile: Compact interface with essential features

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Related Packages

👨‍💻 Author

Manoj Kumar


Made with ❤️ by NeuroDevWorks