All Case Studies
Case Study — WasilianoLevel 2 · Deployed

Wasiliano: SMTP-First Email Library for Bun and Next.js with Notion CMS

Minimal, SMTP-first email library for Bun and Next.js integrating Notion as a CMS for transactional emails and newsletters without SaaS lock-in.

TypeScriptJavaScriptNext.jsNode.jsREST APIsGit

Live: https://wasiliano.dev · Code: https://github.com/aynaash/wasiliano · Skills proven: TypeScript, JavaScript, Next.js, Node.js, REST APIs, Git

The story

Context. Sending transactional emails and running a simple newsletter from a Next.js or Bun application often pulls teams into expensive hosted email SaaS platforms and proprietary template editors. Wasiliano gives developers a minimal, SMTP-first email library that pairs transactional sending with Notion as a content source for newsletters.

My role and constraints. I created and maintain Wasiliano as an open-source TypeScript library and documentation site. The main constraint was keeping the API small and runtime-compatible across Bun and Node.js/Next.js without locking users into one email vendor.

Key decisions.

  1. SMTP-first transport instead of single-provider APIs: Built around standard SMTP delivery so any application can switch between self-hosted relays, Amazon SES, or other SMTP providers without rewriting application code.
  2. Notion as a newsletter CMS: Added Notion integration so writers can draft and organize newsletter issues directly in Notion and publish them cleanly through their own Next.js routes.

What went wrong. Early newsletter rendering needed careful normalization across Notion block types so emails rendered reliably across restrictive email clients rather than only in modern browsers. Keeping the output HTML simple and inline-styled solved layout inconsistencies across clients.

Result. Shipped as an open-source library and live site at wasiliano.dev, giving Bun and Next.js projects transactional email and Notion-backed newsletter workflows without SaaS lock-in.

The evidence

  • Public source repository at github.com/aynaash/wasiliano
  • Live site and documentation at wasiliano.dev
  • What I'd do next: add an automated email rendering test suite and CI workflow matrix for Bun and Node.js releases