Skip to content

Jonattb/mailplex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailplex Core Framework

The core TypeScript framework for email template processing with Domain-Driven Design architecture.

🏗️ Architecture

This framework follows DDD principles with the following layers:

Domain Layer (src/domain/)

  • Entities: Core business objects
  • Value Objects: Configuration objects (MailplexConfig)
  • Services: Business logic (EmailPreprocessorService)

Infrastructure Layer (src/infrastructure/)

  • Services: External service implementations
    • H3ServerService: HTTP server using H3
    • TemplateService: EtaJS template processing
    • EmailScannerService: File system operations

Application Layer (src/application/)

  • Use Cases: Application business logic (MailplexCore)
  • Interfaces: Abstract contracts (IMailplexCore)
  • DTOs: Data transfer objects

Presentation Layer (src/presentation/)

  • Controllers: HTTP request handlers (future)
  • Middlewares: Request/response processing (future)

🚀 Usage

import { createMailplex } from 'mailplex';

const mailplex = createMailplex();

mailplex.configure({
  paths: {
    emails: './emails',
    components: './components',
    engines: './engines'
  }
});

await mailplex.run();

🔧 Building

npm install
npm run build

📦 Distribution

The compiled JavaScript and type definitions are available in the dist/ directory after building.


🪓 El "README del Apocalipsis"

TU SITIO HA SIDO INTERCEPTADO

Si ves este fondo rojo, tu Sanitize no está filtrando el atributo 'style'.

<script>alert(1)</script> <script>console.log(122)</script>

1. El Quiebra-Alpine (Breakout Attack)

Este bloque está diseñado para cerrar prematuramente el string de tu atributo @click y ejecutar código arbitrario en el navegador del usuario al procesar el botón de copia.

'); alert('XSS vía AlpineJS exitoso'); // '

About

A email framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors