Public record
Software health reportschema 0.34.0 · metrics 2.10.0 · 2026-12-01 10:14 UTC

stevemao / compare-func

Get a compare function for array to sort

JavaScriptMIT★ 16 stars⑂ 4 forkssince Apr 2015View on GitHub ↗

stevemao/compare-func holds a health index of 29 out of 100, placing it in the At Risk band. It scores highest on Sustainability & Governance (60/100) and lowest on Vitality (13/100). It was last updated 728 days ago. A single contributor accounts for most of its recent work.

29
overall / 100
At Risk

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.

29
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 39 is calibrated to 34 on the published index scale (record calibration 2026-08-02).

Ownership

Steve MaoPersonal account
1,048 followers499 public repossince Jan 2014

This repository is owned by a personal account. A single-owner project carries more continuity risk than an organization-backed one.

Package ecosystems

RegistryPackageVersionDownloads / moVersionsLast publishTags
npmcompare-func2.0.064,909,762122390 days agocompare-funcarrarraybycomparedotgetobjobjectproppropertysortsorting

Metrics by category

Vitality

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

13Critical · 21% of overall
How it's scored
0/36Push recency — last push 728 days ago
0/36Commit cadence — 0/52 weeks with commits
0/18Commit volume — 0 commits in the last year
0/10OpenSSF Scorecard: Maintained — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Inputs used
Commits in the last year0
Share of human-authored commits0.857
Days since last push728
Weeks with commits in the last year0
How it's scored
16.2/27Ships releases — 12 version tags (no GitHub releases)
0/36Release recency — latest release 2,390 days ago
12.6/27Release cadence — a release every ~207.7 days
0/10OpenSSF Scorecard: Signed-Releases — no data
Inputs used
Number of releases12
Latest release tagv2.0.0
Releases derived from version tagsyes
Days since latest release2,390
Mean days between releases207.7
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?

52Moderate · 17% of overall
How it's scored
19.1/60Stars — 16 stars
4/25Forks — 4 forks
0/15Watchers — 1 watchers
Inputs used
Forks4
Stars16
Watchers1
Growth authenticity stateunverified
Multiplier applied to stars and forks (%)100
Reason growth could not be assessedno_history
How it's scored
22.5/22.5README
22.5/22.5License — recognized license (MIT)
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 README0
CONTRIBUTING guide presentno
Issue template presentno
Code of conduct presentno
Badge services used in the README—
Pull request template presentno
How it's scored
80/80Monthly downloads — 64,909,762 downloads/month across npm
0/20Registry dependents — not reported by this ecosystem
Inputs used
Packagescompare-func
Registry dependents—
Package ecosystemsnpm
Total downloads—
Monthly downloads64,909,762
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?

60Moderate · 23% of overall
How it's scored
9/54Bus factor — 1 contributor(s) cover half of all commits
4.6/22.5Commit distribution — top contributor authored 79% of commits
6.8/13.5Contributor breadth — 5 contributors
10/10OpenSSF Scorecard: Contributors — project has 15 contributing companies or organizations
Inputs used
Bus factor1
Contributors sampled5
Share of commits by the top contributor0.794
How it's scored
42/42Issue resolution — 100% of issues closed
22.5/30PR acceptance — 15/20 decided PRs merged
0/13Newcomer PR acceptance — no first-time contributor's PR decided in 30d
3/15OpenSSF Scorecard: Code-Review — Found 2/7 approved changesets -- score normalized to 2
Inputs used
Merged pull requests15
Open issues0
Closed issues2
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 closed1
Pull requests closed without merging5
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
10/30Ownership backing — personal (user) account
0/20Verified domain — not applicable to user accounts
21.7/25Owner reach — 1,048 followers of stevemao
25/25Track record — 499 public repos, account ~12 yr old
Inputs used
Followers1,048
Owner account typeUser
Verified domain—
Owner accountstevemao
Public repositories499
Owner account age in days4,714
Excluded from scoring (no data or not applicable): Verified domain. Remaining weights renormalized.
How it's scored
25/25Published & resolvable — 1 package(s) on npm
4/35Publish recency — latest publish 2,390 days ago
20/20Version history — 12 published versions
20/20Not deprecated — active, not deprecated or yanked
Inputs used
Packagescompare-func
Package ecosystemsnpm
Any package deprecated or yankedno
Days since latest package publish2,390

Engineering Quality

Are baseline engineering and documentation practices in place?

28At Risk · 19% of overall
How it's scored
0/24CI workflows
0/24Tests present
0/16Linter config
0/9.6Pre-commit hooks
6.4/6.4.editorconfig
0/20OpenSSF Scorecard: CI-Tests — 0 out of 12 merged PRs checked by a CI test -- score normalized to 0
Inputs used
CI workflows presentno
Tests presentno
.editorconfig presentyes
Linter config presentno
Pre-commit config presentno

Documentation

60Moderate
How it's scored
30/30README
0/25Documentation directory
0/15Documentation / homepage site
10/10Repository description
10/10Topics — 1 topics
10/10Wiki
Inputs used
Repository topicshacktoberfest
Wiki enabledyes
Repository homepage—
Documentation site—
README presentyes
Documentation directory presentno
Repository description presentyes

Security

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

45Weak · 16% of overall
How it's scored
7.5/7.5Binary-Artifacts — no binaries found in the repo
0/7.5Branch-Protection — branch protection not enabled on development/release branches
0/2.5CI-Tests — 0 out of 12 merged PRs checked by a CI test -- score normalized to 0
0/2.5CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected
1.5/7.5Code-Review — Found 2/7 approved changesets -- score normalized to 2
2.5/2.5Contributors — project has 15 contributing companies or organizations
0/10Dangerous-Workflow — no data
7.5/7.5Dependency-Update-Tool — update tool detected
0/5Fuzzing — project is not fuzzed
2.5/2.5License — license file detected
0/7.5Maintained — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
0/5Packaging — no data
0/5Pinned-Dependencies — no data
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 — no data
0/7.5Vulnerabilities — 38 existing vulnerabilities detected
Inputs used
Data sourceopenssf_scorecard
Scorecard checks evaluated13
OpenSSF Scorecard versionv5.5.0
Scorecard checks inconclusive5
OpenSSF Scorecard aggregate score3.1
Excluded from scoring (no data or not applicable): Dangerous-Workflow, Packaging, Pinned-Dependencies, Signed-Releases, Token-Permissions. Remaining weights renormalized.

Dependency advisories

100Exceptional
How it's scored
35/35Direct dependencies free of known advisories — no direct dependency carries a known advisory
25/25Indirect dependencies free of known advisories — no indirect dependency carries a known advisory
0/40No advisories left outstanding — no advisory carries a publication date
Inputs used
Data sourceosv
Advisories across affected packages0
Packages affected by advisories0
Packages assessed3
Packages not assessed0
Affected packages by severitynone
Direct dependencies affected by advisories0
Excluded from scoring (no data or not applicable): No advisories left outstanding. Remaining weights renormalized. Matched the npm:compare-func@2.0.0 runtime dependency closure — what installing the published package pulls in — 3 packages. 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.

25At Risk · 4% of overall
How it's scored
0/45Agent instructions — no CLAUDE.md / AGENTS.md / editor rules
0/15Machine-readable docs (llms.txt)
16.8/40Legible commit history — 17 of 54 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.315
Agent instruction files—
Size of the largest agent instruction file (bytes)—
How it's scored
0/18One-command bootstrap
0/22Automated tests
0/11Lint / format config
0/11Static type checking
10/10Reproducible environment — lockfile
0/10Demonstrated agent practice — no agent-authored commits among the last 63
8/8Automated maintenance — 9 of the last 63 commits are automated dependency updates
0/10OpenSSF Scorecard: Pinned-Dependencies — no data
Inputs used
Nix config presentno
Tests presentno
Dependency lockfilespackage-lock.json
Dockerfile presentno
Primary language statically typedno
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
Toolchain manifests—
Share of commits that are automated dependency updates0.143
Excluded from scoring (no data or not applicable): OpenSSF Scorecard: Pinned-Dependencies. Remaining weights renormalized.
How it's scored
0/45Type-checkable code — JavaScript without a type-check config
55/55Manageable file sizes — 0/2 source files over 60KB
Inputs used
Primary languageJavaScript
Size of the largest source file (bytes)1,802
Source files sampled2
Oversized source files0

Key facts

16GitHub stars
5contributors
0commits, last 12 months
728days since last push
12releases
1bus factor
0open issues
npmpackage ecosystems

Data collection warnings

  • Star history unavailable

More detail

Star and fork history 0 ★ / 4 ⇿
0Stars
4Forks
3Releases

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.

1223344412018-032020-072022-10
Major 1Minor 0Patch 2

Each point covers 5 days.

OpenSSF Scorecard 3.1 / 10
3.1aggregate

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-12-01 10:14 UTC

10Binary-Artifactsno binaries found in the repo
0Branch-Protectionbranch protection not enabled on development/release branches
0CI-Tests0 out of 12 merged PRs checked by a CI test -- score normalized to 0
0CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
2Code-ReviewFound 2/7 approved changesets -- score normalized to 2
10Contributorsproject has 15 contributing companies or organizations
n/aDangerous-Workflowno workflows found
10Dependency-Update-Toolupdate tool detected
0Fuzzingproject is not fuzzed
10Licenselicense file detected
0Maintained0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
n/aPackagingpackaging workflow not detected
n/aPinned-Dependenciesno dependencies found
0SASTSAST tool is not run on all commits -- score normalized to 0
0Security-Policysecurity policy file not detected
n/aSigned-Releasesno releases found
n/aToken-PermissionsNo tokens found
0Vulnerabilities38 existing vulnerabilities detected
Direct dependencies 1
RegistryPackageVersion constraintManifest
npmdot-prop^7.2.0package.json
All dependencies 155

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

RegistryPackageVersionRelation
npmdot-prop7.2.0direct
npm@ungap/promise-all-settled1.1.2indirect
npmajv6.12.6indirect
npmansi-colors4.1.1indirect
npmansi-regex5.0.1indirect
npmansi-styles4.3.0indirect
npmanymatch3.1.3indirect
npmargparse1.0.10indirect
npmargparse2.0.1indirect
npmasn10.2.4indirect
npmassert-plus1.0.0indirect
npmasynckit0.4.0indirect
npmaws-sign20.7.0indirect
npmaws41.11.0indirect
npmbalanced-match1.0.2indirect
npmbcrypt-pbkdf1.0.2indirect
npmbinary-extensions2.2.0indirect
npmbrace-expansion1.1.11indirect
npmbraces3.0.3indirect
npmbrowser-stdout1.3.1indirect
npmcamelcase6.2.0indirect
npmcaseless0.12.0indirect
npmchalk4.1.2indirect
npmchokidar3.5.3indirect
npmcli1.0.1indirect
npmcliui7.0.4indirect
npmcolor-convert2.0.1indirect
npmcolor-name1.1.4indirect
npmcombined-stream1.0.8indirect
npmconcat-map0.0.1indirect
npmconsole-browserify1.1.0indirect
npmcore-util-is1.0.2indirect
npmcoveralls3.1.1indirect
npmdashdash1.14.1indirect
npmdate-now0.1.4indirect
npmdebug4.3.3indirect
npmdecamelize4.0.0indirect
npmdelayed-stream1.0.0indirect
npmdiff5.0.0indirect
npmdom-serializer0.2.2indirect
npmdomelementtype1.3.1indirect
npmdomelementtype2.2.0indirect
npmdomhandler2.3.0indirect
npmdomutils1.5.1indirect
npmecc-jsbn0.1.2indirect
npmemoji-regex8.0.0indirect
npmentities1.0.0indirect
npmentities2.2.0indirect
npmescalade3.1.1indirect
npmescape-string-regexp4.0.0indirect
npmesprima4.0.1indirect
npmexit0.1.2indirect
npmextend3.0.2indirect
npmextsprintf1.3.0indirect
npmfast-deep-equal3.1.3indirect
npmfast-json-stable-stringify2.1.0indirect
npmfill-range7.1.1indirect
npmfind-up5.0.0indirect
npmflat5.0.2indirect
npmforever-agent0.6.1indirect
npmform-data2.3.3indirect
npmfs.realpath1.0.0indirect
npmfsevents2.3.3indirect
npmget-caller-file2.0.5indirect
npmgetpass0.1.7indirect
npmglob7.2.0indirect
npmglob-parent5.1.2indirect
npmgrowl1.10.5indirect
npmhar-schema2.0.0indirect
npmhar-validator5.1.5indirect
npmhas-flag4.0.0indirect
npmhe1.2.0indirect
npmhtmlparser23.8.3indirect
npmhttp-signature1.2.0indirect
npminflight1.0.6indirect
npminherits2.0.4indirect
npmis-binary-path2.1.0indirect
npmis-extglob2.1.1indirect
npmis-fullwidth-code-point3.0.0indirect
npmis-glob4.0.3indirect
npmis-number7.0.0indirect
npmis-plain-obj2.1.0indirect
npmis-typedarray1.0.0indirect
npmis-unicode-supported0.1.0indirect
npmisarray0.0.1indirect
npmisexe2.0.0indirect
npmisstream0.1.2indirect
npmjs-yaml3.14.1indirect
npmjs-yaml4.1.0indirect
npmjsbn0.1.1indirect
npmjshint2.13.6indirect
npmjson-schema0.4.0indirect
npmjson-schema-traverse0.4.1indirect
npmjson-stringify-safe5.0.1indirect
npmjsprim1.4.2indirect
npmlcov-parse1.0.0indirect
npmlocate-path6.0.0indirect
npmlodash4.17.21indirect
npmlog-driver1.2.7indirect
npmlog-symbols4.1.0indirect
npmmime-db1.49.0indirect
npmmime-types2.1.32indirect
npmminimatch3.0.4indirect
npmminimatch4.2.1indirect
npmminimist1.2.6indirect
npmmocha9.2.2indirect
npmms2.1.2indirect
npmms2.1.3indirect
npmnanoid3.3.1indirect
npmnormalize-path3.0.0indirect
npmoauth-sign0.9.0indirect
npmonce1.4.0indirect
npmp-limit3.1.0indirect
npmp-locate5.0.0indirect
npmpath-exists4.0.0indirect
npmpath-is-absolute1.0.1indirect
npmperformance-now2.1.0indirect
npmpicomatch2.3.1indirect
npmpsl1.8.0indirect
npmpunycode2.1.1indirect
npmqs6.5.3indirect
npmrandombytes2.1.0indirect
npmreadable-stream1.1.14indirect
npmreaddirp3.6.0indirect
npmrequest2.88.2indirect
npmrequire-directory2.1.1indirect
npmsafe-buffer5.2.1indirect
npmsafer-buffer2.1.2indirect
npmserialize-javascript6.0.0indirect
npmsprintf-js1.0.3indirect
npmsshpk1.16.1indirect
npmstring-width4.2.2indirect
npmstring_decoder0.10.31indirect
npmstrip-ansi6.0.0indirect
npmstrip-json-comments1.0.4indirect
npmstrip-json-comments3.1.1indirect
npmsupports-color7.2.0indirect
npmsupports-color8.1.1indirect
npmto-regex-range5.0.1indirect
npmtough-cookie2.5.0indirect
npmtunnel-agent0.6.0indirect
npmtweetnacl0.14.5indirect
npmtype-fest2.19.0indirect
npmuri-js4.4.1indirect
npmuuid3.4.0indirect
npmverror1.10.0indirect
npmwhich2.0.2indirect
npmworkerpool6.2.0indirect
npmwrap-ansi7.0.0indirect
npmwrappy1.0.2indirect
npmy18n5.0.8indirect
npmyargs16.2.0indirect
npmyargs-parser20.2.4indirect
npmyargs-unparser2.0.0indirect
npmyocto-queue0.1.0indirect
Dependency advisories 0

Installing npm:compare-func@2.0.0 pulls in 3 packages, direct and transitive: 0 carry known advisories, of which 0 are direct dependencies.

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 — npm.