{"id":14986576,"url":"https://github.com/json-schema-tools/transpiler","last_synced_at":"2026-04-01T23:02:38.542Z","repository":{"id":37826923,"uuid":"236640483","full_name":"json-schema-tools/transpiler","owner":"json-schema-tools","description":"Transpile JSON Schema to Type aliases for many languages","archived":false,"fork":false,"pushed_at":"2025-01-03T06:39:07.000Z","size":1899,"stargazers_count":27,"open_issues_count":22,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-28T00:58:08.477Z","etag":null,"topics":["json-schema-generator","jsonschema","open-api","open-rpc","typings"],"latest_commit_sha":null,"homepage":"https://json-schema-tools.github.io/transpiler/","language":"TypeScript","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/json-schema-tools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"belfordz","open_collective":"zachary-belford"}},"created_at":"2020-01-28T02:17:08.000Z","updated_at":"2026-01-24T03:26:04.000Z","dependencies_parsed_at":"2024-04-29T07:26:15.722Z","dependency_job_id":"4a17266a-c5e4-4459-bc5e-85b0071baca5","html_url":"https://github.com/json-schema-tools/transpiler","commit_stats":{"total_commits":204,"total_committers":7,"mean_commits":"29.142857142857142","dds":0.6176470588235294,"last_synced_commit":"789ffa784d317202d0af9e026c7b3e6ebf6eade8"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":"etclabscore/pristine-typescript","purl":"pkg:github/json-schema-tools/transpiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-schema-tools%2Ftranspiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-schema-tools%2Ftranspiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-schema-tools%2Ftranspiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-schema-tools%2Ftranspiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/json-schema-tools","download_url":"https://codeload.github.com/json-schema-tools/transpiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-schema-tools%2Ftranspiler/sbom","scorecard":{"id":538811,"data":{"date":"2025-08-11","repo":{"name":"github.com/json-schema-tools/transpiler","commit":"7820572fc55962f2b27ee7c0489484cca471b02f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/14 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/lint.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":"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":"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":"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/lint.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/json-schema-tools/transpiler/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/json-schema-tools/transpiler/lint.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/lint.yml:16","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand 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":"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.md:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.md: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 26 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"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T07:41:12.796Z","repository_id":37826923,"created_at":"2025-08-20T07:41:12.796Z","updated_at":"2025-08-20T07:41:12.796Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","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":["json-schema-generator","jsonschema","open-api","open-rpc","typings"],"created_at":"2024-09-24T14:13:10.068Z","updated_at":"2026-04-01T23:02:38.507Z","avatar_url":"https://github.com/json-schema-tools.png","language":"TypeScript","readme":"# JSON Schema Transpiler\n\n\u003ccenter\u003e\n  \u003cspan\u003e\n    \u003cimg alt=\"CircleCI branch\" src=\"https://img.shields.io/circleci/project/github/json-schema-tools/transpiler/master.svg\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/json-schema-tools/transpiler/branch/master/graph/badge.svg\" /\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/@json-schema-tools/transpiler.svg\" /\u003e\n    \u003cimg alt=\"GitHub release\" src=\"https://img.shields.io/github/release/json-schema-tools/transpiler.svg\" /\u003e\n    \u003cimg alt=\"GitHub commits since latest release\" src=\"https://img.shields.io/github/commits-since/json-schema-tools/transpiler/latest.svg\" /\u003e\n  \u003c/span\u003e\n\u003c/center\u003e\n\nTurn your JSON Schemas into types to be used in various languages.\n\n[Try Me](https://json-schema.tools/)\n\n- Generate types for:\n  - Golang\n  - Typescript\n  - Rust\n  - Python\n- handles cycle detection\n- automatically determines references\n- includes documentation annotations for easy documentation generation with native language tools.\n- minimal dependencies (wip)\n- Creates 1 type alias per 1 schema\n- Autogenerated deterministic titles where missing\n- Autoreferencer (removes duplication)\n- Code is synchronous - no IO keeps it lean and fast\n- [Convert schema to types in browser too!](https://json-schema.tools)\n\n## Getting Started\n\n`npm install @json-schema-tools/transpiler`\n\n```typescript\nconst JsonSchemaTranspiler = require(\"@json-schema-tools/transpiler\").default;\n\nconst mySchema = {\n  \"title\": \"PlowAnimals\",\n  \"description\": \"an array of animals that are good at pulling things\",\n  \"type\": \"array\",\n  \"items\": {\n    \"oneOf\": [\n      { \"title\": \"Horse\" },\n      { \"title\": \"Donkey\" },\n      { \"title\": \"Elephant\" },\n    ]\n  }\n};\n\nconst transpiler = new JsonSchemaTranspiler(mySchema);\n\nconsole.log(transpiler.toTypescript());\nconsole.log(transpiler.toRust());\nconsole.log(transpiler.to(\"go\")); // same thing, different form/interface\nconsole.log(transpiler.to(\"python\")); // works with shorthand of the language aswell (py or python)\n```\n\n## Testing\n\n### Generate a test case\n\n`npm run generateTest`\n\noutputs:\n\n```\n\u003e @json-schema-tools/transpiler@0.0.0-development generateTest /Users/zb/Code/json-schema-tools/transpiler\n\u003e tsc \u0026\u0026 node ./build/integration-tests/generator.js\n\n? What is the name of the test schema? type-as-array\n? Enter a url to a JSON Schema, or press enter to get an empty one? false\nDetecting languages...\nFound 4 languages: go, py, rs, ts\n\n\nWriting files...\nAll done\n```\n\nEdit schema if necessary, and run `npm test`. Update expected results as needed.\n\n### Contributing\n\nHow to contribute, build and release are outlined in [CONTRIBUTING.md](CONTRIBUTING.md), [BUILDING.md](BUILDING.md) and [RELEASING.md](RELEASING.md) respectively. Commits in this repository follow the [CONVENTIONAL_COMMITS.md](CONVENTIONAL_COMMITS.md) specification.\n","funding_links":["https://github.com/sponsors/belfordz","https://opencollective.com/zachary-belford"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjson-schema-tools%2Ftranspiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjson-schema-tools%2Ftranspiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjson-schema-tools%2Ftranspiler/lists"}