Skip to content

Comments

feat: multi language support signal#50

Merged
huang-benny merged 7 commits intomainfrom
behuang/multi_language_signal
Nov 14, 2025
Merged

feat: multi language support signal#50
huang-benny merged 7 commits intomainfrom
behuang/multi_language_signal

Conversation

@huang-benny
Copy link
Contributor

@huang-benny huang-benny commented Nov 12, 2025

This PR adds a new multiLanguageSupport signal to the QUALITY pillar that measures how many programming languages are supported by a CDK construct through jsii compilation. This provides insight into the package's accessibility and usability across different repositories.

Changes:

  • Fetches jsii configuration from package.json via NPM registry API
  • Extracts the jsii.targets object to identify supported language bindings
  • Returns 0 if jsii is not configured or targets are empty
  • Added analyzeJsiiLanguageSupport() function to count supported languages
  • Counts language targets (python, java, dotnet, go, etc.) from jsii configuration
  • Added unit tests for jsii language detection

Scoring (typescript is included in all libraries by default):

  • 4 additional languages: 5 stars
  • 3 additional languages: 4 stars
  • 2 additional languages: 3 stars
  • 1 additional language: 2 stars
  • 0 additional languages: 1 star

Example CLI Input and Output:

> cdk-construct-analyzer cdk-ecr-deployment --details  

LIBRARY: cdk-ecr-deployment
VERSION: 4.0.3

OVERALL SCORE: 76/100

---

SUBSCORES
  MAINTENANCE :           63/100
  QUALITY     :           83/100
  POPULARITY  :           88/100

---

=== MAINTENANCE ===                                   SCORE  WEIGHT
— Time To First Response ............................ ★★☆☆☆    15
— Provenance Verification ........................... ★★★★★    10
— Release Frequency ................................. ★★★★☆    10
— Number Of Contributors - Maintenance .............. ★★★★☆    5

=== QUALITY ===                                       SCORE  WEIGHT
— Documentation Completeness ........................ ★★★★☆    5
— Tests Checklist ................................... ★★★☆☆    5
— Author Package Count .............................. ★★★★★    5
— Release Notes Include Feats And Fixes ............. ★★★★★    5
— Stable Versioning ................................. ★★★★☆    5
— Multi Language Support ............................ ★★★★★    5

=== POPULARITY ===                                    SCORE  WEIGHT
— Weekly Downloads .................................. ★★★★★    15
— Github Stars ...................................... ★★★★☆    10
— Number Of Contributors - Popularity ............... ★★★★☆    5

@huang-benny huang-benny changed the title multi language support signal feat: multi language support signal Nov 12, 2025
Copy link
Contributor

@kaizencc kaizencc left a comment

Choose a reason for hiding this comment

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

small nits

@cdklabs-automation cdklabs-automation added this pull request to the merge queue Nov 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Nov 13, 2025
@huang-benny huang-benny added this pull request to the merge queue Nov 14, 2025
Merged via the queue into main with commit dd6708e Nov 14, 2025
7 checks passed
@huang-benny huang-benny deleted the behuang/multi_language_signal branch November 14, 2025 16:27
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