{"id":16747584,"url":"https://github.com/differui/oas-typegen","last_synced_at":"2026-03-07T22:02:18.025Z","repository":{"id":81985884,"uuid":"159471494","full_name":"differui/oas-typegen","owner":"differui","description":"Generate JSDoc/TS/DTS type definitions from OpenAPI document(V2).","archived":false,"fork":false,"pushed_at":"2018-12-25T09:17:32.000Z","size":92,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-12T14:46:09.868Z","etag":null,"topics":["cli","jsdoc","openapi","typescript","typescript-definitions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/differui.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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}},"created_at":"2018-11-28T08:51:05.000Z","updated_at":"2019-10-10T11:01:44.000Z","dependencies_parsed_at":"2023-05-29T01:30:41.904Z","dependency_job_id":null,"html_url":"https://github.com/differui/oas-typegen","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"1fbf56ed2c4bf124a28fc08f85402ba88fbe1493"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/differui/oas-typegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Foas-typegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Foas-typegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Foas-typegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Foas-typegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/differui","download_url":"https://codeload.github.com/differui/oas-typegen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Foas-typegen/sbom","scorecard":{"id":341645,"data":{"date":"2025-08-11","repo":{"name":"github.com/differui/oas-typegen","commit":"1fbf56ed2c4bf124a28fc08f85402ba88fbe1493"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":-1,"reason":"No tokens found","details":null,"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"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":"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":"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-18T06:02:41.330Z","repository_id":81985884,"created_at":"2025-08-18T06:02:41.330Z","updated_at":"2025-08-18T06:02:41.330Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30233429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","jsdoc","openapi","typescript","typescript-definitions"],"created_at":"2024-10-13T02:10:27.041Z","updated_at":"2026-03-07T22:02:18.011Z","avatar_url":"https://github.com/differui.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"oas-typegen [![CircleCI](https://img.shields.io/circleci/project/github/differui/oas-typegen/master.svg?style=flat-square)](https://circleci.com/gh/differui/oas-typegen) [![npm](https://img.shields.io/npm/v/oas-typegen.svg?style=flat-square)](https://www.npmjs.com/package/oas-typegen) [![mit](https://img.shields.io/npm/l/oas-typegen.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n=====\n\n\u003e Generate JSDoc/TS/DTS type definitions from OpenAPI document(V2).\n\n## Installation\n\n```bash\nnpm install oas-typegen -g\n```\n\n## Usage\n\n```bash\ntypegen -i http://petstore.swagger.io/v2/swagger.json\n```\n\n## Options\n\n```\nGenerate TS/JS/DTS type definitions from OpenAPI document (V2).\n\nUsage\n\n$ typegen --input \u003cinput\u003e --output \u003coutput\u003e\n\nOptions:\n\n  --input, -i    (required) Path to OpenAPI document in local file system or\n                 url on lines.\n  --output, -o   The output path and file for generated assets.\n  --dir, -d      The output directory for generated assets. Use current dire-\n                 tory by default.\n\n  --name, -n     Specifies the name of your swagger document.\n  --config, -c   Use this config file(if argument is used but value is unspe-\n                 cified, defaults to typegen.json).\n  --format, -f   Type of output assets (cjs, es).Use \"es\" by default.\n  --language, -l Choice one output language in js ts and dts\n                 \u003e js: (default) create a .js file and comment with JSDoc\n                 \u003e ts: create a .ts file and declare types as interfaces\n                 \u003e dts: create a .js file and declare types in a .d.ts\n  --plugin, -p   Load the plugin from local node_modules.\n\n  --intro        Content to insert at top of generated type file.\n  --outro        Content to insert at bottom of generated type file.\n\n  --serial, -e   Force build multi-documents one by one.\n  --silent, -s   Prevent output from being displayed in stdout.\n  --version, -v  Print current version number.\n  --help, -h     Print this message.\n\nExamples:\n\n$ typegen --input ./swagger.json --output gateway.js --language js\n$ typegen --input http://petstore.swagger.io/v2/swagger.json --output petsto-\n                  re.js\n```\n\n## License\n\n\u0026copy; [differui](mailto:differui@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifferui%2Foas-typegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdifferui%2Foas-typegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifferui%2Foas-typegen/lists"}