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 🙏

© 2026 – Pkg Stats / Ryan Hefner

chatbot-ai-lin

v2.0.7

Published

Widget de chat para conectar con un servidor Rasa

Readme

chat-ai-lin

npm version License: MIT

Componente React para integrar un chatbot inteligente basado en Rasa en proyectos Next.js. Incluye estilos con Tailwind CSS y se conecta fácilmente a tu backend de Rasa.


📦 Instalación

npm install chat-ai-lin

Uso

1. Importa el componente y los estilos en tu aplicación:

import Chatbot from 'chat-ai-lin';
import 'chat-ai-lin/dist/styles.css';

function MyApp() {
  return (
    <div>
      <Chatbot backendUrl="http://localhost:5005" primaryColor="#3b82f6" />
    </div>
  );
}

2. Si usas Tailwind CSS, agrega la ruta del paquete a tu tailwind.config.js

content: [
  // ...
  './node_modules/chat-ai-lin/**/*.js',
],

Backend (Rasa + Docker)

El backend necesario para procesar las conversaciones está disponible en el repositorio aparte:

https://github.com/Jesus-Alva/chatbot-design.git

Sigue las instrucciones de ese repositorio para levantar los contenedores Docker con Rasa, las acciones personalizadas y Redis.

Requisitos previos

Docker y Docker Compose instalados.

(Opcional) Python si deseas modificar las acciones.

Pasos rápidos para levantar el backend

# Clona el repositorio (si no lo has hecho)
git clone https://github.com/Jesus-Alva/chatbot.git
cd chatbot-design/backend

# Construye y levanta los contenedores
docker-compose up -d

# Entrena el modelo (primera vez)
docker-compose exec rasa rasa train

# Reinicia el contenedor de Rasa para cargar el modelo entrenado
docker-compose restart rasa

Props del componente


Prop	       | Tipo	   | Descripción	Valor por defecto
backendUrl	   | string	   | URL base del servidor Rasa	http://localhost:5005
primaryColor   | string	   | Color principal del botón y encabezado (código hex o nombre)	#3b82f6 (azul)

Personalización

Frontend Puedes modificar el comportamiento del componente sobrescribiendo estilos mediante CSS personalizado o pasando clases adicionales (si en el futuro se extiende). Por ahora, las props backendUrl y primaryColor te permiten adaptar la apariencia básica.

Backend Las acciones del chatbot (consultas a APIs, reservas, etc.) se definen en el archivo actions/actions.py. Puedes modificarlas para conectar con tus sistemas de reservas, bases de datos o cualquier otra fuente de información.

Solución de problemas comunes

Error: "rollup/plugin-babel" conflict (solo durante el desarrollo del paquete)

Si encuentras errores como:

 -npm error node_modules/rollup/plugin-babel
 -npm error   dev rollup/plugin-babel@"^4.4.0" from the root project
 -npm error Fix the upstream dependency conflict, or retry
 -npm error this command with --force or --legacy-peer-deps
 -npm error to accept an incorrect (and potentially broken) dependency resolution.

Esto se debe a que el paquete rollup-plugin-babel antiguo no es compatible con Rollup 3. No afecta a los usuarios finales, pero si deseas contribuir al desarrollo, actualiza las dependencias en el package.json:

"devDependencies": {
  "@rollup/plugin-babel": "^6.0.4",
  "@rollup/plugin-commonjs": "^25.0.7",
  "@rollup/plugin-node-resolve": "^15.2.3"
}

Ante cualquier corrección de esta libreria

Para una mejor implementacion de cambios limbia la carpeta node_modules o package.json con el comando:

rm -rf node_modules package-lock.json

📝 Licencia

MIT © Jesus Alva Bustamante