{"id":15060917,"url":"https://github.com/zaid-ajaj/feliz","last_synced_at":"2025-04-13T11:37:10.383Z","repository":{"id":37396925,"uuid":"197969166","full_name":"Zaid-Ajaj/Feliz","owner":"Zaid-Ajaj","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":"2024-10-26T01:33:27.000Z","size":12096,"stargazers_count":561,"open_issues_count":72,"forks_count":86,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-06T08:01:39.630Z","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/Zaid-Ajaj.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-02-20T18:15:19.000Z","dependencies_parsed_at":"2024-08-16T16:27:46.827Z","dependency_job_id":"326ba4fc-33eb-4f1d-a727-ff9fc1e49875","html_url":"https://github.com/Zaid-Ajaj/Feliz","commit_stats":{"total_commits":748,"total_committers":84,"mean_commits":8.904761904761905,"dds":0.517379679144385,"last_synced_commit":"c927bfc9a896496d3befa5195f95ded31fb5fd58"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaid-Ajaj%2FFeliz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaid-Ajaj%2FFeliz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaid-Ajaj%2FFeliz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaid-Ajaj%2FFeliz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zaid-Ajaj","download_url":"https://codeload.github.com/Zaid-Ajaj/Feliz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248708279,"owners_count":21148960,"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-09-24T23:06:30.167Z","updated_at":"2025-04-13T11:37:10.363Z","avatar_url":"https://github.com/Zaid-Ajaj.png","language":"F#","funding_links":[],"categories":[],"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://zaid-ajaj.github.io/Feliz](https://zaid-ajaj.github.io/Feliz) with live examples along side code samples, check them out and if you have any question, let us know!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaid-ajaj%2Ffeliz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaid-ajaj%2Ffeliz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaid-ajaj%2Ffeliz/lists"}