{"id":17042633,"url":"https://github.com/fdietze/formidable","last_synced_at":"2025-08-30T10:41:12.243Z","repository":{"id":54700968,"uuid":"478333453","full_name":"fdietze/formidable","owner":"fdietze","description":"Automatic Form Derivation for Outwatch","archived":false,"fork":false,"pushed_at":"2025-08-11T12:30:00.000Z","size":17089,"stargazers_count":5,"open_issues_count":15,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-25T02:39:40.608Z","etag":null,"topics":["outwatch","typeclass-derivation","typeclasses"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/fdietze.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}},"created_at":"2022-04-05T23:30:24.000Z","updated_at":"2025-06-23T09:28:44.000Z","dependencies_parsed_at":"2023-02-12T10:55:13.323Z","dependency_job_id":"f91edbc4-656c-4f36-ba6f-d22c8837f907","html_url":"https://github.com/fdietze/formidable","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/fdietze/formidable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdietze%2Fformidable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdietze%2Fformidable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdietze%2Fformidable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdietze%2Fformidable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdietze","download_url":"https://codeload.github.com/fdietze/formidable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdietze%2Fformidable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272013571,"owners_count":24858475,"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-25T02:00:12.092Z","response_time":1107,"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":["outwatch","typeclass-derivation","typeclasses"],"created_at":"2024-10-14T09:18:07.034Z","updated_at":"2025-08-30T10:41:12.190Z","avatar_url":"https://github.com/fdietze.png","language":"Scala","readme":"# Formidable\n\nGenerates reactive HTML forms directly from type definitions. These forms can be used with ScalaJS and [Outwatch](github.com/outwatch/outwatch) and the generated HTML/CSS is fully customizable. Scala 2.13 and 3 are supported. Here's a [Demo](https://fdietze.github.io/formidable) and it's [Code](demo/src/main/scala/Main.scala).\n\n```scala\nlibraryDependencies += \"com.github.fdietze\" %%% \"formidable\" % \"\u003cversion\u003e\"\n```\n\n```scala\nimport outwatch._\nimport outwatch.dsl._\nimport colibri.reactive._\n\nimport formidable._\n\ncase class Person(name: String, age: Option[Int])\n\nval state:Var[Person] = Form.state[Person]\n\ndiv(\n  Form[Person].render(state),\n  div(state.map(_.toString)),\n)\n```\n\nFormidable defines a typeclass [`Form[T]`](formidable/src/main/scala/Form.scala) with many default instances:\n- Primitives: `Int`, `Double`, `Long`, `String`, `Boolean`\n- `Option[T]`\n- `Seq[T]`, `Vector[T]`, `List[T]`\n- sealed traits\n- tuples\n- case classes\n- recursive types\n- generic types\n\nAutomatic derivation is achieved using [Magnolia](https://github.com/softwaremill/magnolia).\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdietze%2Fformidable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdietze%2Fformidable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdietze%2Fformidable/lists"}