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/email

v1.0.0

Published

Servicio de email para Skailan

Downloads

4

Readme

@skailan/email

Servicio de email para la plataforma Skailan.

Descripción

Este módulo proporciona funcionalidades completas de envío de emails para la plataforma Skailan. Incluye:

  • Envío de emails transaccionales y de marketing
  • Plantillas personalizables
  • Integración con Resend para envío confiable
  • Gestión de listas de distribución
  • Seguimiento de apertura y clics
  • Notificaciones automáticas

Instalación

npm install @skailan/email

Uso

Importación básica

import { EmailService } from '@skailan/email';

const emailService = new EmailService();

// Enviar email simple
await emailService.sendEmail({
  to: "[email protected]",
  subject: "Bienvenido a Skailan",
  template: "welcome",
  data: {
    name: "Juan Pérez",
    organization: "Empresa ABC"
  }
});

Configuración de variables de entorno

RESEND_API_KEY="your-resend-api-key"
DATABASE_URL="postgresql://user:password@localhost:5432/skailan"

API Endpoints

Emails

  • POST /emails/send - Enviar email
  • GET /emails - Listar emails enviados
  • GET /emails/:id - Obtener email
  • POST /emails/bulk - Envío masivo

Plantillas

  • GET /templates - Listar plantillas
  • POST /templates - Crear plantilla
  • GET /templates/:id - Obtener plantilla
  • PUT /templates/:id - Actualizar plantilla

Listas de distribución

  • GET /lists - Listar listas
  • POST /lists - Crear lista
  • GET /lists/:id/subscribers - Listar suscriptores
  • POST /lists/:id/subscribers - Agregar suscriptor

Características

  • Envío confiable: Integración con Resend para alta entregabilidad
  • Plantillas dinámicas: Sistema de templates con variables
  • Envío masivo: Soporte para campañas de email marketing
  • Seguimiento: Tracking de apertura y clics
  • Notificaciones: Emails automáticos para eventos del sistema
  • Multitenancy: Aislamiento por organización

Dependencias

  • Express.js para el servidor web
  • Resend para envío de emails
  • 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

Ejemplos de uso

Enviar email de bienvenida

import { EmailService } from '@skailan/email';

const emailService = new EmailService();

await emailService.sendWelcomeEmail({
  to: "[email protected]",
  name: "María García",
  organizationName: "Empresa XYZ",
  loginUrl: "https://app.skailan.com/login"
});

Enviar notificación de conversación

await emailService.sendConversationNotification({
  to: "[email protected]",
  contactName: "Juan Pérez",
  platform: "WhatsApp",
  message: "Hola, necesito información sobre sus servicios",
  conversationUrl: "https://app.skailan.com/conversations/123"
});

Enviar cotización por email

await emailService.sendQuote({
  to: "[email protected]",
  contactName: "Ana López",
  quoteNumber: "Q-2024-001",
  totalAmount: 25000,
  validUntil: "2024-02-15",
  quoteUrl: "https://app.skailan.com/quotes/123"
});

Plantillas disponibles

  • welcome - Email de bienvenida
  • password-reset - Restablecimiento de contraseña
  • conversation-notification - Notificación de nueva conversación
  • quote - Envío de cotización
  • invoice - Envío de factura
  • marketing - Email de marketing

Licencia

MIT