{"id":21444967,"url":"https://github.com/google/jsinterop-generator","last_synced_at":"2026-07-01T23:01:39.401Z","repository":{"id":44454118,"uuid":"91136737","full_name":"google/jsinterop-generator","owner":"google","description":"Generates Java annotated with JsInterop from JavaScript extern sources","archived":false,"fork":false,"pushed_at":"2026-06-15T19:46:37.000Z","size":831,"stargazers_count":85,"open_issues_count":18,"forks_count":22,"subscribers_count":17,"default_branch":"master","last_synced_at":"2026-06-29T04:27:03.443Z","etag":null,"topics":["closure","extern","gwt","j2cl","java","jsinterop"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-05-12T23:30:16.000Z","updated_at":"2026-06-15T19:46:41.000Z","dependencies_parsed_at":"2024-04-22T21:59:02.999Z","dependency_job_id":"2b1ff550-26ac-4224-8cd9-14aa8ee8eb08","html_url":"https://github.com/google/jsinterop-generator","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/google/jsinterop-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsinterop-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsinterop-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsinterop-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsinterop-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/jsinterop-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjsinterop-generator/sbom","scorecard":{"id":437301,"data":{"date":"2025-08-15T05:33:53Z","repo":{"name":"github.com/google/jsinterop-generator","commit":"a8dd47f95e0ef4dd0a5d4c09f28d469176ce6874"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":8.1,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"CI-Tests","score":-1,"reason":"no pull request found","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yaml:37","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yaml:20","Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yaml:18"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":9,"reason":"dependency not pinned by hash detected -- score normalized to 9","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/scorecard.yaml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/google/jsinterop-generator/scorecard.yaml/master?enable=pin","Info:   6 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/google/.github/SECURITY.md:1","Info: Found linked content: github.com/google/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/google/.github/SECURITY.md:1","Info: Found text in security policy: github.com/google/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":5,"reason":"1 out of the last 2 releases have a total of 1 signed artifacts.","details":["Warn: release artifact v20250630 not signed: https://api.github.com/repos/google/jsinterop-generator/releases/228962175","Info: provenance for release artifact: jsinterop-generator-v20250812.tar.gz.intoto.jsonl: https://github.com/google/jsinterop-generator/releases/tag/v20250812","Warn: release artifact v20250630 does not have provenance: https://api.github.com/repos/google/jsinterop-generator/releases/228962175"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: :0"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Contributors","score":10,"reason":"project has 11 contributing companies or organizations","details":["Info: found contributions from: RHoKAustralia, apache, arez, dfinityexplorer, google, google inc, react4j, replicant4j, rhok-melbourne, spritz, stocksoftware"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}}]},"last_synced_at":"2025-08-19T04:58:47.319Z","repository_id":44454118,"created_at":"2025-08-19T04:58:47.319Z","updated_at":"2025-08-19T04:58:47.319Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34966589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["closure","extern","gwt","j2cl","java","jsinterop"],"created_at":"2024-11-23T02:22:09.342Z","updated_at":"2026-07-01T23:01:39.387Z","avatar_url":"https://github.com/google.png","language":"Java","funding_links":[],"categories":["JsInterop Generator"],"sub_categories":[],"readme":"# JsInterop Generator \u0026middot; ![Latest Release](https://img.shields.io/github/v/release/google/jsinterop-generator) \u0026middot; [![Build Status](https://github.com/google/jsinterop-generator/actions/workflows/ci.yaml/badge.svg)](https://github.com/google/jsinterop-generator/actions/workflows/ci.yaml)\n\nThe jsinterop generator is a java program that takes closure extern files as input and generates\nJava classes annotated with [JsInterop annotations](https://goo.gl/agme3T).\n\n\u003e *This project is used for building Elemental2.\nAny other uses are experimental. You can use it to generate java APIs for other javascript libraries but we don't provide any official support. Feel free to open issues on the github issue tracker, though.*\n\nRun with Bazel\n---------------\nUsing Bazel 8 or later, add to your `MODULE.bazel` file:\n\n```starlark\nbazel_dep(name = \"jsinterop_generator\", version = \"\u003cRELEASE_VERSION\u003e\")\n```\n\nReplace `RELEASE_VERSION` with an actual [release version](https://github.com/google/jsinterop-generator/releases).\n\nThen, in your `BUILD` file, load the generator rule and use it:\n\n```bzl\nload(\"@jsinterop_generator//:jsinterop_generator.bzl\", \"jsinterop_generator\")\n\njsinterop_generator(\n        name = \"my_thirdparty_lib\",\n        srcs = [\"my_externs.js\"],\n)\n```\n\nYou can now directly depend on `:my_thirdparty_lib` target in your `java_library` rules or build the jar files with `bazel build //path/to/your/BUILD/file/directory:my_thirdparty_lib`.\nThe jar files with the generated source will created in `bazel-bin/path/to/your/BUILD/file/directory`.\n\nRun as a standalone java program\n---------------------------------\n\n### Build the generator from source\n\n- Install [Bazelisk](https://github.com/bazelbuild/bazelisk):\n\n```shell\n    $ npm install -g @bazel/bazelisk\n    $ alias bazel=bazelisk\n```\n- Clone this git repository:\n  ```shell\n  $ git clone https://github.com/google/jsinterop-generator.git\n  ```\n- Build the binary:\n  ```shell\n      $ cd jsinterop-generator\n      $ bazel build //java/jsinterop/generator/closure:ClosureJsinteropGenerator_deploy.jar\n  ```\n\nThe generated jar file can be found at `bazel-bin/java/jsinterop/generator/closure/ClosureJsinteropGenerator_deploy.jar`\n\n### Run the generator\nNow you have the jar file, just invoke\n\n    java -jar /path/to/ClosureJsinteropGenerator_deploy.jar [options] externs_file...\n\nList of required `options` :\n\nOption | Meaning\n------ | -------\n--output _file_ | Path to the jar file that will contain the generated java classes\n--output_dependency_file _file_ | Path to the dependency file generated by the generator.\n--package_prefix _string_ | Prefix used when we build the java package\n--extension_type_prefix _string_ | Value used for prefixing extension types. It's a good practice to pass the name of the library in upper camel case.\n\n\nContributing\n------------\nPlease refer to [the contributing document](CONTRIBUTING.md).\n\nLicensing\n---------\nPlease refer to [the license file](LICENSE).\n\nDisclaimer\n----------\nThis is not an official Google product.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fjsinterop-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fjsinterop-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fjsinterop-generator/lists"}