{"id":50338928,"url":"https://github.com/leegeunhyeok/swc-react-native","last_synced_at":"2026-05-29T15:31:00.207Z","repository":{"id":354726125,"uuid":"904904912","full_name":"leegeunhyeok/swc-react-native","owner":"leegeunhyeok","description":"Collection of SWC(Rust) implementations for React Native","archived":false,"fork":false,"pushed_at":"2026-05-22T00:00:09.000Z","size":375,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-22T01:48:45.875Z","etag":null,"topics":["react-native","swc"],"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/leegeunhyeok.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":"2024-12-17T19:20:00.000Z","updated_at":"2026-05-22T00:00:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/leegeunhyeok/swc-react-native","commit_stats":null,"previous_names":["leegeunhyeok/swc-react-native"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leegeunhyeok/swc-react-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leegeunhyeok%2Fswc-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leegeunhyeok%2Fswc-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leegeunhyeok%2Fswc-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leegeunhyeok%2Fswc-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leegeunhyeok","download_url":"https://codeload.github.com/leegeunhyeok/swc-react-native/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leegeunhyeok%2Fswc-react-native/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33659872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["react-native","swc"],"created_at":"2026-05-29T15:31:00.137Z","updated_at":"2026-05-29T15:31:00.194Z","avatar_url":"https://github.com/leegeunhyeok.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swc-react-native\n\nCollection of SWC(Rust) implementations for React Native.\n\n| Feature flag | Sub-crate                   | Upstream package                                                                                                                       |\n| ------------ | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |\n| `codegen`    | `swc_react_native_codegen`  | [`@react-native/babel-plugin-codegen`](https://github.com/facebook/react-native/tree/main/packages/babel-plugin-codegen)               |\n| `worklets`   | `swc_react_native_worklets` | [`react-native-worklets/plugin`](https://github.com/software-mansion/react-native-reanimated/tree/main/packages/react-native-worklets) |\n\n`swc_react_native` is the umbrella crate. No features are enabled by default — pick what you need\n(`features = [\"codegen\"]`) or turn on `all` for everything. Each sub-crate can also be depended on\ndirectly.\n\n## Prerequisites\n\n- [mise](https://mise.jdx.dev/) for environment management\n\n## Setup\n\n```sh\nmise install\n```\n\nThis installs the Rust toolchain and [just](https://github.com/casey/just) task runner as defined in `mise.toml`.\n\n## Development\n\nAll tasks are available via `just`:\n\n```sh\njust          # List all available recipes\n```\n\n### Build\n\n```sh\njust build          # Debug build\njust build-release  # Release build\n```\n\n### Lint \u0026 Format\n\n```sh\njust lint       # Run clippy with strict warnings\njust fmt        # Apply rustfmt\njust fmt-check  # Check formatting without applying\n```\n\n### Test\n\n```sh\njust test             # Run all tests\njust snapshot-review  # Interactively review snapshot diffs (cargo insta review)\n```\n\n### All-in-one\n\n```sh\njust roll  # lint + fmt-check + test\n```\n\n## Benchmark\n\nMeasured on Apple M1 Pro, 200 iterations over the per-target fixtures in\n`bench/\u003ctarget\u003e/fixtures/`.\n\n| Target     | Babel total | Babel avg / op | SWC total | SWC avg / op | Speedup  |\n| ---------- | ----------: | -------------: | --------: | -----------: | -------: |\n| `codegen`  |    944.9ms  |       4.724ms  |   13.1ms  |     0.066ms  | **~72x** |\n| `worklets` |   4554.4ms  |      22.772ms  |   61.3ms  |     0.307ms  | **~74x** |\n\nRun with `just bench \u003ctarget\u003e [n]` (after `just setup-bench \u003ctarget\u003e` once).\n\n## Project Structure\n\n```\ncrates/\n  swc-react-native/                       # Umbrella crate — feature-gated re-exports of each transform\n  swc-react-native-codegen/               # SWC visitor for the codegen transform\n  swc-react-native-worklets/              # SWC visitor for the worklets transform\n```\n\n| Upstream package                     | Rust location                     |\n| ------------------------------------ | --------------------------------- |\n| `@react-native/babel-plugin-codegen` | crate `swc_react_native_codegen`  |\n| `react-native-worklets` Babel plugin | crate `swc_react_native_worklets` |\n\n## LICENSE\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleegeunhyeok%2Fswc-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleegeunhyeok%2Fswc-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleegeunhyeok%2Fswc-react-native/lists"}