{"id":13686700,"url":"https://github.com/fable-hub/Feliz","last_synced_at":"2025-05-01T09:32:29.557Z","repository":{"id":37396925,"uuid":"197969166","full_name":"fable-hub/Feliz","owner":"fable-hub","description":"A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness","archived":false,"fork":false,"pushed_at":"2025-04-29T09:01:20.000Z","size":11970,"stargazers_count":565,"open_issues_count":73,"forks_count":86,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-30T06:42:08.115Z","etag":null,"topics":["dsl","elmish-applications","fable","feliz","fsharp","html","react","type-safe"],"latest_commit_sha":null,"homepage":"https://zaid-ajaj.github.io/Feliz/","language":"F#","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/fable-hub.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":"2019-07-20T18:43:34.000Z","updated_at":"2025-04-28T12:29:21.000Z","dependencies_parsed_at":"2024-08-16T16:27:46.827Z","dependency_job_id":"326ba4fc-33eb-4f1d-a727-ff9fc1e49875","html_url":"https://github.com/fable-hub/Feliz","commit_stats":{"total_commits":748,"total_committers":84,"mean_commits":8.904761904761905,"dds":0.517379679144385,"last_synced_commit":"c927bfc9a896496d3befa5195f95ded31fb5fd58"},"previous_names":["fable-hub/feliz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-hub%2FFeliz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-hub%2FFeliz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-hub%2FFeliz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-hub%2FFeliz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fable-hub","download_url":"https://codeload.github.com/fable-hub/Feliz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251852895,"owners_count":21654480,"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":["dsl","elmish-applications","fable","feliz","fsharp","html","react","type-safe"],"created_at":"2024-08-02T15:00:38.125Z","updated_at":"2025-05-01T09:32:29.550Z","avatar_url":"https://github.com/fable-hub.png","language":"F#","funding_links":[],"categories":["F#","F# #"],"sub_categories":[],"readme":"# Feliz [![Nuget](https://img.shields.io/nuget/v/Feliz.svg?maxAge=0\u0026colorB=brightgreen)](https://www.nuget.org/packages/Feliz) [![Build status](https://ci.appveyor.com/api/projects/status/yqinhayy1pgfcubp/branch/master?svg=true)](https://ci.appveyor.com/project/Zaid-Ajaj/feliz/branch/master)\n\nA fresh retake of the React API in Fable, optimized for happiness.\n\nHere is how it looks like:\n\n```fs\nmodule App\n\nopen Feliz\n\n[\u003cReactComponent\u003e]\nlet Counter() =\n    let (count, setCount) = React.useState(0)\n    Html.div [\n        Html.button [\n            prop.style [ style.marginRight 5 ]\n            prop.onClick (fun _ -\u003e setCount(count + 1))\n            prop.text \"Increment\"\n        ]\n\n        Html.button [\n            prop.style [ style.marginLeft 5 ]\n            prop.onClick (fun _ -\u003e setCount(count - 1))\n            prop.text \"Decrement\"\n        ]\n\n        Html.h1 count\n    ]\n\nopen Browser.Dom\n\nlet root = ReactDOM.createRoot(document.getElementById \"root\")\nroot.render(Counter())\n```\n\n### Features\n\n - Consistent, lightweight **formatting**: no more awkward indentation using two lists for every element.\n - Discoverable **attributes** with no more functions, `Html` attributes or css properties globally available so they are easy to find.\n - Proper **documentation**: each attribute and CSS property\n - Full **React API** support: Feliz aims to support the React API for building components using hooks, context and more.\n - Fully **Type-safe**: no more `Margin of obj` but instead utilizing a plethora of overloaded functions to account for the overloaded nature of `CSS` attributes, covering 90%+ of the CSS styles, values and properties.\n - Included **color list** of most commonly used `Html` colors in the `colors` module.\n - **Compatible** with the current React DSL used in applications.\n - **Compatible** with [Femto](https://github.com/Zaid-Ajaj/Femto).\n - Approximately **Zero** bundle size increase where everything function body is erased from the generated javascript unless you actually use said function.\n\n### Quick Start\n\n```\ndotnet new -i Feliz.Template\ndotnet new feliz -n MyProject\ncd MyProject\nnpm install\nnpm start\n```\n\n### Documentation\n\nFeliz has extensive documentation at [https://fable-hub.github.io/Feliz/](https://fable-hub.github.io/Feliz/) with live examples along side code samples, check them out and if you have any question, let us know!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-hub%2FFeliz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffable-hub%2FFeliz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-hub%2FFeliz/lists"}