Microfern is a minimal string templating engine for JavaScript & TypeScript that works in Node.js, browsers (Firefox, Chrome, Safari), Edge functions such as Cloudflare Workers or Vercel Edge Functions, and Bun. There are no files, no template inheritance, no recursion or complex operations. The template language is inspired by Nunjucks, and should be easy for anyone to write.
Microfern has no dependencies. The core export fits within 1kb minzipped, and the total including everything is under 2kb minzipped.