{"id":47790692,"url":"https://github.com/deadronos/react-three-eris","last_synced_at":"2026-04-03T15:36:32.587Z","repository":{"id":335003488,"uuid":"1143715010","full_name":"deadronos/react-three-eris","owner":"deadronos","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-28T11:52:34.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-28T12:58:14.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/deadronos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2026-01-27T22:57:08.000Z","updated_at":"2026-01-28T11:52:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/deadronos/react-three-eris","commit_stats":null,"previous_names":["deadronos/react-three-eris"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/deadronos/react-three-eris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Freact-three-eris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Freact-three-eris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Freact-three-eris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Freact-three-eris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deadronos","download_url":"https://codeload.github.com/deadronos/react-three-eris/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadronos%2Freact-three-eris/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31360807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T15:19:21.178Z","status":"ssl_error","status_checked_at":"2026-04-03T15:19:20.670Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-03T15:36:32.068Z","updated_at":"2026-04-03T15:36:32.569Z","avatar_url":"https://github.com/deadronos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-three-eris\n\nAn engine-like runtime kernel for React Three Fiber (R3F).\n\nreact-three-eris exists because many R3F apps eventually want \"game engine\" structure:\n- deterministic ordering (no scattered `useFrame` calls)\n- fixed-step simulation for authoritative gameplay\n- explicit, manually-stepped physics (Rapier)\n- clear boundaries between simulation, physics, rendering, and React\n\nThis repo is a pnpm workspace monorepo with a small core library plus optional adapters and example apps.\n\n## Rationale\n\nR3F is an excellent renderer and scene authoring layer, but it is not an engine loop.\nIf every feature owns its own `useFrame`, you tend to get:\n- unpredictable ordering issues (\"why is the camera one frame behind?\")\n- mixed fixed/variable timestep logic\n- physics stepping that depends on render framerate\n- hard-to-debug feedback loops between React state and simulation\n\nreact-three-eris puts a minimal orchestration layer around R3F:\n- the engine owns time and phase ordering\n- apps register systems to phases\n- React mounts a single adapter component (`EngineLoop`) to drive the engine\n- physics is stepped manually inside the fixed loop (physics-authoritative by default)\n\nIt stays \"framework-light\": no scene graph ownership, no UI opinion, no enforced ECS.\n\n## Packages\n\n### `packages/eris` (published name: `react-three-eris`)\n\nThe reusable library:\n- `createEngine` / `Engine`: fixed-step scheduler, phase ordering, net hooks\n- `Phase`, `System` types\n- `EngineLoop`: React Three Fiber adapter (one hook-in)\n- Physics module boundary with a Rapier implementation (optional)\n- Net driver boundary with a noop default (planned for future networking)\n\nCore idea: systems subscribe to exactly one phase:\n- `preFrame`: input/net polling, command buffering\n- `fixed`: authoritative gameplay step (fixed dt)\n- `postPhysicsFixed`: interpret contacts/triggers after stepping physics\n- `update`: variable-rate non-authoritative systems\n- `late`: camera/presentation smoothing\n- `renderApply`: write to Three objects (receives `alpha` for interpolation)\n\n### `packages/eris-ecs-miniplex-adapter`\n\nAn optional ECS adapter for `react-three-eris` using `miniplex`.\n\nRationale:\n- keep the core engine ECS-agnostic\n- provide a small bridge for teams that want a lightweight ECS without rewriting the loop\n\n### `packages/basic-character`\n\nExample app (separate Vite + React + R3F project) that consumes the library via `workspace:*`.\n\nDemonstrates:\n- registering systems instead of `useFrame` for simulation\n- fixed-step movement intent (WASD)\n- minimal Rapier setup under engine ownership\n\n## Repo Layout\n\n```\nreact-three-eris/\n  packages/\n    eris/\n    eris-ecs-miniplex-adapter/\n    basic-character/\n  tests/\n  docs/\n```\n\nPackage-specific docs live in `docs/packages/*`.\n\n## Getting Started\n\nRequirements:\n- Node.js (recent)\n- pnpm (see `package.json` \"packageManager\")\n\nInstall:\n\n```sh\npnpm install\n```\n\nRun the example:\n\n```sh\npnpm dev\n```\n\nTypecheck:\n\n```sh\npnpm typecheck\n```\n\nRun tests (Vitest):\n\n```sh\npnpm test\n```\n\n## Project Status\n\nThis is early-stage and intentionally minimal.\nThe goal is a solid runtime boundary and phase model that can scale up (netcode, rollback, tooling)\nwithout turning the library into a full engine.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadronos%2Freact-three-eris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeadronos%2Freact-three-eris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadronos%2Freact-three-eris/lists"}