{"id":42667872,"url":"https://github.com/oboard/mbx-compiler","last_synced_at":"2026-01-29T10:13:13.388Z","repository":{"id":285551002,"uuid":"956725777","full_name":"oboard/mbx-compiler","owner":"oboard","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-27T08:37:59.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T09:28:35.127Z","etag":null,"topics":["compiler","moonbit"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oboard.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":"2025-03-28T18:47:57.000Z","updated_at":"2025-04-27T08:38:03.000Z","dependencies_parsed_at":"2025-04-01T11:43:45.038Z","dependency_job_id":null,"html_url":"https://github.com/oboard/mbx-compiler","commit_stats":null,"previous_names":["oboard/mbx-compiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oboard/mbx-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oboard%2Fmbx-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oboard%2Fmbx-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oboard%2Fmbx-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oboard%2Fmbx-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oboard","download_url":"https://codeload.github.com/oboard/mbx-compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oboard%2Fmbx-compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28875450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T09:47:23.353Z","status":"ssl_error","status_checked_at":"2026-01-29T09:47:19.357Z","response_time":59,"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":["compiler","moonbit"],"created_at":"2026-01-29T10:13:12.648Z","updated_at":"2026-01-29T10:13:13.376Z","avatar_url":"https://github.com/oboard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oboard/mbx-compiler\n\n\n## Clone\n```bash\ngit clone --recursive https://github.com/oboard/mbx-compiler\n```\n\n## Example\n### Source File\n```moonbit\n///|\nenum AnotherMessage {}\n\n///|\npub fn another_app() -\u003e @html.Html[AnotherMessage] {\n    let count = 5\n    let the_section = \u003csection x=\"{literal\\\"}\" y={ count.to_string() } /\u003e\n    let compare_result = count \u003c 0 || count \u003e 42\n    let part = \u003ccontainer\u003e\n        \u003carticle data={ count.to_string() }\u003e\n            Hello { if compare_result { \"Moon\" } else { \"Bit\" } }\n            language{\" \"}\n            \u003cspan /\u003e\n        \u003c/article\u003e\n        { compare_result.to_string() }\n        \u003carticle /\u003e\n        Here are some words...\n    \u003c/container\u003e\n    let _ = false\n    part\n}\n```\n\n### Run\n```bash\nts-node main.ts\n```\n\n### Result\n\n```moonbit\n///|\nenum AnotherMessage {}\n\n\n///|\npub fn another_app() -\u003e @html.Html[AnotherMessage] {\n  let count = 5\n  let the_section = @html.node(\n    \"section\",\n    [\n      @html.attribute(\"x\", \"{literal\\\"}\"),\n      @html.attribute(\"y\", count.to_string()),\n    ],\n    [],\n  )\n  let compare_result = count \u003c 0 || count \u003e 42\n  let part = @html.node(\"container\", [], [\n    @html.node(\"article\", [@html.attribute(\"data\", count.to_string())], [\n      @html.text(\"Hello\"),\n      @html.text(if compare_result { \"Moon\" } else { \"Bit\" }),\n      @html.text(\"language\"),\n      @html.text(\" \"),\n      @html.node(\"span\", [], []),\n    ]),\n    @html.text(compare_result.to_string()),\n    @html.node(\"article\", [], []),\n    @html.text(\"Here are some words...\"),\n  ])\n  let _ = false\n  part\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foboard%2Fmbx-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foboard%2Fmbx-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foboard%2Fmbx-compiler/lists"}