{"id":31144261,"url":"https://github.com/outfoxx/typescriptpoet","last_synced_at":"2025-09-18T14:38:25.989Z","repository":{"id":51023605,"uuid":"121184058","full_name":"outfoxx/typescriptpoet","owner":"outfoxx","description":"A Kotlin/Java API for generating .ts source files.","archived":false,"fork":false,"pushed_at":"2023-07-26T12:35:14.000Z","size":1712,"stargazers_count":40,"open_issues_count":11,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-07-28T10:15:15.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/outfoxx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-12T01:01:44.000Z","updated_at":"2023-07-17T12:05:29.000Z","dependencies_parsed_at":"2022-09-21T02:02:51.238Z","dependency_job_id":null,"html_url":"https://github.com/outfoxx/typescriptpoet","commit_stats":null,"previous_names":[],"tags_count":9,"template":null,"template_full_name":null,"purl":"pkg:github/outfoxx/typescriptpoet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfoxx%2Ftypescriptpoet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfoxx%2Ftypescriptpoet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfoxx%2Ftypescriptpoet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfoxx%2Ftypescriptpoet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outfoxx","download_url":"https://codeload.github.com/outfoxx/typescriptpoet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfoxx%2Ftypescriptpoet/sbom","scorecard":{"id":714898,"data":{"date":"2025-08-11","repo":{"name":"github.com/outfoxx/typescriptpoet","commit":"62d7d4b276b6039bd04729ddb135a9428e61b03e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/outfoxx/typescriptpoet/publish.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T09:18:20.103Z","repository_id":51023605,"created_at":"2025-08-22T09:18:20.103Z","updated_at":"2025-08-22T09:18:20.103Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275781987,"owners_count":25527502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"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":[],"created_at":"2025-09-18T14:38:23.554Z","updated_at":"2025-09-18T14:38:25.949Z","avatar_url":"https://github.com/outfoxx.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nTypeScriptPoet\n==========\n\n[![CI](https://github.com/outfoxx/typescriptpoet/actions/workflows/ci.yml/badge.svg)](https://github.com/outfoxx/typescriptpoet/actions/workflows/ci.yml)\n[![Maven Central](https://img.shields.io/maven-central/v/io.outfoxx/typescriptpoet.svg)][dl]\n[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/io.outfoxx/typescriptpoet.svg)][snap]\n[![codebeat badge](https://codebeat.co/badges/70f7939d-185e-42d7-b7a8-ea240840a121)](https://codebeat.co/projects/github-com-outfoxx-typescriptpoet-master)\n\n`TypeScriptPoet` is a Kotlin and Java API for generating `.ts` source files.\n\nSource file generation can be useful when doing things such as annotation processing or interacting\nwith metadata files (e.g., database schemas, protocol formats). By generating code, you eliminate\nthe need to write boilerplate while also keeping a single source of truth for the metadata.\n\n\n### Example\n\nHere's a `HelloWorld` file:\n\n```typescript\nimport {Observable} from 'rxjs/Observable';\nimport 'rxjs/add/observable/from';\n\n\nclass Greeter {\n\n  private name: string;\n\n  constructor(private name: string) {\n  }\n\n  greet(): Observable\u003cstring\u003e {\n    return Observable.from(`Hello $name`)}\n\n}\n```\n\nAnd this is the code to generate it with TypeScriptPoet:\n\n```kotlin\nval observableTypeName = TypeName.importedType(\"@rxjs/Observable\")\n\nval testClass = ClassSpec.builder(\"Greeter\")\n   .addProperty(\"name\", TypeName.STRING, false, Modifier.PRIVATE)\n   .constructor(\n      FunctionSpec.constructorBuilder()\n         .addParameter(\"name\", TypeName.STRING, false, Modifier.PRIVATE)\n         .build()\n   )\n   .addFunction(\n      FunctionSpec.builder(\"greet\")\n         .returns(TypeName.parameterizedType(observableTypeName, TypeName.STRING))\n         .addCode(\"return %T.%N(`Hello \\$name`)\", observableTypeName, SymbolSpec.from(\"+rxjs/add/observable/from#Observable\"))\n         .build()\n   )\n   .build()\n\nval file = FileSpec.builder(\"Greeter\")\n   .addClass(testClass)\n   .build()\n\nval out = StringWriter()\nfile.writeTo(out)\n```\n\nThe [KDoc][kdoc] catalogs the complete TypeScriptPoet API, which is inspired by [JavaPoet][javapoet].\n\n\nDownload\n--------\n\nDownload [the latest .jar][dl] or depend via Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.outfoxx\u003c/groupId\u003e\n  \u003cartifactId\u003etypescriptpoet\u003c/artifactId\u003e\n  \u003cversion\u003e1.1.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nor Gradle:\n\n```groovy\ncompile 'io.outfoxx:typescriptpoet:1.1.2'\n```\n\nSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap].\n\n\nLicense\n-------\n\n    Copyright 2017 Outfox, Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n [dl]: https://search.maven.org/remote_content?g=io.outfoxx\u0026a=typescriptpoet\u0026v=LATEST\n [snap]: https://oss.sonatype.org/content/repositories/snapshots/io/outfoxx/typescriptpoet/\n [kdoc]: https://outfoxx.github.io/typescriptpoet/1.1.2/index.html\n [javapoet]: https://github.com/square/javapoet/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutfoxx%2Ftypescriptpoet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutfoxx%2Ftypescriptpoet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutfoxx%2Ftypescriptpoet/lists"}