{"id":20463108,"url":"https://github.com/syall/json-synthesizer","last_synced_at":"2026-05-18T15:36:59.293Z","repository":{"id":57285402,"uuid":"314261490","full_name":"syall/json-synthesizer","owner":"syall","description":"Program Synthesizer from JSON data sources that produces Transpilable Typed JSON.","archived":false,"fork":false,"pushed_at":"2020-12-10T04:43:19.000Z","size":1446,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T00:06:38.058Z","etag":null,"topics":["data-structure","json","json-synthesizer","program-synthesis","version-space-algebra"],"latest_commit_sha":null,"homepage":"https://json-synthesizer.syall.work","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-19T13:47:43.000Z","updated_at":"2022-04-03T13:31:33.000Z","dependencies_parsed_at":"2022-09-07T18:53:31.579Z","dependency_job_id":null,"html_url":"https://github.com/syall/json-synthesizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syall%2Fjson-synthesizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syall%2Fjson-synthesizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syall%2Fjson-synthesizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syall%2Fjson-synthesizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syall","download_url":"https://codeload.github.com/syall/json-synthesizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023206,"owners_count":20059297,"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","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":["data-structure","json","json-synthesizer","program-synthesis","version-space-algebra"],"created_at":"2024-11-15T13:09:21.290Z","updated_at":"2026-05-18T15:36:54.271Z","avatar_url":"https://github.com/syall.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-synthesizer\n\n## Overview\n\nProgram Synthesizer from JSON data sources that produces Transpilable Typed JSON.\n\n## Usage\n\nInstall the module using `npm`:\n\n```shell\nnpm install json-synthesizer\n```\n\nTo use the synthesizer in [node](https://nodejs.org/):\n\n```javascript\n// Import synthesize function\nconst synthesize = require('json-synthesizer');\n\n// Define High Level Specification\nconst specification = {\n  inputOutputExamples: [\n    {\n      source: 'tag',\n      input: {\n        // Input JSON\n      },\n      output: {\n        // Restructured Transformed Input\n      }\n    },\n    // ...\n  ],\n  transforms: [\n    {\n      source: 'tag',\n      transform: function customTransform(json) {\n        // Transform JSON\n        return transformedJson;\n      }\n    },\n    // ...\n  ]\n};\n\n// Output Synthesized Typed JSON String\nconsole.log(synthesize(specification));\n```\n\n## Exports\n\n```javascript\n// Default Export\nmodule.exports = synthesize;\n\n// VSA Exports\nmodule.exports.vsa = {\n  convertJsonToTypedMap,\n  convertTypedMapToTypedJson,\n  intersects: {\n    intersectTypedMaps,\n    intersectTypes\n  },\n  mapTransformsOnJson,\n  restructureTypedMaps,\n  unions: {\n    unionTypedMaps,\n    unionTypes\n  }\n};\n\n// Util Exports\nmodule.exports.util = {\n  isType: {\n    isArray,\n    isNull,\n    isObject,\n    singleValue\n  },\n  str\n};\n```\n\n## Documentation\n\nThe main webpage for json-synthesizer can be found at [here](https://json-synthesizer.syall.work).\n\n- Design Documentation is available [here](https://json-synthesizer.syall.work/DESIGN).\n- JSDoc Documentation is available [here](https://json-synthesizer.syall.work/docs).\n- GitHub Repository is available [here](https://github.com/syall/json-synthesizer).\n- NPM Package is available [here](https://www.npmjs.com/package/json-synthesizer).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyall%2Fjson-synthesizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyall%2Fjson-synthesizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyall%2Fjson-synthesizer/lists"}