swoosh/phoenix_swoosh
55.5
Adequate · 15 November 2026
316
lines of production code
Elixir
primary language
5
measurements over time
What this system is
This system is a library that integrates Swoosh with Phoenix to handle email template rendering. It provides flexible configuration for standalone template rendering and custom file format mappings, allowing developers to define how HTML and text bodies are generated. The project focuses on modernizing Elixir compatibility and standardizing code formatting and documentation.
Behavioural changes
Project maintenance and documentation overhaul
This release introduces a \.formatter.exs\ file to standardize code formatting via \mix format\, updates the \.gitignore\ to cover standard Mix/Hex artifacts, and renames \LICENSE.txt\ to \LICENSE.md\. Documentation is significantly expanded with a new \CONTRIBUTING.md\ guide, a detailed \CHANGELOG.md\ adhering to Keep a Changelog standards, and an updated \README.md\ that clarifies installation, usage (including classic and standalone setups), and customization options.
(repo-wide) · high confidence
Removal of legacy Mix.Config usage
The configuration file has been updated to remove the explicit import of the \Mix.Config\ module. This change aligns the project with modern Elixir/Phoenix standards where \Mix.Config\ is no longer required for standard configuration loading, simplifying the setup.
config · high confidence
Support for standalone template rendering and custom format mappings
The \Phoenix.Swoosh\ macro now supports a 'standalone' mode where templates can be rendered without a Phoenix View module by specifying \:template\_root\ (and optionally \:template\_path\ and \:template\_namespace\). Additionally, users can now customize which email body field (\html\_body\ or \text\_body\) is populated by specific file extensions via the new \:formats\ option, replacing the previous hardcoded logic that mapped \.html\/\.htm\/\.xml\ to HTML and all others to text. The \render\_body/3\ function also now accepts a default empty map for assigns.
lib · high confidence
Test coverage
Added test fixtures and coverage for custom template formats and view inclusion
Added test fixtures and updated tests to cover rendering email bodies with custom template extensions (such as .custom, .htm, and .xml) and to verify the new view-included notifier configuration. The test suite now includes scenarios for rendering with and without assigns, applying layouts to these custom formats, and using the \template\_root\ and \template\_namespace\ options for isolated view resolution.
test · high confidence
Dependencies
Phoenix.Swoosh 1.2.1: Modernized dependencies and Elixir 1.11+ support
This release updates the project to version 1.2.1 and raises the minimum Elixir requirement to 1.11. The dependency manifest has been significantly modernized: Swoosh is now pinned to \~\> 1.5, and the project now supports Phoenix 1.8 (optional) alongside Phoenix View 1.0/2.0. Optional HTTP clients have been updated to include Finch (\~\> 0.8) and Hackney (\~\> 1.10), while Credo is updated to \~\> 1.0 and ExDoc to \~\> 0.26. The package metadata has also been enriched with explicit maintainers, license, and changelog links, and documentation generation now includes markdown formatters.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 56 → 56 (-0.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 100 → 100 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 50 → 50 (+0.0)
- Readiness 48 → 48 (+0.0)
- Security 78 → 71 (-7.1)
Findings
- No change — the same findings as the prior survey.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
swoosh/phoenix_swoosh was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 0b20725b844593e86c99f5f5395b7bf75eecc95c — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.