Public record
Software health reportschema 0.34.0 · metrics 2.10.0 · 2026-11-19 18:20 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 (37/100). It was last updated 39 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,840 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.0196,068,27421555 days agohookhooksapi

Metrics by category

Vitality

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

37Weak · 21% of overall
How it's scored
18/36Push recency — last push 39 days ago
2.8/36Commit cadence — 4/52 weeks with commits
6.3/18Commit volume — 4 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 year4
Share of human-authored commits0.5
Days since last push39
Weeks with commits in the last year4
How it's scored
27/27Ships releases — 21 releases published
7.2/36Release recency — latest release 555 days ago
12.6/27Release cadence — a release every ~236.8 days
0/10OpenSSF Scorecard: Signed-Releases — no data
Inputs used
Number of releases21
Latest release tagv4.0.0
Releases derived from version tagsno
Days since latest release555
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/60Stars — 83 stars
11.2/25Forks — 23 forks
2.7/15Watchers — 4 watchers
Inputs used
Forks23
Stars83
Watchers4
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 (Apache-2.0)
0/18CONTRIBUTING guide
13.5/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 presentyes
Badge services used in the READMEgithub.com, shields.io
Pull request template presentno
How it's scored
80/80Monthly downloads — 196,068,274 downloads/month across npm
0/20Registry dependents — not reported by this ecosystem
Inputs used
Packagesbefore-after-hook
Registry dependents—
Package ecosystemsnpm
Total downloads—
Monthly downloads196,068,274
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?

64Moderate · 23% of overall
How it's scored
9/54Bus factor — 1 contributor(s) cover half of all commits
3.2/22.5Commit distribution — top contributor authored 86% of commits
13.5/13.5Contributor breadth — 10 contributors
10/10OpenSSF Scorecard: Contributors — project has 9 contributing companies or organizations
Inputs used
Bus factor1
Contributors sampled10
Share of commits by the top contributor0.859
How it's scored
39.4/42Issue resolution — 94% of issues closed
25.9/30PR acceptance — 82/95 decided PRs merged
0/13Newcomer PR acceptance — no first-time contributor's PR decided in 30d
1.5/15OpenSSF Scorecard: Code-Review — Found 3/17 approved changesets -- score normalized to 1
Inputs used
Merged pull requests82
Open issues2
Closed issues30
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.938
Pull requests closed without merging13
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
23.5/25Owner reach — 1,840 followers of gr2m
25/25Track record — 274 public repos, account ~17 yr old
Inputs used
Followers1,840
Owner account typeUser
Verified domain—
Owner accountgr2m
Public repositories274
Owner account age in days6,551
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
14/35Publish recency — latest publish 555 days ago
20/20Version history — 21 published versions
20/20Not deprecated — active, not deprecated or yanked
Inputs used
Packagesbefore-after-hook
Package ecosystemsnpm
Any package deprecated or yankedno
Days since latest package publish555

Engineering Quality

Are baseline engineering and documentation practices in place?

56Moderate · 19% of overall
How it's scored
24/24CI workflows — 3 workflow(s)
24/24Tests present
0/16Linter config
0/9.6Pre-commit hooks
0/6.4.editorconfig
2/20OpenSSF Scorecard: CI-Tests — 3 out of 20 merged PRs checked by a CI test -- score normalized to 1
Inputs used
CI workflows presentyes
Tests presentyes
.editorconfig presentno
Linter config presentno
Pre-commit config presentno
How it's scored
30/30README
0/25Documentation directory
15/15Documentation / homepage site — http://npm.im/before-after-hook
10/10Repository description
10/10Topics — 6 topics
0/10Wiki
Inputs used
Repository topicspromise, hooks, api, async, events, asynchronous
Wiki enabledno
Repository homepagehttp://npm.im/before-after-hook
Documentation sitehttp://npm.im/before-after-hook
README presentyes
Documentation directory presentno
Repository description presentyes

Security

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

57Moderate · 16% of overall
How it's scored
7.5/7.5Binary-Artifacts — no binaries found in the repo
0/7.5Branch-Protection — no data
0.2/2.5CI-Tests — 3 out of 20 merged PRs checked by a CI test -- score normalized to 1
0/2.5CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected
0.8/7.5Code-Review — Found 3/17 approved changesets -- score normalized to 1
2.5/2.5Contributors — project has 9 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.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
2.5/5Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 5
0/5SAST — SAST tool is not run on all commits -- score normalized to 0
5/5Security-Policy — security policy file detected
0/7.5Signed-Releases — no data
0/7.5Token-Permissions — detected GitHub workflow tokens with excessive permissions
0.8/7.5Vulnerabilities — 9 existing vulnerabilities detected
Inputs used
Data sourceopenssf_scorecard
Scorecard checks evaluated15
OpenSSF Scorecard versionv5.5.0
Scorecard checks inconclusive3
OpenSSF Scorecard aggregate score4.6
Excluded from scoring (no data or not applicable): Branch-Protection, Packaging, 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 packages9
Packages affected by advisories3
Packages assessed174
Packages not assessed0
Affected packages by severityhigh 1, moderate 2
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 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 instructions — no CLAUDE.md / AGENTS.md / editor rules
0/15Machine-readable docs (llms.txt)
40/40Legible commit history — 50 of 50 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 intent1
Agent instruction files—
Size of the largest agent instruction file (bytes)—
How it's scored
0/18One-command bootstrap
22/22Automated tests
0/11Lint / format config
11/11Static type checking — jsconfig.json
10/10Reproducible environment — lockfile
0/10Demonstrated agent practice — no agent-authored commits among the last 100
8/8Automated maintenance — 50 of the last 100 commits are automated dependency updates
5/10OpenSSF Scorecard: Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 5
Inputs used
Nix config presentno
Tests presentyes
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 filesjsconfig.json
Share of commits authored by or credited to coding agents0
Toolchain manifests—
Share of commits that are automated dependency updates0.5
How it's scored
27/45Type-checkable code — JavaScript with type-check config (jsconfig.json)
55/55Manageable file sizes — 0/17 source files over 60KB
Inputs used
Primary languageJavaScript
Size of the largest source file (bytes)4,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 server — not applicable to this kind of software
40/40Runnable examples — examples
Inputs used
Runnable example directoriesexamples
MCP server signal presentno
API schema files—
Software kinds for which an interface is expected—
Excluded from scoring (no data or not applicable): API schema (OpenAPI/GraphQL/proto), MCP server. Remaining weights renormalized.

Key facts

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

Data collection warnings

  • Star history unavailable

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 4.6 / 10
4.6aggregate

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-19 18:20 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
1CI-Tests3 out of 20 merged PRs checked by a CI test -- score normalized to 1
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
n/aPackagingpackaging workflow not 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
1Vulnerabilities9 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 3

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: 3 carry known advisories, of which 0 are direct.

PackageVersionRelationSeverityAdvisoriesFixed in
brace-expansion2.0.2indirecthigh75.0.12
glob10.5.0indirectmoderate114.0.2
minimatch9.0.9indirectmoderate111.0.1

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.