{"id":15414828,"url":"https://github.com/aidenybai/reaict","last_synced_at":"2025-10-11T15:32:04.561Z","repository":{"id":195265739,"uuid":"692554226","full_name":"aidenybai/reaict","owner":"aidenybai","description":"Optimize React with AI","archived":false,"fork":false,"pushed_at":"2023-11-14T23:55:15.000Z","size":71,"stargazers_count":136,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-11T15:32:01.277Z","etag":null,"topics":["automatic","javascript","optimize","performance","react","web"],"latest_commit_sha":null,"homepage":"","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/aidenybai.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}},"created_at":"2023-09-16T20:53:14.000Z","updated_at":"2025-08-21T09:12:44.000Z","dependencies_parsed_at":"2024-01-28T04:30:40.349Z","dependency_job_id":"3b6787d9-64ed-4988-9b99-6e6ce24b55f0","html_url":"https://github.com/aidenybai/reaict","commit_stats":null,"previous_names":["aidenybai/reaict"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aidenybai/reaict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidenybai%2Freaict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidenybai%2Freaict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidenybai%2Freaict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidenybai%2Freaict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aidenybai","download_url":"https://codeload.github.com/aidenybai/reaict/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidenybai%2Freaict/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007604,"owners_count":26084334,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["automatic","javascript","optimize","performance","react","web"],"created_at":"2024-10-01T17:04:59.173Z","updated_at":"2025-10-11T15:32:04.514Z","avatar_url":"https://github.com/aidenybai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# re`ai`ct\n\n### Automatically optimize React components with AI\n\nReaict is a Next.js / Vite / Webpack plugin that automatically analyses your React components and optimizes them for performance during build time. It uses OpenAI's `gpt-3.5-turbo` model to generate the optimized code.\n\nIdeally this can improve your app's render performance. If you want to improve reconcilliation, run `npx million@latest` in your app to install [Million.js](https://million.dev)\n\n## Installation\n\n```bash\nnpm install reaict-js\n```\n\n## Usage\n\n### Next.js\n\n```js\n// next.config.js\nconst withReaict = require('reaict-js');\n\nmodule.exports = withReaict(\n  {\n    // your next.js config\n  },\n  { apiKey: 'YOUR_OPENAI_KEY' },\n);\n```\n\n### Create React App\n\n```js\nconst withReaict = require('reaict-js');\n\nmodule.exports = {\n  webpack: {\n    plugins: { add: [withReaict.webpack({ auto: true })] },\n  },\n};\n```\n\n### Vite\n\n```js\n// vite.config.js\nimport { defineConfig } from 'vite';\nimport withReaict from 'reaict-js';\n\nexport default defineConfig({\n  plugins: [withReaict.vite({ apiKey: 'YOUR_OPENAI_KEY' })],\n});\n```\n\n### Webpack\n\n```js\nconst withReaict = require('reaict-js');\n\nmodule.exports = {\n  plugins: [withReaict.webpack({ apiKey: 'YOUR_OPENAI_KEY' })],\n};\n```\n\n## Notes\n\nso much that can be done:\n\n- prompt optimization\n- support class / arrow func components\n- pre-eval functions\n- github action instead of every run\n- cache functions across runs\n- component validation (perf profiling + screenshot)\n- optimizing on threshold (don't memo everything)\n- integration w/ v0?\n- user hints (e.g. put a function // optimize!)\n- integration w/ million.js\n- package analysis and auto refactor\n- automatic error handing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faidenybai%2Freaict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faidenybai%2Freaict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faidenybai%2Freaict/lists"}