{"id":15418164,"url":"https://github.com/asklar/csx","last_synced_at":"2026-04-28T23:35:55.466Z","repository":{"id":111472247,"uuid":"199062455","full_name":"asklar/CSX","owner":"asklar","description":"CSX Compiler","archived":false,"fork":false,"pushed_at":"2019-08-07T17:14:34.000Z","size":4552,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T17:31:02.857Z","etag":null,"topics":["csharp","csx","react","react-native","reactive","reactive-programming","uap","windows","xaml","xaml-winrt"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/asklar.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":"2019-07-26T18:22:02.000Z","updated_at":"2024-03-14T17:03:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"69631c5b-2fe5-4113-b86d-70670fd74132","html_url":"https://github.com/asklar/CSX","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"d5aa8dd4c3fed0f16d26fc8a2f8d105332df56c6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asklar/CSX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FCSX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FCSX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FCSX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FCSX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asklar","download_url":"https://codeload.github.com/asklar/CSX/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asklar%2FCSX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32404340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["csharp","csx","react","react-native","reactive","reactive-programming","uap","windows","xaml","xaml-winrt"],"created_at":"2024-10-01T17:19:37.079Z","updated_at":"2026-04-28T23:35:55.430Z","avatar_url":"https://github.com/asklar.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSX Compiler\r\n\r\n### Background\r\nReact JS allows embedding html markup in JS (JSX). \r\n\r\n### Goal\r\nCan we offer something similar: _embed **XAML** markup inside of **C#**_\r\n\r\n\r\n* I built a compiler frontend that translates the mix of C#+XAML markup into pure C#\r\n* It’s type-safe and reflects on the types of properties/events/… to emit the right kind of code.\r\n  * For example if you say `\u003cTextBlock FontSize=\"24\"\u003e` it knows that the 24 needs to be interpreted as an `int`, not a `string`.\r\n* It allows repeater-type scenarios inside a container and allows naming objects so that they can later be referenced:\r\n```xml\r\n\u003cStackPanel\r\n    Id=\"taskList\"\r\n    Grid.Row=\"1\"\r\n    Grid.Column=\"0\"\r\n    Grid.ColumnSpan=\"2\"\u003e\r\n    {\r\n        return person.Tasks.Select(todo =\u003e CreateToDoItem(todo));\r\n    }\r\n\u003c/StackPanel\u003e\r\n\u003cGrid.PointerReleased Handler={\r\n        completionRateTextBlock.Opacity = 1.0;\r\n        taskList.Visibility = taskList.Visibility == Visibility.Collapsed ? \r\n                              Visibility.Visible : Visibility.Collapsed;\r\n    }/\u003e\r\n```\r\n \r\nI have a test .netcore3 app using WinForms-hosting-XAML and I’ve integrated the CSX compiler as an MSBuild target rule to convert the CSX into CS.\r\n\r\nWith this you can modify the CSX file, F5 to rebuild \u0026 launch 😊\r\n\u003cimg src=\"/CSX-Demo.gif\"/\u003e\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasklar%2Fcsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasklar%2Fcsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasklar%2Fcsx/lists"}