Skip to content

Include npm keywords in topic search#2251

Closed
brentvatne wants to merge 1 commit into
mainfrom
@brent/add-npm-keywords
Closed

Include npm keywords in topic search#2251
brentvatne wants to merge 1 commit into
mainfrom
@brent/add-npm-keywords

Conversation

@brentvatne
Copy link
Copy Markdown
Contributor

📝 Why & how

Libraries that lack GitHub repo topics (e.g. expo-apple-targets) have no keyword-based search discoverability. The npm registry response includes a keywords field that's already typed (NpmRegistryCommonData.keywords) but never extracted.

This PR extracts npm keywords during the registry fetch (processed through processTopics()), adds them to the npm type, and merges them into topicSearchString alongside GitHub topics. A Set deduplicates so each term is only counted once per library.

✅ Checklist

  • Explained how you fixed the issue or built the feature.
  • Described how to use or verify the change.
    • bun scripts/validate-new-entries passes
    • Duplicate topics between GitHub and npm are only counted once via Set dedup

Extract keywords from the npm registry response (via processTopics)
and merge them into topicSearchString for search discoverability.
A Set deduplicates against GitHub topics so each term is counted once.
@brentvatne
Copy link
Copy Markdown
Contributor Author

nm I misunderstood the current approach

@brentvatne brentvatne closed this Mar 3, 2026
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.

1 participant