{"id":20170317,"url":"https://github.com/marcodpt/form","last_synced_at":"2026-04-20T13:04:58.824Z","repository":{"id":111252205,"uuid":"380010734","full_name":"marcodpt/form","owner":"marcodpt","description":"A form component based on validator","archived":false,"fork":false,"pushed_at":"2022-04-04T19:59:50.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T13:41:29.877Z","etag":null,"topics":["bootstrap","component","form","form-validation","hyperapp","json-schema"],"latest_commit_sha":null,"homepage":"https://marcodpt.github.io/component/?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmarcodpt%2Fform%2Fsample.js","language":"JavaScript","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/marcodpt.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-24T17:59:51.000Z","updated_at":"2022-04-04T19:59:34.000Z","dependencies_parsed_at":"2023-03-11T09:15:46.035Z","dependency_job_id":null,"html_url":"https://github.com/marcodpt/form","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/marcodpt/form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcodpt","download_url":"https://codeload.github.com/marcodpt/form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bootstrap","component","form","form-validation","hyperapp","json-schema"],"created_at":"2024-11-14T01:18:17.455Z","updated_at":"2026-04-20T13:04:58.800Z","avatar_url":"https://github.com/marcodpt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# form\n\u003e A form [component](https://github.com/marcodpt/component/) based on\n[validator](https://github.com/marcodpt/validator/)\n\n[Live demo](https://marcodpt.github.io/component/?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmarcodpt%2Fform%2Fsample.js)\n\n[Tests](https://marcodpt.github.io/component/tests.html?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmarcodpt%2Fform%2Ftests.js)\n\n## Params\n - object `schema`: json schema for the form, must be an object!\n - string `alert`: alert to enclose schema description, like `success`,\n`danger`, `warning`, `info`, etc\n - array `messages`: An array of form information, itens are object with the\nfollowing properties:\n   - string `alert`: alert of the message, default `info`\n   - string `data`: text of the message\n   - boolean `close`: should it have a close button?\n - function `back(messages)`: go back `action`\n - function `submit(data, messages)`: submit `action`\n - function `watch(data, messages)`: watch `action`\n`action` is a function that return `null` or a new `object` if you want to\ncreate a new form, or a new array of `messages` if you want to update messages\n\n## Update\n - object `model`: A new data `model` to the form!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodpt%2Fform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcodpt%2Fform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodpt%2Fform/lists"}