{"id":20604795,"url":"https://github.com/themost-framework/form-inspector","last_synced_at":"2025-08-22T07:34:34.839Z","repository":{"id":57166048,"uuid":"423966711","full_name":"themost-framework/form-inspector","owner":"themost-framework","description":"MOST Web Framework JSON forms-to-model generator","archived":false,"fork":false,"pushed_at":"2021-11-11T14:57:26.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-08T23:17:10.306Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/themost-framework.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}},"created_at":"2021-11-02T19:05:03.000Z","updated_at":"2021-11-11T14:38:39.000Z","dependencies_parsed_at":"2022-08-30T15:10:18.077Z","dependency_job_id":null,"html_url":"https://github.com/themost-framework/form-inspector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/themost-framework/form-inspector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themost-framework%2Fform-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themost-framework%2Fform-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themost-framework%2Fform-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themost-framework%2Fform-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themost-framework","download_url":"https://codeload.github.com/themost-framework/form-inspector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themost-framework%2Fform-inspector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269666852,"owners_count":24456466,"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-10T02:00:08.965Z","response_time":71,"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-11-16T09:24:53.033Z","updated_at":"2025-08-12T02:42:48.664Z","avatar_url":"https://github.com/themost-framework.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @themost/form-inspector\nMOST Web Framework JSON forms-to-model generator\n\n## Installation\n\n    npm i @themost/form-inspector\n\n## Usage\n\nUse `JsonFormInspector` to extract a model definition based on a given JSON form:\n\n    {\n        \"properties\": {\n            \"version\": \"1.0\",\n            \"name\": \"PersonForm\"\n        },\n        \"components\": [\n            {\n                \"label\": \"First Name\",\n                \"tableView\": true,\n                \"key\": \"givenName\",\n                \"properties\": {\n                    \"type\": \"Text\"\n                },\n                \"type\": \"textfield\",\n                \"input\": true\n            },\n            {\n                \"label\": \"Last Name\",\n                \"tableView\": true,\n                \"validate\": {\n                    \"required\": true,\n                    \"maxLength\": 128\n                },\n                \"key\": \"lastName\",\n                \"type\": \"textfield\",\n                \"input\": true\n            }\n        ]\n    }\n\nand inspect model schema:\n\n    import { JsonFormInspector, DataModelSchema } from '@themost/form-inspector';\n    const model = inspector.inspect(form1);\n\nwith the following result:\n\n    {\n        \"name\": \"Example\",\n        \"version\": \"0.2\",\n        \"abstract\": false,\n        \"hidden\": true,\n        \"caching\": \"none\",\n        \"sealed\": false,\n        \"fields\": [\n            {\n                \"@id\": \"https://themost.io/schemas/id\",\n                \"name\": \"id\",\n                \"type\": \"Counter\",\n                \"primary\": true\n            },\n            {\n                \"@id\": \"https://themost.io/schemas/dateModified\",\n                \"name\": \"dateModified\",\n                \"type\": \"DateTime\",\n                \"readonly\": true,\n                \"value\": \"javascript:return (new Date());\",\n                \"calculation\": \"javascript:return (new Date());\"\n            },\n            {\n                \"@id\": \"https://themost.io/schemas/createdBy\",\n                \"name\": \"createdBy\",\n                \"type\": \"Integer\",\n                \"readonly\": true,\n                \"value\": \"javascript:return this.user();\"\n            },\n            {\n                \"@id\": \"https://themost.io/schemas/modifiedBy\",\n                \"name\": \"modifiedBy\",\n                \"type\": \"Integer\",\n                \"readonly\": true,\n                \"value\": \"javascript:return this.user();\",\n                \"calculation\": \"javascript:return this.user();\"\n            },\n            {\n                \"name\": \"firstName\",\n                \"title\": \"First Name\",\n                \"nullable\": true,\n                \"type\": \"Text\"\n            },\n            {\n                \"name\": \"email\",\n                \"title\": \"Email\",\n                \"nullable\": true,\n                \"type\": \"Email\"\n            },\n            {\n                \"name\": \"lastName\",\n                \"title\": \"Last Name\",\n                \"nullable\": true,\n                \"type\": \"Text\"\n            },\n            {\n                \"name\": \"phoneNumber\",\n                \"title\": \"Phone Number\",\n                \"nullable\": true,\n                \"type\": \"Text\"\n            },\n            {\n                \"name\": \"howWouldYouRateTheFormIoPlatform\",\n                \"title\": \"How would you rate the Form.io platform?\",\n                \"nullable\": true,\n                \"type\": \"Text\"\n            },\n            {\n                \"name\": \"howWasCustomerSupport\",\n                \"title\": \"How was Customer Support?\",\n                \"nullable\": true,\n                \"type\": \"Text\"\n            },\n            {\n                \"name\": \"overallExperience\",\n                \"title\": \"Overall Experience?\",\n                \"nullable\": true,\n                \"type\": \"Text\"\n            }\n        ],\n        \"constraints\": [],\n        \"eventListeners\": [],\n        \"privileges\": [\n            {\n                \"type\": \"global\",\n                \"mask\": 15\n            },\n            {\n                \"type\": \"global\",\n                \"mask\": 15,\n                \"account\": \"Administrators\"\n            }\n        ]\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemost-framework%2Fform-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemost-framework%2Fform-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemost-framework%2Fform-inspector/lists"}