{"id":15152797,"url":"https://github.com/charlypoly/json-schema-to-graphql","last_synced_at":"2025-08-17T06:33:15.230Z","repository":{"id":40307182,"uuid":"397594974","full_name":"charlypoly/json-schema-to-graphql","owner":"charlypoly","description":"JSON Schema to GraphQL lib (JS/TS)","archived":false,"fork":false,"pushed_at":"2025-08-07T00:14:06.000Z","size":210,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-09T00:24:49.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/charlypoly.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,"zenodo":null}},"created_at":"2021-08-18T12:36:55.000Z","updated_at":"2023-08-29T08:44:04.000Z","dependencies_parsed_at":"2023-01-29T06:30:53.551Z","dependency_job_id":"e2e17704-9754-46d7-adc1-fe686830d3ef","html_url":"https://github.com/charlypoly/json-schema-to-graphql","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":0.2941176470588235,"last_synced_commit":"adf1a7ed565d051ce3fc6b2b74b8cefe18ad1678"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/charlypoly/json-schema-to-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fjson-schema-to-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fjson-schema-to-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fjson-schema-to-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fjson-schema-to-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlypoly","download_url":"https://codeload.github.com/charlypoly/json-schema-to-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlypoly%2Fjson-schema-to-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270816061,"owners_count":24650748,"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-08-17T02:00:09.016Z","response_time":129,"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":"2024-09-26T16:40:17.195Z","updated_at":"2025-08-17T06:33:14.906Z","avatar_url":"https://github.com/charlypoly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Schema to GraphQL\n\n## Install\n\n```bash\nnpm install @wittydeveloper/json-schema-to-graphql\n```\n\n## Usage\n\n```ts\nimport { convert } from '@wittydeveloper/json-schema-2-graphql'\n\nconst schema: JSONSchema6 = {\n  $schema: 'http://json-schema.org/draft-06/schema#',\n  $ref: '#/definitions/Product',\n  definitions: {\n    Product: {\n      type: 'object',\n      additionalProperties: false,\n      properties: {\n        collection_ids: {\n          type: 'array',\n          items: {\n            type: 'string',\n          },\n        },\n        collections: {\n          type: 'array',\n          items: {\n            type: 'null',\n          },\n        },\n        title: {\n          type: 'string',\n        },\n        salePrice: {\n          type: 'integer',\n        },\n        objectID: {\n          type: 'string',\n        },\n        shipping: {\n          type: 'string',\n        },\n      },\n      required: ['collection_ids', 'collections', 'objectID', 'salePrice', 'title'],\n      title: 'Product',\n    },\n  },\n}\n\nconst result = convert(schema, {\n  fallbackTypes: {\n    'collections[]': 'string',\n  },\n})\n// =\u003e\n// type Product {\n//  collection_ids: [String!]!\n//  collections: [String!]!\n//  title: String!\n//  salePrice: Int!\n//  objectID: String!\n//  shipping: String\n// }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlypoly%2Fjson-schema-to-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlypoly%2Fjson-schema-to-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlypoly%2Fjson-schema-to-graphql/lists"}