Public record
Software health reportschema 0.31.0 · metrics 2.10.0 · 2026-08-04 20:44 UTC

gr2m / before-after-hook

wrap methods with before/after hooks

JavaScriptApache-2.0★ 83 stars⑂ 23 forkssince Dec 2016View on GitHub ↗

gr2m/before-after-hook holds a health index of 59 out of 100, placing it in the Moderate band. It scores highest on Community & Adoption (66/100) and lowest on Vitality (33/100). It was last updated 123 days ago. A single contributor accounts for most of its recent work.

59
overall / 100
Moderate

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.

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

Ownership

Gregor MartynusPersonal account
1,790 followers274 public repossince Dec 2008@vercel @octokit @octoherd @probot @nock @semantic-release @AllContributors @hearts

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
npmbefore-after-hook4.0.0123,184,80421448 days agohookhooksapi

Metrics by category

Vitality

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

33At Risk · 21% of overall
How it's scored
9.9/36Push recencylast push 123 days ago
3.5/36Commit cadence5/52 weeks with commits
7/18Commit volume5 commits in the last year
0/10OpenSSF Scorecard: Maintained0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Inputs used
commits_last_year5
human_commit_share0.5
days_since_last_push123
active_weeks_last_year5
How it's scored
27/27Ships releases21 releases published
7.2/36Release recencylatest release 448 days ago
12.6/27Release cadencea release every ~236.8 days
0/10OpenSSF Scorecard: Signed-Releasesno data
Inputs used
releases_count21
latest_release_tagv4.0.0
releases_from_tagsno
days_since_latest_release448
mean_days_between_releases236.8
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?

66Good · 17% of overall
How it's scored
31/60Stars83 stars
11.2/25Forks23 forks
2.7/15Watchers4 watchers
Inputs used
forks23
stars83
watchers4
growth_stateunverified
growth_factor_pct100
growth_unverified_reasonno_history
How it's scored
22.5/22.5README
22.5/22.5Licenserecognized license (Apache-2.0)
0/18CONTRIBUTING guide
13.5/13.5Code of conduct
0/7.2Issue template
0/6.3PR template
Inputs used
has_readmeyes
has_licenseyes
readme_badges2
has_contributingno
has_issue_templateno
has_code_of_conductyes
readme_badge_servicesgithub.com, shields.io
has_pull_request_templateno
How it's scored
80/80Monthly downloads123,184,804 downloads/month across npm
0/20Registry dependentsnot reported by this ecosystem
Inputs used
packagesbefore-after-hook
dependents
ecosystemsnpm
total_downloads
monthly_downloads123,184,804
unverified_packages_excluded
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?

64Moderate · 23% of overall
How it's scored
9/54Bus factor1 contributor(s) cover half of all commits
3.2/22.5Commit distributiontop contributor authored 86% of commits
13.5/13.5Contributor breadth10 contributors
10/10OpenSSF Scorecard: Contributorsproject has 9 contributing companies or organizations
Inputs used
bus_factor1
contributors_sampled10
top_contributor_share0.859
How it's scored
39.4/42Issue resolution94% of issues closed
26.2/30PR acceptance82/94 decided PRs merged
0/13Newcomer PR acceptanceno first-time contributor's PR decided in 30d
1.5/15OpenSSF Scorecard: Code-ReviewFound 3/17 approved changesets -- score normalized to 1
Inputs used
merged_prs82
open_issues2
closed_issues30
prs_merged_7d0
prs_decided_7d0
prs_merged_30d0
prs_decided_30d0
issue_closed_ratio0.938
closed_unmerged_prs12
first_time_authors_30d0
first_time_prs_merged_30d0
first_time_prs_decided_30d0
Excluded from scoring (no data or not applicable): Newcomer PR acceptance. Remaining weights renormalized.
How it's scored
10/30Ownership backingpersonal (user) account
0/20Verified domainnot applicable to user accounts
23.4/25Owner reach1,790 followers of gr2m
25/25Track record274 public repos, account ~17 yr old
Inputs used
followers1,790
owner_typeUser
is_verified
owner_logingr2m
public_repos274
account_age_days6,444
Excluded from scoring (no data or not applicable): Verified domain. Remaining weights renormalized.
How it's scored
25/25Published & resolvable1 package(s) on npm
14/35Publish recencylatest publish 448 days ago
20/20Version history21 published versions
20/20Not deprecatedactive, not deprecated or yanked
Inputs used
packagesbefore-after-hook
ecosystemsnpm
any_deprecatedno
min_days_since_publish448

Engineering Quality

Are baseline engineering and documentation practices in place?

57Moderate · 19% of overall
How it's scored
24/24CI workflows3 workflow(s)
24/24Tests present
0/16Linter config
0/9.6Pre-commit hooks
0/6.4.editorconfig
4/20OpenSSF Scorecard: CI-Tests4 out of 20 merged PRs checked by a CI test -- score normalized to 2
Inputs used
has_ciyes
has_testsyes
has_editorconfigno
has_linter_configno
has_precommit_configno
How it's scored
30/30README
0/25Documentation directory
15/15Documentation / homepage sitehttp://npm.im/before-after-hook
10/10Repository description
10/10Topics6 topics
0/10Wiki
Inputs used
topicspromise, hooks, api, async, events, asynchronous
has_wikino
homepagehttp://npm.im/before-after-hook
docs_sitehttp://npm.im/before-after-hook
has_readmeyes
has_docs_dirno
has_descriptionyes

Security

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

63Moderate · 16% of overall
How it's scored
7.5/7.5Binary-Artifactsno binaries found in the repo
0/7.5Branch-Protectionno data
0.5/2.5CI-Tests4 out of 20 merged PRs checked by a CI test -- score normalized to 2
0/2.5CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
0.8/7.5Code-ReviewFound 3/17 approved changesets -- score normalized to 1
2.5/2.5Contributorsproject has 9 contributing companies or organizations
10/10Dangerous-Workflowno dangerous workflow patterns detected
7.5/7.5Dependency-Update-Toolupdate tool detected
0/5Fuzzingproject is not fuzzed
2.5/2.5Licenselicense file detected
0/7.5Maintained0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
5/5Packagingpackaging workflow detected
2.5/5Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 5
0/5SASTSAST tool is not run on all commits -- score normalized to 0
5/5Security-Policysecurity policy file detected
0/7.5Signed-Releasesno data
0/7.5Token-Permissionsdetected GitHub workflow tokens with excessive permissions
4.5/7.5Vulnerabilities4 existing vulnerabilities detected
Inputs used
sourceopenssf_scorecard
checks_evaluated16
scorecard_versionv5.5.0
checks_inconclusive2
scorecard_aggregate5.4
Excluded from scoring (no data or not applicable): Branch-Protection, Signed-Releases. Remaining weights renormalized.

Dependency advisories

100Exceptional
How it's scored
35/35Direct dependencies free of known advisoriesno direct dependency carries a known advisory
0/25Indirect dependencies free of known advisoriestransitive set not separable from development and test dependencies in this scope
0/40No advisories left outstandingno advisory carries a publication date
Inputs used
sourceosv
advisories4
affected_packages1
assessed_packages174
unassessed_packages0
affected_by_severityhigh 1
direct_affected_packages0
Excluded from scoring (no data or not applicable): Indirect dependencies free of known advisories, No advisories left outstanding. Remaining weights renormalized. Matched 174 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.

62Moderate · 4% of overall
How it's scored
0/45Agent instructionsno CLAUDE.md / AGENTS.md / editor rules
0/15Machine-readable docs (llms.txt)
40/40Legible commit history50 of 50 human commits state their intent (structured subject or explanatory body)
Inputs used
has_llms_txtno
llms_txt_url
legible_history_share1
agent_instruction_files
agent_instruction_max_bytes
How it's scored
0/18One-command bootstrap
22/22Automated tests
0/11Lint / format config
11/11Static type checkingjsconfig.json
10/10Reproducible environmentlockfile
0/10Demonstrated agent practiceno agent-authored commits among the last 100
8/8Automated maintenance50 of the last 100 commits are automated dependency updates
5/10OpenSSF Scorecard: Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 5
Inputs used
has_nixno
has_testsyes
lockfilespackage-lock.json
has_dockerfileno
typed_languageno
bootstrap_files
has_devcontainerno
has_linter_configno
typecheck_configsjsconfig.json
agent_commit_share0
toolchain_manifests
dependency_bot_commit_share0.5
How it's scored
27/45Type-checkable codeJavaScript with type-check config (jsconfig.json)
55/55Manageable file sizes0/17 source files over 60KB
Inputs used
primary_languageJavaScript
largest_source_bytes4,739
source_files_sampled17
oversized_source_files0
How it's scored
0/40API schema (OpenAPI/GraphQL/proto)not applicable to this kind of software
0/20MCP servernot applicable to this kind of software
40/40Runnable examplesexamples
Inputs used
example_dirsexamples
has_mcp_signalno
api_schema_files
interfaces_expected_of
Excluded from scoring (no data or not applicable): API schema (OpenAPI/GraphQL/proto), MCP server. Remaining weights renormalized.

Key facts

83GitHub stars
10contributors
5commits, last 12 months
123days since last push
21releases
1bus factor
2open issues
npmpackage ecosystems

Data collection warnings

  • Star history unavailable: GitHub GraphQL error: Resource not accessible by personal access token

More detail

Star and fork history 0 ★ / 23 ⇿
0Stars
23Forks
19Releases

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.

048121620242332018-012022-032026-04
Major 3Minor 6Patch 10

Each point covers 8 days.

OpenSSF Scorecard 5.4 / 10
5.4aggregate

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-08-04 20:43 UTC

10Binary-Artifactsno binaries found in the repo
n/aBranch-Protectioninternal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
2CI-Tests4 out of 20 merged PRs checked by a CI test -- score normalized to 2
0CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
1Code-ReviewFound 3/17 approved changesets -- score normalized to 1
10Contributorsproject has 9 contributing companies or organizations
10Dangerous-Workflowno dangerous workflow patterns detected
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
10Packagingpackaging workflow detected
5Pinned-Dependenciesdependency not pinned by hash detected -- score normalized to 5
0SASTSAST tool is not run on all commits -- score normalized to 0
10Security-Policysecurity policy file detected
n/aSigned-Releasesno releases found
0Token-Permissionsdetected GitHub workflow tokens with excessive permissions
6Vulnerabilities4 existing vulnerabilities detected
All dependencies 174

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

RegistryPackageVersionRelation
npm@babel/code-frame7.18.6indirect
npm@babel/helper-validator-identifier7.19.1indirect
npm@babel/highlight7.18.6indirect
npm@bcoe/v8-coverage1.0.2indirect
npm@isaacs/cliui8.0.2indirect
npm@istanbuljs/schema0.1.3indirect
npm@jridgewell/resolve-uri3.1.2indirect
npm@jridgewell/sourcemap-codec1.5.0indirect
npm@jridgewell/trace-mapping0.3.25indirect
npm@nodelib/fs.scandir2.1.5indirect
npm@nodelib/fs.stat2.0.5indirect
npm@nodelib/fs.walk1.2.8indirect
npm@pkgjs/parseargs0.11.0indirect
npm@tsd/typescript4.8.4indirect
npm@types/eslint7.29.0indirect
npm@types/estree1.0.7indirect
npm@types/istanbul-lib-coverage2.0.6indirect
npm@types/json-schema7.0.11indirect
npm@types/minimist1.2.2indirect
npm@types/node22.15.17indirect
npm@types/normalize-package-data2.4.1indirect
npmansi-escapes4.3.2indirect
npmansi-regex5.0.1indirect
npmansi-regex6.1.0indirect
npmansi-styles3.2.1indirect
npmansi-styles4.3.0indirect
npmansi-styles6.2.1indirect
npmarray-union2.1.0indirect
npmarrify1.0.1indirect
npmbalanced-match1.0.2indirect
npmbrace-expansion2.0.2indirect
npmbraces3.0.3indirect
npmc810.1.3indirect
npmcamelcase5.3.1indirect
npmcamelcase-keys6.2.2indirect
npmchalk2.4.2indirect
npmchalk4.1.2indirect
npmcliui8.0.1indirect
npmcolor-convert1.9.3indirect
npmcolor-convert2.0.1indirect
npmcolor-name1.1.3indirect
npmcolor-name1.1.4indirect
npmconvert-source-map2.0.0indirect
npmcross-spawn7.0.6indirect
npmdecamelize1.2.0indirect
npmdecamelize-keys1.1.0indirect
npmdir-glob3.0.1indirect
npmeastasianwidth0.2.0indirect
npmemoji-regex8.0.0indirect
npmemoji-regex9.2.2indirect
npmerror-ex1.3.2indirect
npmescalade3.2.0indirect
npmescape-string-regexp1.0.5indirect
npmeslint-formatter-pretty4.1.0indirect
npmeslint-rule-docs1.1.235indirect
npmfast-glob3.2.12indirect
npmfastq1.13.0indirect
npmfill-range7.1.1indirect
npmfind-up4.1.0indirect
npmfind-up5.0.0indirect
npmforeground-child3.3.1indirect
npmfunction-bind1.1.1indirect
npmget-caller-file2.0.5indirect
npmglob10.5.0indirect
npmglob-parent5.1.2indirect
npmglobby11.1.0indirect
npmhard-rejection2.1.0indirect
npmhas1.0.3indirect
npmhas-flag3.0.0indirect
npmhas-flag4.0.0indirect
npmhosted-git-info2.8.9indirect
npmhosted-git-info4.1.0indirect
npmhtml-escaper2.0.2indirect
npmignore5.2.0indirect
npmindent-string4.0.0indirect
npmirregular-plurals3.3.0indirect
npmis-arrayish0.2.1indirect
npmis-core-module2.10.0indirect
npmis-extglob2.1.1indirect
npmis-fullwidth-code-point3.0.0indirect
npmis-glob4.0.3indirect
npmis-number7.0.0indirect
npmis-plain-obj1.1.0indirect
npmis-unicode-supported0.1.0indirect
npmisexe2.0.0indirect
npmistanbul-lib-coverage3.2.2indirect
npmistanbul-lib-report3.0.1indirect
npmistanbul-reports3.1.7indirect
npmjackspeak3.4.3indirect
npmjs-tokens4.0.0indirect
npmjson-parse-even-better-errors2.3.1indirect
npmkind-of6.0.3indirect
npmlines-and-columns1.2.4indirect
npmlocate-path5.0.0indirect
npmlocate-path6.0.0indirect
npmlog-symbols4.1.0indirect
npmlru-cache10.4.3indirect
npmlru-cache6.0.0indirect
npmmake-dir4.0.0indirect
npmmap-obj1.0.1indirect
npmmap-obj4.3.0indirect
npmmeow9.0.0indirect
npmmerge21.4.1indirect
npmmicromatch4.0.8indirect
npmmin-indent1.0.1indirect
npmminimatch9.0.9indirect
npmminimist-options4.1.0indirect
npmminipass7.1.2indirect
npmnormalize-package-data2.5.0indirect
npmnormalize-package-data3.0.3indirect
npmp-limit2.3.0indirect
npmp-limit3.1.0indirect
npmp-locate4.1.0indirect
npmp-locate5.0.0indirect
npmp-try2.2.0indirect
npmpackage-json-from-dist1.0.1indirect
npmparse-json5.2.0indirect
npmpath-exists4.0.0indirect
npmpath-key3.1.1indirect
npmpath-parse1.0.7indirect
npmpath-scurry1.11.1indirect
npmpath-type4.0.0indirect
npmpicomatch2.3.2indirect
npmplur4.0.0indirect
npmprettier2.0.4indirect
npmqueue-microtask1.2.3indirect
npmquick-lru4.0.1indirect
npmread-pkg5.2.0indirect
npmread-pkg-up7.0.1indirect
npmredent3.0.0indirect
npmrequire-directory2.1.1indirect
npmresolve1.22.1indirect
npmreusify1.0.4indirect
npmrun-parallel1.2.0indirect
npmsemver5.7.2indirect
npmsemver7.7.1indirect
npmshebang-command2.0.0indirect
npmshebang-regex3.0.0indirect
npmsignal-exit4.1.0indirect
npmslash3.0.0indirect
npmspdx-correct3.1.1indirect
npmspdx-exceptions2.3.0indirect
npmspdx-expression-parse3.0.1indirect
npmspdx-license-ids3.0.12indirect
npmstring-width4.2.3indirect
npmstring-width5.1.2indirect
npmstrip-ansi6.0.1indirect
npmstrip-ansi7.1.0indirect
npmstrip-indent3.0.0indirect
npmsupports-color5.5.0indirect
npmsupports-color7.2.0indirect
npmsupports-hyperlinks2.3.0indirect
npmsupports-preserve-symlinks-flag1.0.0indirect
npmtest-exclude7.0.1indirect
npmto-regex-range5.0.1indirect
npmtrim-newlines3.0.1indirect
npmtsd0.24.1indirect
npmtype-fest0.18.1indirect
npmtype-fest0.21.3indirect
npmtype-fest0.6.0indirect
npmtype-fest0.8.1indirect
npmtypescript4.8.4indirect
npmundici-types6.21.0indirect
npmv8-to-istanbul9.3.0indirect
npmvalidate-npm-package-license3.0.4indirect
npmwhich2.0.2indirect
npmwrap-ansi7.0.0indirect
npmwrap-ansi8.1.0indirect
npmy18n5.0.8indirect
npmyallist4.0.0indirect
npmyargs17.7.2indirect
npmyargs-parser20.2.9indirect
npmyargs-parser21.1.1indirect
npmyocto-queue0.1.0indirect
Dependency advisories 1

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

PackageVersionRelationSeverityAdvisoriesFixed in
brace-expansion2.0.2indirecthigh45.0.9

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.31.0 — full methodology · metrics wiki.

How one result sits in the wider record: aggregate statisticsnpm.