{"id":47921402,"url":"https://github.com/zikojs/ziko-jsx","last_synced_at":"2026-04-06T04:01:57.298Z","repository":{"id":336033057,"uuid":"1147837824","full_name":"zikojs/ziko-jsx","owner":"zikojs","description":"JSX support for ZikoJS","archived":false,"fork":false,"pushed_at":"2026-03-01T13:15:16.000Z","size":33,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T06:36:50.239Z","etag":null,"topics":["acorn","ast","javascript","jsx","jsx-syntax","morocco","vite","zikojs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/zikojs.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-02T09:12:07.000Z","updated_at":"2026-03-13T04:49:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zikojs/ziko-jsx","commit_stats":null,"previous_names":["zakarialaoui10/ziko-jsx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zikojs/ziko-jsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikojs%2Fziko-jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikojs%2Fziko-jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikojs%2Fziko-jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikojs%2Fziko-jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zikojs","download_url":"https://codeload.github.com/zikojs/ziko-jsx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zikojs%2Fziko-jsx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31458838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["acorn","ast","javascript","jsx","jsx-syntax","morocco","vite","zikojs"],"created_at":"2026-04-04T06:07:43.818Z","updated_at":"2026-04-06T04:01:57.293Z","avatar_url":"https://github.com/zikojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ziko-jsx\n[![ziko-jsx banner](https://raw.githubusercontent.com/zikojs/.github/main/assets/banners/ziko-jsx.svg)](https://github.com/zikojs)\n\nJSX support for ZikoJS, compiling JSX components to ZikoJS at runtime—no VDOM involved.\n\n## Example\n\n### Input (JSX)\n\n```jsx\nimport {ExternalComponent} from './ExternalComponent.js'\nexport default function Hello({ text, value } = {}) {\n  return (\n    \u003cdiv class=\"parent\"\u003e\n      \u003cspan\u003ehello {text}\u003c/span\u003e\n      \u003ccustom-element\u003e\u003c/custom-element\u003e\n      \u003cExternalComponent /\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n### Output (ZikoJS)\n```js\nimport { tags } from \"ziko/domm\";\nimport {ExternalComponent} from './ExternalComponent.js'\n\nexport default function Hello({ text, value } = {}) {\n  const { div, span, custom_element } = tags;\n  return div(\n    { class: \"parent\" },\n    span(\"hello \", text),\n    custom_element(),\n    ExternalComponent()\n  );\n}\n```\n### Notes\n- JSX is syntax sugar only, it compiles directly to function calls.\n- Lowercase JSX tags are mapped to ZikoJS tag functions via `tags`\n- Custom elements (`custom-element`) are normalized to valid identifiers (`custom_element`).\n- Capitalized JSX tags are treated as components and invoked directly.\n- JSX whitespace semantics are preserved: \n    - Inline text spacing is kept (hello {text} → \"hello \", text)\n    - Layout/indentation whitespace is ignored\n\n## Install \n\n```bash\nnpm i ziko-jsx\n```\n\n## Config\n\n\n## Licence \nMIT ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikojs%2Fziko-jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzikojs%2Fziko-jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikojs%2Fziko-jsx/lists"}