<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gracebuilder</title>
    <description>The latest articles on DEV Community by Gracebuilder (@gracebuilder).</description>
    <link>https://dev.to/gracebuilder</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4141565%2Ff51a529a-84b4-47cf-90bb-8a4f53125674.png</url>
      <title>DEV Community: Gracebuilder</title>
      <link>https://dev.to/gracebuilder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gracebuilder"/>
    <language>en</language>
    <item>
      <title>I built a static code scanner that scores your repo's carbon footprint</title>
      <dc:creator>Gracebuilder</dc:creator>
      <pubDate>Thu, 24 Sep 2026 15:57:24 +0000</pubDate>
      <link>https://dev.to/gracebuilder/i-built-a-static-code-scanner-that-scores-your-repos-carbon-footprint-3hf4</link>
      <guid>https://dev.to/gracebuilder/i-built-a-static-code-scanner-that-scores-your-repos-carbon-footprint-3hf4</guid>
      <description>&lt;p&gt;Most code quality tools tell you if your code is correct. &lt;br&gt;
None of them tell you if it's efficient in the energy sense.&lt;/p&gt;

&lt;p&gt;I wanted to change that. So I built sustainability-score — &lt;br&gt;
a static-analysis tool that reads your repository and tells &lt;br&gt;
you how its engineering choices affect carbon and cost &lt;br&gt;
efficiency, grounded in the Green Software Foundation's &lt;br&gt;
SCI specification.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem I was solving
&lt;/h2&gt;

&lt;p&gt;The Green Software Foundation's Software Carbon Intensity &lt;br&gt;
(SCI) specification gives us a framework for thinking about &lt;br&gt;
software carbon. But measuring energy for a running system &lt;br&gt;
is hard.&lt;/p&gt;

&lt;p&gt;What isn't hard is reading a repo and asking: are the &lt;br&gt;
engineering choices here pushing carbon up or down? That &lt;br&gt;
is a static analysis problem. That is what this tool does.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;The tool scores across five weighted pillars:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Code / Algorithm Efficiency — 30%&lt;/li&gt;
&lt;li&gt;Cloud Infrastructure Choices — 25%&lt;/li&gt;
&lt;li&gt;Containerization — 15%&lt;/li&gt;
&lt;li&gt;CI/CD Practices — 15%&lt;/li&gt;
&lt;li&gt;SRE / Operations — 15%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each pillar starts at 100 and loses points per finding &lt;br&gt;
by severity. High: minus 20. Medium: minus 10. Low: minus 4.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part I am most proud of — honesty
&lt;/h2&gt;

&lt;p&gt;Every finding is stamped with a data quality tier:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tier 1 — static analysis only. Directional.&lt;/li&gt;
&lt;li&gt;Tier 2 — static plus declared infrastructure.&lt;/li&gt;
&lt;li&gt;Tier 3 — static plus operational telemetry.&lt;/li&gt;
&lt;li&gt;Tier 4 — direct measurement. Full SCI computable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A static scan never claims above Tier 1. The report says &lt;br&gt;
plainly it is directional, not a measurement. Carbon washing &lt;br&gt;
is a real problem and I did not want to add to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;pip install -e .&lt;br&gt;
sustainability-score /path/to/repo --md report.md&lt;/p&gt;

&lt;p&gt;A sample report is included in the repo so you can see &lt;br&gt;
the output before running it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Broader per-language efficiency checks&lt;/li&gt;
&lt;li&gt;JSON schema for the output format&lt;/li&gt;
&lt;li&gt;A GitHub Action that posts advisory PR comments&lt;/li&gt;
&lt;li&gt;A proposal to the GSF reference implementations collection&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MIT licensed. Open source. Contributions and feedback welcome.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/srinathgopinath-code/sustainability-score" rel="noopener noreferrer"&gt;https://github.com/srinathgopinath-code/sustainability-score&lt;/a&gt;&lt;/p&gt;

</description>
      <category>codequality</category>
      <category>showdev</category>
      <category>softwaredevelopment</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
