An email framework that converts simple HTML into responsive email-ready HTML.
An email framework that converts simple HTML into responsive email-ready HTML.
Inky is a complete email framework that converts simple HTML into complex, responsive email-ready HTML. It includes a templating engine, built-in responsive CSS, CSS inlining, validation, and a CLI toolchain.
Written in Rust. Distributed as a CLI binary, WASM module, native shared library, and Rust crate — with official bindings for Node.js, PHP, Python, Ruby, and Go.
Inky was formerly known as "Foundation for Emails." Starting with v2, everything is unified under the Inky brand.
Give Inky simple HTML like this:
Left
Right
And get email-ready HTML like this:
Left
Right
# Homebrew
brew install foundation/inky/inky
# Cargo
cargo install inky-cli
# npm (WASM)
npm install inky# Scaffold a new project
inky init my-email
cd my-email
# Build
inky build
# Watch for changes
inky watchThe full build pipeline (layouts, includes, data merge, framework CSS, component transform, CSS inlining) isn't CLI-only — it's available in-process to PHP, Python, Ruby, and Go via build()/Build(), producing byte-identical output to inky build. See Language Bindings.
size="small" instead of class="small"), , custom `` components, and template variables--data data.json)--hybrid mode emits `` layout with Outlook MSO ghost table fallbacksinky serve starts a local dev server with auto-reload.txt multipart email version (--plain-text)inky spam-check detects common spam triggers--data at a directory to auto-pair JSON files with templatesinky migrate converts v1 syntax to v2 automatically| Language | Repository |
|---|---|
| Node.js | inky-example-node |
| PHP | inky-example-php |
| Python | inky-example-python |
| Ruby | inky-example-ruby |
| Go | inky-example-go |
git clone https://github.com/foundation/inky.git
cd inky
# Build the CLI
cargo build -p inky-cli --release
# Binary at: target/release/inky
# Run tests
cargo test --workspace| Crate | Purpose | Output |
|---|---|---|
inky-core |
Core transformation engine | Rust library |
inky-cli |
Command-line tool | inky binary |
inky-wasm |
Browser/Node.js bindings (inky on npm) |
.wasm module |
inky-ffi |
PHP/Python/Ruby/Go bindings | .so / .dylib / .dll |
MIT
No open issues yet, or sync has not completed.