{"id":19880935,"url":"https://github.com/gridaco/schema","last_synced_at":"2025-10-06T10:32:13.015Z","repository":{"id":71611654,"uuid":"298018412","full_name":"gridaco/schema","owner":"gridaco","description":"Visual data IDE \u0026 Modules","archived":false,"fork":false,"pushed_at":"2023-02-11T16:44:12.000Z","size":2083,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-23T00:19:11.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","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/gridaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-09-23T15:45:14.000Z","updated_at":"2024-05-02T11:59:14.000Z","dependencies_parsed_at":"2023-05-12T17:30:43.239Z","dependency_job_id":null,"html_url":"https://github.com/gridaco/schema","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.03448275862068961,"last_synced_commit":"3791dcee77301f463486ac7b6f19793765b9f060"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fschema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fschema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fschema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gridaco%2Fschema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gridaco","download_url":"https://codeload.github.com/gridaco/schema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235519884,"owners_count":19003201,"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-12T17:12:50.205Z","updated_at":"2025-10-06T10:32:07.590Z","avatar_url":"https://github.com/gridaco.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# schema\n\nschema engine \u0026amp; mock data provider\n\n## Editor\n\n## Usage\n\n```bash\nyarn add @grida/schema\n```\n\n```ts\nimport { Schema } from \"@grida/schema\";\n\nconst schema = new Schema({\n  type: \"object\",\n  properties: {\n    name: {\n      type: \"string\",\n    },\n    age: {\n      type: \"number\",\n    },\n  },\n});\n\nschema.mock(); // { name: 'string', age: 0 }\n\nschema.validate({ name: \"string\", age: 0 }); // true\n```\n\n```tsx\n// React Renderer\nimport { Schema } from \"@grida/schema\";\nimport SchemaView, { SchemaChangeEvent } from \"@grida/schema-react\";\n\nconst schema = new Schema({\n  type: \"object\",\n  properties: {\n    name: {\n      type: \"string\",\n    },\n    age: {\n      type: \"number\",\n      required: true,\n      label: \"Age\",\n      description: \"Age of the person\",\n    },\n  },\n});\n\nfunction Form() {\n  const onChange = (e: SchemaChangeEvent, s: Schema, o: object) =\u003e {\n    // schema is updated\n  };\n\n  return \u003cSchemaView schema={schema} onChange={} /\u003e;\n}\n```\n\n## Related projects\n\n- [CoLI](https://github.com/gridaco/coli)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridaco%2Fschema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgridaco%2Fschema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgridaco%2Fschema/lists"}