{"id":15445067,"url":"https://github.com/hachibeedi/mayoiga","last_synced_at":"2025-09-02T17:18:34.017Z","repository":{"id":33112521,"uuid":"152191310","full_name":"hachibeeDI/mayoiga","owner":"hachibeeDI","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-24T01:22:10.000Z","size":797,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T13:38:47.873Z","etag":null,"topics":["form","react","react-hooks","react-hooks-form"],"latest_commit_sha":null,"homepage":"https://hachibeedi.github.io/mayoiga/","language":"TypeScript","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/hachibeeDI.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-09T05:13:51.000Z","updated_at":"2025-03-24T01:22:11.000Z","dependencies_parsed_at":"2025-03-24T02:24:30.760Z","dependency_job_id":"4d66e108-01c9-4d3c-813c-d28093877fcf","html_url":"https://github.com/hachibeeDI/mayoiga","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/hachibeeDI/mayoiga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachibeeDI%2Fmayoiga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachibeeDI%2Fmayoiga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachibeeDI%2Fmayoiga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachibeeDI%2Fmayoiga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hachibeeDI","download_url":"https://codeload.github.com/hachibeeDI/mayoiga/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachibeeDI%2Fmayoiga/sbom","scorecard":{"id":452045,"data":{"date":"2025-08-11","repo":{"name":"github.com/hachibeeDI/mayoiga","commit":"22730ac7ba4af867dd33dd171220564f57f42f9e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/checker.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checker.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/hachibeeDI/mayoiga/checker.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checker.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/hachibeeDI/mayoiga/checker.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checker.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/hachibeeDI/mayoiga/checker.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checker.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/hachibeeDI/mayoiga/checker.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/checker.yml:33","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T08:25:58.988Z","repository_id":33112521,"created_at":"2025-08-19T08:25:58.988Z","updated_at":"2025-08-19T08:25:58.988Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273318859,"owners_count":25084285,"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-09-02T02:00:09.530Z","response_time":77,"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":["form","react","react-hooks","react-hooks-form"],"created_at":"2024-10-01T19:43:55.546Z","updated_at":"2025-09-02T17:18:33.983Z","avatar_url":"https://github.com/hachibeeDI.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Lint Check](https://github.com/hachibeeDI/mayoiga/actions/workflows/checker.yml/badge.svg)](https://github.com/hachibeeDI/mayoiga/actions/workflows/checker.yml)\n\n# Mayoiga\n\nFully typed form state management system for React.\n\nNo magic, ref free. It's built for complicated form state management.\n\n## Feature\n\nSupport strong typed form state.\nEvery form should have two kind of types:\n\n1. form state before validation\n2. state after validation succeed\n\ni.e. before validation, a field named \"bio\" might be nullable (`{bio: null | string}`) but it must not empty to submit (`{bio: zod.string().nonempty()}`).\n\nAlso considers:\n\n- No ref, DOM free\n- High performance, high tuning possibility\n  - Mayoiga uses \"external state and selector\" pattern. You can built your own form if you known what you would like to\n\n## Features does not support\n\n- Short coding\n\nIt's not a library for short coding or copy and paste template.\n\n\n### Quickstart\n\n```typeScript\n\nconst schema = zod.object({\n  name: zod.string(),\n  age: zod\n    .string()\n    .transform((val) =\u003e Number(val))\n    .refine((val) =\u003e (Number.isNaN(val) ? 0 : val)),\n  marked: zod.literal(true),\n});\n\ntype BeforeValidation = {\n  name: string;\n  age: string;\n  marked: boolean;\n};\n\nconst {\n  components: {Field, Slicer},\n  handleSubmit,\n} = createFormHook({name:'test', age: '42', marked: false} as BeforeValidation, schema);\n\nfunction App() {\n  const submitHandler = handleSubmit((e) =\u003e (result) =\u003e {\n    if (result.error) {\n      return alert('Err!');\n    }\n    console.log(result.data); /*\n      {\n        name: 'test',\n        age: 42, \u003c- age is typed \"number\" before validation because of definition\n        marked: true, \u003c- have to be \"true\", not as boolean. it's power of zod\n      }\n    */\n  });\n\n  return (\n    \u003cform onSubmit={handleSubmit(onSubmit)}\u003e\n      \u003cField name=\"name\"\u003e{(tool) =\u003e \u003cinput {...tool} /\u003e}\u003c/Field\u003e\n      \u003cField name=\"age\"\u003e{(tool) =\u003e \u003cinput {...tool} /\u003e}\u003c/Field\u003e\n      \u003cField name=\"marked\"\u003e{(tool) =\u003e \u003cinput {...tool} /\u003e}\u003c/Field\u003e\n      \u003cinput type=\"submit\" /\u003e\n    \u003c/form\u003e\n  );\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhachibeedi%2Fmayoiga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhachibeedi%2Fmayoiga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhachibeedi%2Fmayoiga/lists"}