<?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: Santosh Jha</title>
    <description>The latest articles on DEV Community by Santosh Jha (@infosec_jha).</description>
    <link>https://dev.to/infosec_jha</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3959113%2F376ab820-4332-40ff-a0d0-7d02767327a7.jpg</url>
      <title>DEV Community: Santosh Jha</title>
      <link>https://dev.to/infosec_jha</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/infosec_jha"/>
    <language>en</language>
    <item>
      <title>I built an open code health benchmark for any GitHub repo</title>
      <dc:creator>Santosh Jha</dc:creator>
      <pubDate>Fri, 29 May 2026 21:15:54 +0000</pubDate>
      <link>https://dev.to/infosec_jha/i-built-an-open-code-health-benchmark-for-any-github-repo-1jpi</link>
      <guid>https://dev.to/infosec_jha/i-built-an-open-code-health-benchmark-for-any-github-repo-1jpi</guid>
      <description>&lt;p&gt;We have Lighthouse for websites. SSL Labs for TLS. PageSpeed for performance.&lt;/p&gt;

&lt;p&gt;We have nothing equivalent for code.&lt;/p&gt;

&lt;p&gt;I built a small open-source thing in that gap — stackhealth.dev. This post is the thinking behind it. Looking for pushback on the weights.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap
&lt;/h2&gt;

&lt;p&gt;Every other software domain has a free, public, machine-readable benchmark. Code has had nothing in that shape. The closest existing pieces each cover one slice — OpenSSF Scorecard is excellent but repo-scoped and primarily security hygiene; SecurityScorecard grades the outside of organisations, not the code; SOC 2 has become a procurement checkbox; EU CRA's CE marking is coming in 2027 as pass/fail compliance, not quality.&lt;br&gt;
None of these is the Lighthouse-shaped artifact — free, open formula, machine-readable, consumer-grade.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;StackHealth — paste any public GitHub URL, get a 0–100 score and A+ to F grade. The composite weights four dimensions: 30% security, 25% quality, 25% hygiene, 20% community.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Security&lt;/strong&gt; — OpenSSF Scorecard, Semgrep, Trivy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quality&lt;/strong&gt; — cyclomatic complexity (lizard), lint density (ruff / eslint / golangci), code duplication (jscpd), test signal, file size&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hygiene&lt;/strong&gt; — README, LICENSE, CONTRIBUTING, SECURITY.md, CI config&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Community&lt;/strong&gt; — recent commits, contributors, popularity (capped at 4% of overall), median time-to-first-response&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every weight is documented at &lt;a href="//stackhealth.dev/methodology"&gt;stackhealth.dev/methodology&lt;/a&gt;. The formula spec lives at &lt;a href="//github.com/santosh3743/stackhealth"&gt;github.com/santosh3743/stackhealth&lt;/a&gt;. &lt;br&gt;
Each scan stores the formula version, tool versions, exact commit SHA, and raw JSON outputs — if the published formula does not reproduce the score, that is a bug.&lt;/p&gt;

&lt;p&gt;I tested it on fastapi/fastapi. Result: A-, 86/100. The tool does not grade-inflate just because a project is loved. That was the credibility test I cared about most.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does NOT do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Score closed-source software&lt;/li&gt;
&lt;li&gt;Rescore continuously on every commit&lt;/li&gt;
&lt;li&gt;Replace your SCA / SAST stack — it aggregates them&lt;/li&gt;
&lt;li&gt;Tell you whether a specific deployment is safe&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Popularity is capped at 4% of overall because stars are not health.&lt;br&gt;
Looking for feedback&lt;br&gt;
Scan a repo you know. Tell me where the weights are wrong. Tell me the failure mode I have not caught.&lt;br&gt;
Issues and PRs welcome at the &lt;a href="https://github.com/santosh3743/stackhealth" rel="noopener noreferrer"&gt;repo&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>security</category>
      <category>devops</category>
      <category>codequality</category>
    </item>
  </channel>
</rss>
