Skip to content

npm: add discovery keywords for the ReScript packages index#59

Merged
jagguji merged 1 commit into
mainfrom
npm-discovery-keywords
Jun 15, 2026
Merged

npm: add discovery keywords for the ReScript packages index#59
jagguji merged 1 commit into
mainfrom
npm-discovery-keywords

Conversation

@jagguji

@jagguji jagguji commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

What

Adds 5 discovery-friendly npm keywords to package.json:
binding-generator, typescript-to-rescript, dts, rescript-bindings, type-generator.

Why

rescript-lang.org/packages is auto-built from a single npm registry search — text=keywords:rescript (verified from their Packages.res source: no PR or manual submission, fully automatic). We already qualify: we carry the rescript keyword and our npm maintenance score is 1.0, and a live run of their exact query returns us on page 1 of 551 results. So this PR doesn't get us listed — it improves findability once listed, since the page fuzzy-searches package name + keywords.

Deliberately not adding gentype — that's the official genType tool's name; we shouldn't piggyback on it.

Notes

  • Only the keywords array changed (no file reformat).
  • Pure metadata — no code, no fixture/golden/bench impact. Ships with the next release (the live npm listing updates on publish).
  • 41 goldens still green.

rescript-lang.org/packages is auto-built from an npm search
(text=keywords:rescript) — we already qualify (the 'rescript' keyword,
maintenance 1.0). These add discovery-friendly terms the site's fuzzy
name+keyword search will match: binding-generator, typescript-to-rescript,
dts, rescript-bindings, type-generator. No 'gentype' (that's the official
genType tool's name). Ships with the next release.
@github-actions

Copy link
Copy Markdown

Benchmark: ✅ PASS

Package Compile Diff vs baseline usable review broken Verdict
@juspay/blend-design-system@0.0.36 identical 94 0 0 ✅ PASS
react-day-picker@10.0.1 identical 27 0 0 ✅ PASS
react-tooltip@6.0.7 identical 1 0 0 ✅ PASS
react-markdown@10.1.0 identical 0 2 0 ✅ PASS
@smastrom/react-rating@1.5.0 identical 1 0 0 ✅ PASS
clsx@2.1.1 identical 0 0 0 ✅ PASS
hono@4.12.25 identical 0 0 0 ✅ PASS
@base-ui-components/react@1.0.0-rc.0 identical 195 0 0 ✅ PASS

@Tara-ag Tara-ag left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Files reviewed: 1 (package.json)

Issues found: 0

Assessment

This is a pure metadata change adding npm discovery keywords. No code modifications.

Verification against blocking criteria:

  • ✅ No hardcoded secrets
  • ✅ No security vulnerabilities
  • ✅ No unsafe casts in generated code (no emit changes)
  • ✅ No output-only 'a type variables (no emit changes)
  • ✅ No fake types in shared entries (no emit changes)
  • ✅ No nondeterminism introduced (no code changes)

Keywords added: binding-generator, typescript-to-rescript, dts, rescript-bindings, type-generator

Notable: Correctly avoided adding gentype (official genType tool's name) per PR description.

Impact: Improves findability on rescript-lang.org/packages without affecting any functionality. Zero fixture/golden impact as expected for metadata-only changes.

Decision: Approve — safe, well-documented, no risks identified.

@jagguji jagguji merged commit 64e8d39 into main Jun 15, 2026
9 checks passed
@jagguji jagguji deleted the npm-discovery-keywords branch June 15, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants