{"id":19493945,"url":"https://github.com/darianstlex/vike-react-template","last_synced_at":"2026-05-17T07:37:01.291Z","repository":{"id":243949281,"uuid":"813857237","full_name":"darianstlex/vike-react-template","owner":"darianstlex","description":"Vike + React + Effector","archived":false,"fork":false,"pushed_at":"2024-09-05T23:43:38.000Z","size":1755,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T09:15:45.763Z","etag":null,"topics":["effector","react","vike"],"latest_commit_sha":null,"homepage":"","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/darianstlex.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":"2024-06-11T22:04:32.000Z","updated_at":"2024-09-05T23:43:41.000Z","dependencies_parsed_at":"2024-08-23T16:45:01.136Z","dependency_job_id":"fef359cb-3255-495c-af80-83d8444840cb","html_url":"https://github.com/darianstlex/vike-react-template","commit_stats":null,"previous_names":["darianstlex/vike-efx-template","darianstlex/vike-react-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darianstlex%2Fvike-react-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darianstlex%2Fvike-react-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darianstlex%2Fvike-react-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darianstlex%2Fvike-react-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darianstlex","download_url":"https://codeload.github.com/darianstlex/vike-react-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240739455,"owners_count":19849776,"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":["effector","react","vike"],"created_at":"2024-11-10T21:27:57.133Z","updated_at":"2026-05-17T07:36:56.257Z","avatar_url":"https://github.com/darianstlex.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Vike + React + Effector + SSR\n\nThis template is based on Vike + React + Effector.\n\n`vike-react` is not used to have better control over rendering mechanism. \n\n### Hooks/Events\n\nAll standard hooks can be used, plus some extra to control effector values\n\nData flow:\n\n`+data.ts`: vike hook for initial data preparation if needed\\\n`+onBeforeInit.ts`: hook, fires before page init event on server side, have access to the effector scope\\\n`+pageInitiated.ts`: effector event, fires on page init on server side.\\\n`+onAfterInit.ts`: hook, fires after page init event on server side, have access to the effector scope\\\n`appStarted`: effector event, fires on app start on client side. On UI changes will cause diff in server/client render\\\n`+onBeforeStart.ts`: hook, fires before page start event on client side, have access to the effector scope. On UI changes will cause diff in server/client render\\\n`+pageStarted.ts`: effector event, fires on page start on client side. Runs after the first render.\n\nPage Components:\n\n`+Layout.tsx`: custom layout component to override the global one\\\n`+Wrapper.tsx`: additional page wrapper\n\nDevelopment:\n\n```bash\nnpm i / npm ci\nnpm run dev\n```\n\n## Tests\n\nTo run unit tests\n\n```bash\nnpm run unit\nnpm run unit:open\nnpm run unit:coverage\n```\n\nTo run functional tests\n\n```bash\nnpm run func\nnpm run func:open\nnpm run func:coverage\n\nnpm run test:coverage\n```\n\nTo run all tests wth coverage\n\n```bash\nnpm run test:coverage\n```\n\n## Learn More\n\nTo learn more about framework, take a look at the following resources:\n\n- [Vike Documentation](https://vike.dev) - learn about Vike features and API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarianstlex%2Fvike-react-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarianstlex%2Fvike-react-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarianstlex%2Fvike-react-template/lists"}