Public record
Software health reportschema 0.34.0 · metrics 2.10.0 · 2026-11-15 09:20 UTC

nsubstitute / NSubstitute

A friendly substitute for .NET mocking libraries.

C#Custom license★ 2,983 stars⑂ 279 forkssince Oct 2009View on GitHub ↗

nsubstitute/NSubstitute holds a health index of 84 out of 100, placing it in the Excellent band. It scores highest on Engineering Quality (83/100) and lowest on AI Readiness (58/100). It was last updated 3 days ago. A single contributor accounts for most of its recent work.

84
overall / 100
Excellent

Software health index

Metrics are grouped into weighted categories on one standardized 1–100 scale. Overall starts as their weighted mean, calibrated against the distribution of the public record so bands carry percentile meaning; when public evidence triggers the High-Risk Jurisdiction Policy, the rating is adjusted and receives an At Risk ceiling of 34.

84
Exceptional93-100The record's top tier (≈ top 5%); essentially all checked criteria met
Excellent80-92Strong across the board; minor gaps
Good65-79Healthy; gaps are limited and manageable
Moderate50-64Acceptable with notable gaps; review recommended
Weak35-49Material weaknesses across several areas
At Risk20-34Significant weaknesses; adoption warrants caution
Critical1-19Severe problems (abandoned, single-maintainer, no hygiene)
VitalityCommunity &AdoptionSustainability &GovernanceEngineeringQualitySecurityAI Readiness

Score profile

Each axis is a category. The shape matters more than the average — a healthy subject fills the whole shape, while a spike-and-crater profile means strength in one dimension is masking risk in another.

The weighted overall 71 is calibrated to 84 on the published index scale (record calibration 2026-08-02).

Ownership

NSubstituteOrganization
24 followers3 public repossince Oct 2009

This repository is backed by an organization — shared, accountable stewardship that can outlive any single maintainer.

Package ecosystems

RegistryPackageVersionDownloads / moVersionsLast publishTags
NuGetNSubstitute6.2.0-3795 days agomockingmockstestingunit-testingtddaaa

Metrics by category

Vitality

Is the project alive — is code being written and are releases shipping?

69Good · 21% of overall
How it's scored
36/36Push recency — last push 3 days ago
11.1/36Commit cadence — 16/52 weeks with commits
15.1/18Commit volume — 47 commits in the last year
3/10OpenSSF Scorecard: Maintained — 4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Inputs used
Commits in the last year47
Share of human-authored commits0.69
Days since last push3
Weeks with commits in the last year16
How it's scored
27/27Ships releases — 11 releases published
27/36Release recency — latest release 95 days ago
12.6/27Release cadence — a release every ~184.4 days
0/10OpenSSF Scorecard: Signed-Releases — no data
Inputs used
Number of releases11
Latest release tagv6.2.0
Releases derived from version tagsno
Days since latest release95
Mean days between releases184.4
Excluded from scoring (no data or not applicable): OpenSSF Scorecard: Signed-Releases. Remaining weights renormalized.

Community & Adoption

Does the project have users, downloads, attention, and a welcoming setup for contributors?

75Good · 17% of overall
How it's scored
56.4/60Stars — 2,983 stars
20.4/25Forks — 279 forks
10/15Watchers — 64 watchers
Inputs used
Forks279
Stars2,983
Watchers64
Growth authenticity stateorganic
Multiplier applied to stars and forks (%)100
How it's scored
22.5/22.5README
16.9/22.5License — license file present, not a recognized license
0/18CONTRIBUTING guide
0/13.5Code of conduct
0/7.2Issue template
0/6.3PR template
Inputs used
README presentyes
License file presentyes
Badges in the README2
CONTRIBUTING guide presentno
Issue template presentno
Code of conduct presentno
Badge services used in the READMEgithub.com, shields.io
Pull request template presentno
How it's scored
80/80Total downloads — 337,691,344 downloads all-time across nuget
0/20Registry dependents — not reported by this ecosystem
Inputs used
PackagesNSubstitute
Registry dependents—
Package ecosystemsnuget
Total downloads337,691,344
Monthly downloads—
Packages excluded as unverified—
Excluded from scoring (no data or not applicable): Registry dependents. Remaining weights renormalized.

Sustainability & Governance

Will the project survive its people — bus factor, responsiveness, who backs it, and package upkeep?

66Good · 23% of overall
How it's scored
9/54Bus factor — 1 contributor(s) cover half of all commits
6.7/22.5Commit distribution — top contributor authored 70% of commits
13.5/13.5Contributor breadth — 72 contributors
10/10OpenSSF Scorecard: Contributors — project has 28 contributing companies or organizations
Inputs used
Bus factor1
Contributors sampled72
Share of commits by the top contributor0.702
How it's scored
35.2/42Issue resolution — 84% of issues closed
20.8/30PR acceptance — 284/409 decided PRs merged
0/13Newcomer PR acceptance — no first-time contributor's PR decided in 30d
15/15OpenSSF Scorecard: Code-Review — all changesets reviewed
Inputs used
Merged pull requests284
Open issues95
Closed issues490
Pull requests merged in the last 7 days0
Pull requests decided in the last 7 days0
Pull requests merged in the last 30 days0
Pull requests decided in the last 30 days0
Share of issues closed0.838
Pull requests closed without merging125
First-time contributors with a pull request decided in the last 30 days0
Pull requests from first-time contributors merged in the last 30 days0
Pull requests from first-time contributors decided in the last 30 days0
Excluded from scoring (no data or not applicable): Newcomer PR acceptance. Remaining weights renormalized.
How it's scored
30/30Ownership backing — organization-owned
0/20Verified domain
10.1/25Owner reach — 24 followers of nsubstitute
16.4/25Track record — 3 public repos, account ~17 yr old
Inputs used
Followers24
Owner account typeOrganization
Verified domainno
Owner accountnsubstitute
Public repositories3
Owner account age in days6,232

Package maintenance

100Exceptional
How it's scored
25/25Published & resolvable — 1 package(s) on nuget
35/35Publish recency — latest publish 95 days ago
20/20Version history — 37 published versions
20/20Not deprecated — active, not deprecated or yanked
Inputs used
PackagesNSubstitute
Package ecosystemsnuget
Any package deprecated or yankedno
Days since latest package publish95

Engineering Quality

Are baseline engineering and documentation practices in place?

83Excellent · 19% of overall
How it's scored
24/24CI workflows — 3 workflow(s)
24/24Tests present
0/16Linter config
0/9.6Pre-commit hooks
6.4/6.4.editorconfig
18/20OpenSSF Scorecard: CI-Tests — 29 out of 30 merged PRs checked by a CI test -- score normalized to 9
Inputs used
CI workflows presentyes
Tests presentyes
.editorconfig presentyes
Linter config presentno
Pre-commit config presentno

Documentation

100Exceptional
How it's scored
30/30README
25/25Documentation directory
15/15Documentation / homepage site — https://nsubstitute.github.io
10/10Repository description
10/10Topics — 12 topics
10/10Wiki
Inputs used
Repository topicsc-sharp, dotnet, dot-net, testing, testing-tools, test, mocking, mock, dotnet-core, dotnetcore, mocks, stubs
Wiki enabledyes
Repository homepagehttps://nsubstitute.github.io
Documentation sitehttps://nsubstitute.github.io
README presentyes
Documentation directory presentyes
Repository description presentyes

Security

Are visible security and supply-chain practices strong, without unresolved high-risk jurisdiction exposure?

67Good · 16% of overall
How it's scored
7.5/7.5Binary-Artifacts — no binaries found in the repo
3.8/7.5Branch-Protection — branch protection is not maximal on development and all release branches
2.2/2.5CI-Tests — 29 out of 30 merged PRs checked by a CI test -- score normalized to 9
0/2.5CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected
7.5/7.5Code-Review — all changesets reviewed
2.5/2.5Contributors — project has 28 contributing companies or organizations
10/10Dangerous-Workflow — no dangerous workflow patterns detected
7.5/7.5Dependency-Update-Tool — update tool detected
0/5Fuzzing — project is not fuzzed
2.2/2.5License — license file detected
2.2/7.5Maintained — 4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
5/5Packaging — packaging workflow detected
0/5Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 0
0/5SAST — SAST tool is not run on all commits -- score normalized to 0
0/5Security-Policy — security policy file not detected
0/7.5Signed-Releases — no data
0/7.5Token-Permissions — detected GitHub workflow tokens with excessive permissions
7.5/7.5Vulnerabilities — 0 existing vulnerabilities detected
Inputs used
Data sourceopenssf_scorecard
Scorecard checks evaluated17
OpenSSF Scorecard versionv5.5.0
Scorecard checks inconclusive1
OpenSSF Scorecard aggregate score5.9
Excluded from scoring (no data or not applicable): Signed-Releases. Remaining weights renormalized.

Dependency advisories

100Exceptional
How it's scored
35/35Direct dependencies free of known advisories — no direct dependency carries a known advisory
0/25Indirect dependencies free of known advisories — transitive set not separable from development and test dependencies in this scope
0/40No advisories left outstanding — no advisory carries a publication date
Inputs used
Data sourceosv
Advisories across affected packages0
Packages affected by advisories0
Packages assessed7
Packages not assessed0
Affected packages by severitynone
Direct dependencies affected by advisories0
Excluded from scoring (no data or not applicable): Indirect dependencies free of known advisories, No advisories left outstanding. Remaining weights renormalized. Matched 7 resolved dependencies against OSV. This repository publishes no package the index resolves, so the repository dependency graph was assessed instead. That graph mixes development and test pins with shipped dependencies, so only the declared runtime dependencies are scored; transitive findings are reported as context and excluded from the score. Reachability is not analyzed.

AI Readiness

How well is the repo equipped to be developed and maintained with AI coding agents? Carries a deliberately small weight (4%): agent tooling is a real maintenance signal, but a repository with none can still reach 100/100.

58Moderate · 4% of overall
How it's scored
0/45Agent instructions — no CLAUDE.md / AGENTS.md / editor rules
0/15Machine-readable docs (llms.txt)
34/40Legible commit history — 44 of 69 human commits state their intent (structured subject or explanatory body)
Inputs used
llms.txt presentno
llms.txt address on the project website—
Share of human commits that state their intent0.638
Agent instruction files—
Size of the largest agent instruction file (bytes)—
How it's scored
12.6/18One-command bootstrap — src/NSubstitute/NSubstitute.csproj, tests/NSubstitute.Acceptance.Specs/NSubstitute.Acceptance.Specs.csproj, tests/NSubstitute.Benchmarks/NSubstitute.Benchmarks.csproj (toolchain convention, no task runner)
22/22Automated tests
0/11Lint / format config
11/11Static type checking — C# (statically typed)
0/10Reproducible environment
6/10Demonstrated agent practice — 3 of the last 100 commits agent-authored or agent-credited
8/8Automated maintenance — 31 of the last 100 commits are automated dependency updates
0/10OpenSSF Scorecard: Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 0
Inputs used
Nix config presentno
Tests presentyes
Dependency lockfiles—
Dockerfile presentno
Primary language statically typedyes
One-command bootstrap files—
Dev container config presentno
Linter config presentno
Static type-check config files—
Share of commits authored by or credited to coding agents0.03
Toolchain manifestssrc/NSubstitute/NSubstitute.csproj, tests/NSubstitute.Acceptance.Specs/NSubstitute.Acceptance.Specs.csproj, tests/NSubstitute.Benchmarks/NSubstitute.Benchmarks.csproj, tests/NSubstitute.Documentation.Tests.Generator/NSubstitute.Documentation.Tests.Generator.csproj, tests/NSubstitute.Documentation.Tests/NSubstitute.Documentation.Tests.csproj, tests/NSubstitute.Specs/NSubstitute.Specs.csproj
Share of commits that are automated dependency updates0.31
How it's scored
45/45Type-checkable code — C# (statically typed)
55/55Manageable file sizes — 0/424 source files over 60KB
Inputs used
Primary languageC#
Size of the largest source file (bytes)32,523
Source files sampled424
Oversized source files0

Key facts

2,983GitHub stars
72contributors
47commits, last 12 months
3days since last push
11releases
1bus factor
95open issues
—package ecosystems

Data collection warnings

  • Star history unavailable
  • Star history carried forward from 2026-07-21: GitHub restricted the stargazers API to repository admins, so it can no longer be collected. The repository has 2983 stars today.

More detail

Star and fork history 2,964 ★ / 279 ⇿
2,964Stars
279Forks
11Releases

When each star and fork was added, collected from GitHub and bucketed by day. Cumulative growth sits directly above the daily additions it is made of, so the two read against each other: steady organic accretion looks nothing like an abrupt, short-lived burst. Where that difference is measurable, it is reported as growth authenticity.

Only the most recent history is shown — this repository exceeds the collection window, so the earliest history is not captured.

Star history is shown as collected on 2026-07-21. GitHub restricted the stargazers API to repository administrators in July 2026, so this series can no longer be extended; the current star total above remains live.

05001,0001,5002,0002,5003,0002,9642762802010-022018-052026-08
Major 2Minor 7Patch 1

Each point covers 16 days.

OpenSSF Scorecard 5.9 / 10
5.9aggregate

Independent, tool-agnostic security assessment from the open-source OpenSSF Scorecard. Each check rewards a security practice, not a specific vendor's tool. Checks Scorecard could not determine are marked n/a and excluded from the security score (never counted as zero).Scorecard v5.5.0 · 2026-11-15 09:20 UTC

10Binary-Artifactsno binaries found in the repo
5Branch-Protectionbranch protection is not maximal on development and all release branches
9CI-Tests29 out of 30 merged PRs checked by a CI test -- score normalized to 9
0CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
10Code-Reviewall changesets reviewed
10Contributorsproject has 28 contributing companies or organizations
10Dangerous-Workflowno dangerous workflow patterns detected
10Dependency-Update-Toolupdate tool detected
0Fuzzingproject is not fuzzed
9Licenselicense file detected
3Maintained4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
10Packagingpackaging workflow detected
0Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 0
0SASTSAST tool is not run on all commits -- score normalized to 0
0Security-Policysecurity policy file not detected
n/aSigned-Releasesno releases found
0Token-Permissionsdetected GitHub workflow tokens with excessive permissions
10Vulnerabilities0 existing vulnerabilities detected
Direct dependencies 2
RegistryPackageVersion constraintManifest
NuGetCastle.Core5.1.1src/NSubstitute/NSubstitute.csproj
NuGetSystem.Threading.Tasks.Extensions4.5.4src/NSubstitute/NSubstitute.csproj
All dependencies 7

Full resolved dependency set from the GitHub dependency graph: 2 direct and 5 indirect (transitive) packages. The transitive closure is complete when the repository commits a lockfile.

RegistryPackageVersionRelation
NuGetCastle.Core5.1.1direct
NuGetSystem.Threading.Tasks.Extensions4.5.4direct
NuGetBenchmarkDotNet0.15.8indirect
NuGetMicrosoft.CodeAnalysis.CSharp5.9.0indirect
NuGetMicrosoft.Extensions.Logging.Abstractions10.0.12indirect
NuGetNUnit4.6.1indirect
NuGetNUnit3TestAdapter6.3.1indirect
Dependency advisories 0

This repository publishes no package the index resolves, so its own dependency graph was assessed — 7 packages, which also include development and test pins that never ship: 0 carry known advisories, of which 0 are direct.

No known advisories affect the assessed dependencies.

An advisory means the version recorded in the dependency graph falls inside an advisory’s affected range. Reachability is not analysed, and the graph includes development and test pins — a finding may concern tooling rather than shipped software.

Raw JSON report machine-readable

Feedback

Spotted something off in this report, or have thoughts to share? Wrong measurements, missed tooling, ideas, questions — anything is welcome. Every message is read and gets a response.

The message is kept through sign-in.

Scores are signals, not warranties. They reflect publicly visible practices on GitHub — not a code audit, and not a security guarantee.

Missing data is excluded and weights renormalized, never scored as zero. Methodology is versioned and open: metrics v2.10.0, schema v0.34.0 — full methodology · metrics wiki.

How one result sits in the wider record: aggregate statistics — NuGet.