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

skailan-ai

v1.0.0

Published

Servicio de IA y procesamiento de lenguaje natural para Skailan

Readme

@skailan/ai

Servicio de IA y procesamiento de lenguaje natural para la plataforma Skailan.

Descripción

Este módulo proporciona capacidades de inteligencia artificial y procesamiento de lenguaje natural para la plataforma Skailan. Incluye:

  • Integración con múltiples proveedores de IA (OpenAI, Google Gemini)
  • Generación de contenido automático
  • Análisis de intenciones y sentimientos
  • Configuración de prompts y LLMs
  • Procesamiento de conversaciones en tiempo real

Instalación

npm install @skailan/ai

Uso

Importación básica

import { AIService } from '@skailan/ai';

const aiService = new AIService();

// Generar contenido
const content = await aiService.generateContent({
  prompt: "Escribe un email de bienvenida",
  model: "gpt-4"
});

Configuración de variables de entorno

OPENAI_API_KEY="your-openai-api-key"
GOOGLE_GEMINI_API_KEY="your-gemini-api-key"
DATABASE_URL="postgresql://user:password@localhost:5432/skailan"

API Endpoints

Configuración de LLM

  • GET /llm-configs - Listar configuraciones de LLM
  • POST /llm-configs - Crear configuración de LLM
  • GET /llm-configs/:id - Obtener configuración
  • PUT /llm-configs/:id - Actualizar configuración
  • DELETE /llm-configs/:id - Eliminar configuración

Prompts

  • GET /prompts - Listar prompts
  • POST /prompts - Crear prompt
  • GET /prompts/:id - Obtener prompt
  • PUT /prompts/:id - Actualizar prompt
  • DELETE /prompts/:id - Eliminar prompt

Generación de contenido

  • POST /content/generate - Generar contenido
  • POST /content/analyze - Analizar contenido
  • POST /intent/analyze - Analizar intención

Características

  • Múltiples proveedores: Soporte para OpenAI y Google Gemini
  • Gestión de prompts: Sistema de templates y variables
  • Configuración flexible: Configuración por organización
  • Análisis de intenciones: Clasificación automática de intenciones
  • Generación de contenido: Creación automática de contenido relevante

Dependencias

  • OpenAI SDK para GPT models
  • Google Generative AI para Gemini
  • Express.js para el servidor web
  • Prisma para ORM
  • @skailan/core para autenticación

Desarrollo

# Instalar dependencias
npm install

# Ejecutar en modo desarrollo
npm run dev

# Construir para producción
npm run build

# Generar cliente Prisma
npm run prisma:generate

Ejemplos de uso

Generar respuesta automática

import { AIService } from '@skailan/ai';

const aiService = new AIService();

const response = await aiService.generateResponse({
  message: "Hola, necesito ayuda con mi cuenta",
  context: "Cliente nuevo",
  tone: "amigable"
});

Analizar intención del cliente

const intent = await aiService.analyzeIntent({
  message: "Quiero cancelar mi suscripción",
  customerHistory: "Cliente activo por 6 meses"
});

Licencia

MIT