{"id":21638054,"url":"https://github.com/purecloudlabs/json-schema-designer","last_synced_at":"2025-12-12T04:27:46.898Z","repository":{"id":41960758,"uuid":"140760592","full_name":"purecloudlabs/json-schema-designer","owner":"purecloudlabs","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-03T06:34:16.000Z","size":5493,"stargazers_count":6,"open_issues_count":14,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T09:15:18.799Z","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/purecloudlabs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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-07-12T20:16:20.000Z","updated_at":"2025-01-03T06:34:19.000Z","dependencies_parsed_at":"2025-01-03T07:26:35.879Z","dependency_job_id":"b52c1816-6953-4c1c-804a-bbe089b97ccc","html_url":"https://github.com/purecloudlabs/json-schema-designer","commit_stats":null,"previous_names":["pmoaddel/json-schema-designer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fjson-schema-designer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fjson-schema-designer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fjson-schema-designer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fjson-schema-designer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purecloudlabs","download_url":"https://codeload.github.com/purecloudlabs/json-schema-designer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442280,"owners_count":21104145,"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":[],"created_at":"2024-11-25T04:08:02.566Z","updated_at":"2025-12-12T04:27:41.878Z","avatar_url":"https://github.com/purecloudlabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D\u0026colorA=16161d\u0026style=flat-square)\n\n# JSON Schema Designer\n\nThe JSON Schema Designer is a web component that allows easy JSON Schema creation and configuration with a GUI point and click interface.\n\n## Installation\n- Run `npm install json-schema-designer --save`\n- Put a script tag similar to this `\u003cscript src='node_modules/json-schema-designer/dist/jsonschemadesigner.js'\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use the element anywhere in your template, JSX, html etc\n\n## Basic Usage\n\n### Properties\n* inputschema (optional) - an object containing the JSON Schema to load into the designer.\n* inputtranslation (optional) - an object containing translations for the strings within the designer.\n* viewmode (optional) - the view mode of the designer. options are \"tabs\", \"columns\" and \"designerOnly\" (default)\n* datatypes (optional) - list of datatypes that can be selected for each item except for root. default: ['string', 'number', 'integer', 'object', 'array', 'boolean', 'null', '$ref']\n* usedefinitions (optional) - boolean value that allows or disallows the adding of definitions to the json schema. (default: true)\n\nNote: all properties passed to the component will be stringified.\n\n```html\n\u003cjson-schema-designer\n  id=\"json-designer\"\n  viewmode=\"designerOnly\"\n  inputschema={{schema}}\n  inputtranslations={{translations}}\n  datatypes={{datatypes}}\n  usedefinitions=\"true\"\u003e\n\u003c/json-schema-designer\u003e\n```\n\n### Methods\n\n* exportSchema - returns the stringified JSON object of the configured JSON Schema.\n\nExample Usage:\n```javascript\nlet schemaDesigner = document.querySelector('#json-designer')\nlet jsonSchema = JSON.parse(schemaDesigner.exportSchema())\n```\n\n\n## Advanced Usage\n\nTo add your own translations to the designer, pass in a translations object with the following format:\n\n```javascript\n{\n  \"json-schema-designer\": {\n    \"schema\": \"Schema\",\n    \"definitions\": \"Definitions\",\n    \"add-definition\": \"Add Definition\"\n    ...\n  }\n}\n```\nOnly translation found inside of the \"json-schema-designer\" key will be used.\n\nA list of all translatable strings can be found in  `src/global/i18n.ts`\n\n## References\n\nhttps://json-schema.org/\n\nhttps://stenciljs.com/docs/introduction/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurecloudlabs%2Fjson-schema-designer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurecloudlabs%2Fjson-schema-designer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurecloudlabs%2Fjson-schema-designer/lists"}