oiper-email

Email Template Builder

/_next/static/media/S-1768044241819.0-fos4x5elti3.png
Next.js
GraphQL

A simple, efficient email builder that uses reusable modules and configurable presets.

@oiper/email-core is the package behind it. It is the base for email apps at OiPer rather than an editor on its own.

What it does

  • Turns a structured list of email blocks into rendered HTML, built on React Email.
  • Provides layout blocks (row, column, section) and content blocks (text, button, heading, image, spacer).
  • Supports HTML, Markdown and syntax-highlighted code blocks.
  • Controls mobile and desktop visibility for responsive emails.
  • Validates email structures at runtime with Zod schemas, with full TypeScript types.
  • Works in the browser and in Node.js.

Usage

npm install @oiper/email-core
import { zodEmailNodeSchema } from '@oiper/email-core'

function validateEmail(data: unknown) {
  try {
    const validated = zodEmailNodeSchema.parse(data)
    return { success: true, data: validated }
  } catch (error) {
    return { success: false, error }
  }
}