{"id":16974647,"url":"https://github.com/windrunnermax/reactlive","last_synced_at":"2025-04-12T00:51:36.516Z","repository":{"id":193306431,"uuid":"688527243","full_name":"WindRunnerMax/ReactLive","owner":"WindRunnerMax","description":"Real-time preview of React components","archived":false,"fork":false,"pushed_at":"2024-07-12T11:24:55.000Z","size":25547,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T20:33:32.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://windrunnermax.github.io/ReactLive/","language":"TypeScript","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/WindRunnerMax.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":"2023-09-07T14:28:46.000Z","updated_at":"2024-12-30T01:40:32.000Z","dependencies_parsed_at":"2024-07-12T13:13:42.886Z","dependency_job_id":null,"html_url":"https://github.com/WindRunnerMax/ReactLive","commit_stats":null,"previous_names":["windrunnermax/reactlive"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindRunnerMax%2FReactLive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindRunnerMax%2FReactLive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindRunnerMax%2FReactLive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindRunnerMax%2FReactLive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindRunnerMax","download_url":"https://codeload.github.com/WindRunnerMax/ReactLive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501894,"owners_count":21114681,"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":[],"created_at":"2024-10-14T01:07:23.781Z","updated_at":"2025-04-12T00:51:36.498Z","avatar_url":"https://github.com/WindRunnerMax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Live\r\n\r\n\u003cp\u003e\r\n\u003ca href=\"https://github.com/WindrunnerMax/ReactLive\"\u003eGitHub\u003c/a\u003e\r\n\u003cspan\u003e｜\u003c/span\u003e\r\n\u003ca href=\"https://windrunnermax.github.io/ReactLive/\"\u003ePlayground\u003c/a\u003e\r\n\u003cspan\u003e｜\u003c/span\u003e\r\n\u003ca href=\"https://windrunnermax.github.io/DocEditor/\"\u003eDEMO\u003c/a\u003e\r\n\u003cspan\u003e｜\u003c/span\u003e\r\n\u003ca href=\"https://github.com/WindrunnerMax/EveryDay/blob/master/Plugin/初探富文本之React实时预览.md\"\u003eBLOG\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n## Usage\r\n\r\n```bash\r\n$ pnpm add react-live-runtime -E\r\n```\r\n\r\n```js\r\n// ./example/index.tsx\r\nconst sandbox = withSandbox({ React, console, alert, ...Arco });\r\nconst compiledCode = compileWithSucrase(\"\u003cdiv\u003e\" + code + \"\u003c/div\u003e\");\r\nconst Component = renderWithDependency(compiledCode, sandbox) as JSX.Element;\r\nReactDOM.render(Component, el);\r\n```\r\n\r\n## Develop\r\n\r\n```bash\r\n$ npm i -g pnpm@8.11.0\r\n$ pnpm install --frozen-lockfile\r\n$ npx husky install \r\n$ chmod 755 .husky/pre-commit\r\n$ pnpm run dev\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindrunnermax%2Freactlive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindrunnermax%2Freactlive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindrunnermax%2Freactlive/lists"}