A minimal example showing how to use the Inky email framework from Node.js via the inky-wasm package.
Requires Inky v2. See installation instructions.
npm install
npm run buildsrc/emails/welcome.inky Source template
data/welcome.json Sample merge data
dist/ Built output (generated)
build.js Build script
send.js Email sending example
npm run build transforms the Inky template into email-safe HTML with CSS inlined, generates a merged version with sample data, and creates a plain text version.
Edit send.js with your SMTP credentials, then:
npm run sendThe example uses nodemailer. Install it with npm install nodemailer.
- Edit
src/emails/welcome.inkyto change the template - Edit
data/welcome.jsonto change merge data - Add more templates and data files as needed