{"id":13533369,"url":"https://github.com/rrjanbiah/react2solid","last_synced_at":"2025-10-29T09:30:19.011Z","repository":{"id":49789716,"uuid":"477003626","full_name":"rrjanbiah/react2solid","owner":"rrjanbiah","description":"ReactJS to SolidJS Converter aka Transpiler","archived":false,"fork":false,"pushed_at":"2022-04-12T00:52:40.000Z","size":2282,"stargazers_count":49,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T00:24:41.726Z","etag":null,"topics":["babel","babeljs","code-converter","converter","react","reactjs","solidjs","transpiler"],"latest_commit_sha":null,"homepage":"https://rrjanbiah.github.io/react2solid/","language":"TypeScript","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/rrjanbiah.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}},"created_at":"2022-04-02T09:10:44.000Z","updated_at":"2024-10-15T08:42:35.000Z","dependencies_parsed_at":"2022-09-24T16:13:29.504Z","dependency_job_id":null,"html_url":"https://github.com/rrjanbiah/react2solid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Freact2solid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Freact2solid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Freact2solid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrjanbiah%2Freact2solid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrjanbiah","download_url":"https://codeload.github.com/rrjanbiah/react2solid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238795478,"owners_count":19531753,"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":["babel","babeljs","code-converter","converter","react","reactjs","solidjs","transpiler"],"created_at":"2024-08-01T07:01:19.143Z","updated_at":"2025-10-29T09:30:18.463Z","avatar_url":"https://github.com/rrjanbiah.png","language":"TypeScript","readme":"\u003cimg width=\"100%\" src=\"logo.png\" alt=\"React to Solid Converter, ReactJS to SolidJS Converter, ReactJS to SolidJS Transpiler\"\u003e\n\n# ReactJS to SolidJS Converter aka Transpiler\n\nSolidJS is the framework known for its performance (based on the [js framework benchmark](https://github.com/krausest/js-framework-benchmark) project). react2solid is an attempt to create a React to Solid code converter. \n\nThis project has 5 sub-projects or modules:\n\n1. Language agnostic React to Solid transformer rules and test cases\n1. ReactJS to SolidJS transpiler - JavaScript frontend\n1. React to Solid converter - CLI version, for batch conversion\n1. React.js to Solid.js transformer rules  builder - Web UI\n1. Automatic ReactJS to SolidJS migration guide - from the transformer rules\n\n## Demo\n\n[ReactJS to SolidJS Converter \u0026 Utilities](https://rrjanbiah.github.io/react2solid/)\n\n## Status\n\nStarted with swc, JMESPath and Rust in mind, but had to switch to the Babel, jq and SolidJS due to multiple challenges (such as [1](https://github.com/swc-project/swc/discussions/4241), [2](https://github.com/rrjanbiah/react2solid/issues/6), [3](https://github.com/rrjanbiah/react2solid/issues/8)). Now, an MVP is ready without CLI.\n\n## Architecture / Approach\n\n1. Idea is to avoid hardcoding of parser rules\n1. Create language agnostic transpiler rules using `jq` selectors and also keep test case scripts along with that\n1. Using Babel, get AST for the ReactJS code\n1. Apply `jq` selection on the AST\n1. Convert the AST to JavaScript/SolidJS\n1. For string transformer, it is merely string replace over the code (no AST conversion)\n\n\n## Acknowledgments\n\n* `schwartzworld` of Hacker News for suggesting SolidJS hackathon\n* @ryansolid for creating SolidJS and the awesome community (especially Discord)\n\n\n## Roadmap\n\n- [ ] v0.0.1 \n  - [x] Basic folder structure and naming conventions for the transform rules\n  - [x] ReactJS to SolidJS transpiler - JavaScript frontend\n  - [x] Builder UI (partly)\n  - [x] Automatic migration guide generation\n  - [x] ReactJS to SolidJS libraries alternatives (MVP, not handled in code)\n- [ ] v0.0.2\n  - [ ] Refactor for code duplication and TOML structure\n- [ ] v0.0.3\n  - [ ] Rust-based converter. Switch to swc?\n\n## Contributing\n\n* Feel free to post any issues or suggestions\n* Submit your transform rules using the builder (TODO. Till then feel free to submit PR)\n\n\n## Support / Sponsor\n\n**Hire Me**, **Recommend Me** for any remote/freelancer opportunity\n\nContact Email: rrjanbiah-at-Y!com\n\nTwitter: [@rrjanbiah](https://twitter.com/rrjanbiah) (DM open)\n","funding_links":[],"categories":["📦 Components \u0026 Libraries"],"sub_categories":["Misc."],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrjanbiah%2Freact2solid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrjanbiah%2Freact2solid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrjanbiah%2Freact2solid/lists"}