Oy-vey is a utility library for building server-side HTML email templates using React. It provides a set of components (`Table`, `TBody`, `TR`, `TD`, `Img`, `A`) that validate props against email best practices to help ensure compatibility across various email clients. The package also offers `Oy.renderTemplate` to inject rendered React components into a complete HTML email skeleton. Currently at version 0.12.1, the project appears to be largely abandoned, with the last npm publish over five years ago and known, unaddressed issues such as significant TypeScript compilation time increases. Its primary differentiation lies in its React-based component validation for email best practices, but it lacks active development and modern ecosystem support.
npm install oy-veyVerified import paths — ran on the pinned version, not inferred.
Demonstrates rendering a simple React email component using Oy-vey and serving it via an Express.js endpoint.
Consider disabling a subset of TypeScript type-checks as suggested in GitHub issue #84, or use the library in plain JavaScript.
Update JSX attributes from `bgColor` to `bgcolor` and `vAlign` to `valign`.
Prioritize inline styling for critical CSS properties or use external tools to inline CSS before sending.
Evaluate alternatives for active development projects. For existing projects, proceed with caution and thorough testing.
Ensure `Oy` is imported as the default export (`import Oy from 'oy-vey';`) and then destructure components from the `Oy` object (`const { Table, TBody } = Oy;`).Ensure your project is configured for ES Modules (e.g., `"type": "module"` in package.json) or use CommonJS `require('oy-vey')` if appropriate for your environment, though examples primarily use `import`.