{"id":46754688,"url":"https://github.com/eve0415/oxc-plugin-react-compiler","last_synced_at":"2026-04-02T17:55:41.689Z","repository":{"id":343014783,"uuid":"1175299627","full_name":"eve0415/oxc-plugin-react-compiler","owner":"eve0415","description":"The React Compiler, ported to Rust with OXC. 🦀✨","archived":false,"fork":false,"pushed_at":"2026-03-26T02:02:00.000Z","size":2010,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-26T04:59:19.232Z","etag":null,"topics":["oxc","react","react-compiler","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/eve0415.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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":"AGENTS.md","dco":null,"cla":null},"funding":{"github":"eve0415"}},"created_at":"2026-03-07T14:19:18.000Z","updated_at":"2026-03-25T12:29:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eve0415/oxc-plugin-react-compiler","commit_stats":null,"previous_names":["eve0415/oxc-plugin-react-compiler"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/eve0415/oxc-plugin-react-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eve0415%2Foxc-plugin-react-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eve0415%2Foxc-plugin-react-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eve0415%2Foxc-plugin-react-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eve0415%2Foxc-plugin-react-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eve0415","download_url":"https://codeload.github.com/eve0415/oxc-plugin-react-compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eve0415%2Foxc-plugin-react-compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["oxc","react","react-compiler","rust"],"created_at":"2026-03-09T21:30:10.349Z","updated_at":"2026-04-02T17:55:41.682Z","avatar_url":"https://github.com/eve0415.png","language":"Rust","funding_links":["https://github.com/sponsors/eve0415"],"categories":[],"sub_categories":[],"readme":"# oxc-plugin-react-compiler\n\n[![npm version](https://img.shields.io/npm/v/oxc-plugin-react-compiler)](https://www.npmjs.com/package/oxc-plugin-react-compiler)\n[![license](https://img.shields.io/npm/l/oxc-plugin-react-compiler)](LICENSE)\n\n\u003e [!WARNING]\n\u003e **Experimental**: This project may have edge cases where behavior differs from the official React Compiler plugin. If you encounter any differences, please [open an issue](https://github.com/eve0415/oxc-plugin-react-compiler/issues/new) with a detailed description and a minimal reproduction so we can investigate.\n\n## About the Project\n\n`oxc-plugin-react-compiler` is an experimental project aiming to port the original [`babel-plugin-react-compiler`](https://github.com/facebook/react/tree/main/compiler) to a Rust-based implementation on top of the [OXC](https://github.com/oxc-project/oxc) toolchain.\n\n\u003e [!NOTE]\n\u003e **Disclaimer:** This is a community-driven project. It is **not** an official project from the React team or OXC, and we are not affiliated with Meta, the React core team, or the OXC project.\n\nThe primary goal is to achieve **exact behavior** alignment with the original React Compiler implementation while leveraging the performance benefits of Rust.\n\n## Current Status\n\nWe have achieved **100% conformance parity** with the upstream React Compiler. This was verified by running the full conformance test suite against all upstream fixtures. While still experimental, this demonstrates complete behavioral alignment with the original implementation.\n\n## Installation\n\n```bash\nnpm install oxc-plugin-react-compiler\n```\n\n## Usage\n\n### Vite\n\n\u003e [!NOTE]\n\u003e The Vite integration requires **Vite 8.0 or later**.\n\n```ts\nimport { defineConfig } from 'vite';\nimport react from '@vitejs/plugin-react';\nimport { reactCompilerOxc } from 'oxc-plugin-react-compiler';\n\nexport default defineConfig({\n  plugins: [\n    reactCompilerOxc({\n      // compilationMode: 'infer',  // 'infer' | 'annotation' | 'all'\n      // panicThreshold: 'none',    // 'none' | 'all'\n      // target: '19',              // React version to target\n      // sources: ['src/'],         // string[] | ((id: string) =\u003e boolean)\n    }),\n    react(),\n  ],\n});\n```\n\n### ESLint\n\nThe lint plugin is exposed from the `oxc-plugin-react-compiler/eslint` subpath:\n\n```ts\nimport reactCompiler from 'oxc-plugin-react-compiler/eslint';\n\nexport default [reactCompiler.configs.recommended];\n```\n\nThe exported rules use the `oxc-react-compiler/*` namespace.\n\n### Oxlint\n\nOxlint JS plugin support is also exposed from the same `oxc-plugin-react-compiler/eslint` subpath:\n\n```json\n{\n  \"jsPlugins\": [\"oxc-plugin-react-compiler/eslint\"],\n  \"rules\": {\n    \"oxc-react-compiler/purity\": \"error\",\n    \"oxc-react-compiler/refs\": \"error\",\n    \"oxc-react-compiler/no-unused-directives\": \"error\"\n  }\n}\n```\n\nUse `oxc-plugin-react-compiler/eslint` as the Oxlint JS plugin specifier. The bare\n`oxc-plugin-react-compiler` package root is the Vite plugin entrypoint, not the\nOxlint plugin entrypoint.\n\n## Experimental Nature\n\nThis project serves as an experiment to explore AI-assisted development in complex compiler porting tasks. The codebase is being heavily co-developed with AI assistants including Claude Code and Codex. Due to API rate limits and the inherent complexity of the task, development is expected to span several months. The initial primitive implementation took about a month to prove the viability of a Rust-based React compiler.\n\n## Goals \u0026 Roadmap\n\n- [x] Primitive implementation proving viability in Rust.\n- [x] Align behavior exactly with the upstream React Compiler (verified via conformance tests).\n- [x] Provide seamless integration with **Vite v8** via the included Vite plugin.\n- [x] Publish to npm for easy installation.\n- [x] Source map support.\n- [ ] Future exploration: Add support for SWC alongside OXC.\n\n## Architecture Overview\n\n- **`crates/oxc_react_compiler/`**: Core compiler implementation (HIR, inference, reactive scopes, optimization, codegen).\n- **`crates/oxc_react_compiler_napi/`**: N-API bindings to expose the Rust implementation to JavaScript.\n- **`napi/`**: JavaScript wrapper + Vite v8 plugin.\n- **`tasks/conformance/`**: Test harness ensuring parity with upstream React Compiler fixtures.\n\n## Acknowledgements \u0026 Credits\n\nThis project wouldn't be possible without the incredible work of the following teams and tools:\n\n- **[The React Team](https://react.dev/)**: For the original React Compiler architecture, logic, and conformance fixtures.\n- **[The OXC Team](https://oxc.rs/)**: For the blazingly fast Rust-based JavaScript toolchain that powers this port.\n- **[Claude Code](https://claude.ai/code)** and **[Codex](https://openai.com/blog/openai-codex)**: Heavily relied upon to analyze, explore, implement, test, and literally anything else to this project.\n\n## Support the Project\n\nIf you find this project interesting or useful, please consider giving it a ⭐ on GitHub! Your support helps show that there is interest in a high-performance, Rust-based React Compiler.\n\nFound a bug or unexpected behavior? Please [open an issue](https://github.com/eve0415/oxc-plugin-react-compiler/issues/new) — detailed reports help us improve.\n\n## License\n\nThis project is open-source and licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feve0415%2Foxc-plugin-react-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feve0415%2Foxc-plugin-react-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feve0415%2Foxc-plugin-react-compiler/lists"}