{"id":38485121,"url":"https://github.com/ontech7/mini-transpiler","last_synced_at":"2026-01-17T05:34:52.066Z","repository":{"id":263456768,"uuid":"890477957","full_name":"ontech7/mini-transpiler","owner":"ontech7","description":"A transpiler that converts JSX code into nodes compatible with @9elt/miniframe","archived":false,"fork":false,"pushed_at":"2024-11-18T17:10:40.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-18T17:45:42.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ontech7.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":"2024-11-18T16:28:18.000Z","updated_at":"2024-11-18T17:10:44.000Z","dependencies_parsed_at":"2024-11-18T17:46:08.230Z","dependency_job_id":"47bd81aa-1896-41c7-b7bf-1f6c250a34ab","html_url":"https://github.com/ontech7/mini-transpiler","commit_stats":null,"previous_names":["ontech7/mini-transpiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ontech7/mini-transpiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontech7%2Fmini-transpiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontech7%2Fmini-transpiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontech7%2Fmini-transpiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontech7%2Fmini-transpiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ontech7","download_url":"https://codeload.github.com/ontech7/mini-transpiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ontech7%2Fmini-transpiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28500153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-17T05:34:51.240Z","updated_at":"2026-01-17T05:34:52.057Z","avatar_url":"https://github.com/ontech7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mini-transpiler\n\nA transpiler for [@9elt/miniframe](https://github.com/9elt/miniframe)\n\n## usage\n\n```\nnpm i --save-dev @9elt/mini-transpiler\n```\n\nthen add in your `tsconfig.json`:\n\n```json\n{\n  \"compilerOptions\": {\n    \"jsx\": \"react-jsx\",\n    \"jsxImportSource\": \"@9elt/mini-transpiler\"\n  }\n}\n```\n\n## example\n\nA simple counter that stops at 10\n\n```js\nimport { createNode, State } from \"@9elt/miniframe\";\n\nconst counter = new State(0);\n\nfunction Root() {\n  return (\n    \u003cdiv id=\"root\" style={{ textAlign: \"center\" }}\u003e\n      \u003cp\u003ecurrent count: {counter}\u003c/p\u003e\n      \u003cp\n        style={{\n          color: counter.as((c) =\u003e (c \u003c 10 ? \"green\" : \"red\")),\n        }}\n      \u003e\n        {counter.as((c) =\u003e (c \u003c 10 ? \"keep going\" : \"stop!\"))}\n      \u003c/p\u003e\n      \u003cbutton\n        onclick={() =\u003e counter.value++}\n        disabled={counter.as((c) =\u003e c === 10)}\n      \u003e\n        increment\n      \u003c/button\u003e\n    \u003c/div\u003e\n  );\n}\n\ndocument.body.appendChild(createNode(Root()));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fontech7%2Fmini-transpiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fontech7%2Fmini-transpiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fontech7%2Fmini-transpiler/lists"}