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

@evtray/email-editor

v2.0.0

Published

Editor de correos electrónicos para aplicaciones Vue 3

Readme

@evtray/email-editor

Editor de correos electrónicos para aplicaciones Vue 3 con soporte para formato enriquecido y adjuntos.

Características

  • Editor WYSIWYG basado en Quill
  • Soporte para adjuntos con vista previa
  • Diseño responsive
  • Compatibilidad con Vue 3
  • Escrito en TypeScript
  • Estilizado con TailwindCSS
  • Validación de formularios con VeeValidate y Zod

Instalación

# npm
npm install @evtray/email-editor

# yarn
yarn add @evtray/email-editor

# pnpm
pnpm add @evtray/email-editor

Uso básico

Registrar el plugin (opcional)

// main.js / main.ts
import { createApp } from 'vue'
import App from './App.vue'
import EmailEditor from '@evtray/email-editor'
import '@evtray/email-editor/dist/style.css'

const app = createApp(App)
app.use(EmailEditor)
app.mount('#app')

Importar componentes individualmente

<template>
  <div>
    <EmailCreator 
      :emailData="emailData" 
      :acceptedFileTypes="acceptedFileTypes"
      :maxFileSize="maxFileSize"
      :imageUploadUrl="imageUploadUrl"
      :imageUploadHeaders="imageUploadHeaders"
      @image-uploaded="onImageUploaded"
    />
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { EmailCreator } from '@evtray/email-editor'
import '@evtray/email-editor/dist/style.css'

const emailData = ref({
  title: '',
  subject: '',
  content: '',
  attachments: []
})

const acceptedFileTypes = [
  'application/pdf',
  'image/jpeg',
  'image/png'
]

const maxFileSize = 5 * 1024 * 1024 // 5MB

const imageUploadUrl = 'https://api.example.com/upload'
const imageUploadHeaders = {
  'Authorization': 'Bearer your-token'
}

const onImageUploaded = (imageUrl) => {
  console.log('Imagen subida:', imageUrl)
}
</script>

Componentes disponibles

EmailCreator

El componente principal para crear/editar correos.

Props

  • emailData: Objeto con los datos del correo (título, asunto, contenido, adjuntos)
  • acceptedFileTypes: Array de tipos MIME aceptados para adjuntos
  • maxFileSize: Tamaño máximo de archivo en bytes
  • imageUploadUrl: URL para subir imágenes
  • imageUploadHeaders: Headers para la petición de carga de imágenes

Eventos

  • update:attachments: Emitido cuando cambia la lista de adjuntos
  • image-uploaded: Emitido cuando se sube una imagen correctamente

MailDisplay

Componente para mostrar un correo electrónico.

Props

  • mail: Objeto con los datos del correo
  • showAttachments: Booleano para mostrar/ocultar adjuntos

AttachmentList

Componente para mostrar una lista de adjuntos.

Props

  • attachments: Array de objetos de tipo Attachment

Tipos

// Mail
interface Mail {
  id: string;
  subject: string;
  from: Recipient;
  to: Recipient[];
  cc?: Recipient[];
  bcc?: Recipient[];
  body: string;
  date: Date | string;
  read: boolean;
  flagged: boolean;
  attachments?: Attachment[];
}

// Attachment
interface Attachment {
  id: string;
  name: string;
  size: number;
  type: string;
  url: string;
  modifiedAt?: Date | string;
}

// Recipient
interface Recipient {
  id: string;
  name: string;
  email: string;
  avatar?: string;
}

Licencia

MIT