{"id":28220817,"url":"https://github.com/veluxa/sciterjs-react","last_synced_at":"2025-06-10T09:31:50.579Z","repository":{"id":37699660,"uuid":"329179816","full_name":"veluxa/sciterjs-react","owner":"veluxa","description":"Use customized version of react to write sciterjs program, support browser and desktop(win,linux,macos). The desktop terminal is only 7mb in size after packaging.","archived":false,"fork":false,"pushed_at":"2021-09-09T09:24:30.000Z","size":73391,"stargazers_count":41,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-18T04:16:25.274Z","etag":null,"topics":["aardio","hot-reload","linux","macos","react","sciterjs","sciterjs-react","typescript","windows"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/veluxa.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}},"created_at":"2021-01-13T03:13:30.000Z","updated_at":"2023-09-22T02:25:16.000Z","dependencies_parsed_at":"2022-09-11T23:40:45.004Z","dependency_job_id":null,"html_url":"https://github.com/veluxa/sciterjs-react","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veluxa%2Fsciterjs-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veluxa%2Fsciterjs-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veluxa%2Fsciterjs-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veluxa%2Fsciterjs-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veluxa","download_url":"https://codeload.github.com/veluxa/sciterjs-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veluxa%2Fsciterjs-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259048052,"owners_count":22797647,"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":["aardio","hot-reload","linux","macos","react","sciterjs","sciterjs-react","typescript","windows"],"created_at":"2025-05-18T04:16:21.358Z","updated_at":"2025-06-10T09:31:50.571Z","avatar_url":"https://github.com/veluxa.png","language":"JavaScript","readme":"**DEMO**(win7/win8/win10)\n\n[download demo](https://github.com/veluxa/sciterjs-react/raw/master/aardio/dist/sciterjs.exe)\n\n---\nuse react to write Sciterjs programs that support browser and desktop;\n\n![screen](/screen.png)\n\n---\n**1.Features**:\n\n| property | support | note |\n| :-- | :--: | :-- |\n| js、jsx | ✔ | |\n| ts、tsx | ✔ | |\n| style | ✔ |  |\n| className | ✔ | The browser supports className, sciter does not support **className** please use **class**  |\n| class component | ✔ | lifecycle,state |\n| function component | ✔ | hook |\n| router | ✔ | Please use [preact-router](https://www.npmjs.com/package/preact-router) |\n| hot reload | ✔ | Support browser and window desktop ([sciterjs-browser](https://github.com/veluxa/sciterjs-browser))|\n\n---\n\n**2.How to use**\n\n***2.1 Install***\n```shell\ncd your_prodjects_directory\ngit clone https://github.com/veluxa/sciterjs-react.git\ncd sciterjs-react\nnpm install\n```\n\n***2.2 Start:***\n\n1、web\n```sh\nnpm run dev:www\n```\n\n2、web \u0026 scapp\n```sh\nnpm run dev:scapp\n```\n\n***2.2 Build:***\n\n1、web\n```sh\nnpm run build:www\n```\n\n2、sciterjs\n```sh\nnpm run build:scapp\n```\n\n3、aardio\n```sh\nnpm run build:aardio\n```\n\n---\n***inspector***:\n```sh\nnpm run inspector\n```\n\n---\n\n**3.Notice**:\n1. When writing css, use x instead of * and o instead of %. For example:\n\n| source  | webpack | result |\n| :-- | :--: | :-- |\n| margin-left: x | =\u003e | margin-left: * |\n| height: 100oo | =\u003e | height: 100%% |\n\n\n2. If the element has a clickable event, append behavior: \"**clickable**\" to the element. See app.tsx\n\n3. ~~buildaardio 编译后请在aardio资源文件上右键选择 \"同步本地目录\"，不然新编译的资源在aardio中运行不会生效~~ 在aardio工程里项目资源管理器中选中 layout 目录，在右侧边属性栏中选择 **本地构建**\n\n![screen](/aardio.png)\n\n4. Please grant scapp execute permission on macos, otherwise it will not work properly.\n\n---","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveluxa%2Fsciterjs-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveluxa%2Fsciterjs-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveluxa%2Fsciterjs-react/lists"}