{"id":16639261,"url":"https://github.com/alexanderson1993/lance-react","last_synced_at":"2026-04-22T11:02:32.939Z","repository":{"id":78681044,"uuid":"142642936","full_name":"alexanderson1993/lance-react","owner":"alexanderson1993","description":"A bridge between Lance.gg and React","archived":false,"fork":false,"pushed_at":"2018-07-28T03:21:33.000Z","size":266,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T22:46:18.720Z","etag":null,"topics":["game-engine","lance","lance-gg","react","unstated"],"latest_commit_sha":null,"homepage":null,"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/alexanderson1993.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":"2018-07-28T03:18:20.000Z","updated_at":"2018-12-19T19:53:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"1fd13990-3b78-4e80-ac75-2446f1163513","html_url":"https://github.com/alexanderson1993/lance-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexanderson1993/lance-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderson1993%2Flance-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderson1993%2Flance-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderson1993%2Flance-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderson1993%2Flance-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexanderson1993","download_url":"https://codeload.github.com/alexanderson1993/lance-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderson1993%2Flance-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32132973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: 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":["game-engine","lance","lance-gg","react","unstated"],"created_at":"2024-10-12T07:05:34.276Z","updated_at":"2026-04-22T11:02:27.920Z","avatar_url":"https://github.com/alexanderson1993.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Lance Demo\n\nThis is a small test project to see if it is possible to easily use React as a\nrender target for [Lance.gg](http://lance.gg) games. This uses the standard\nLance Pong example game. My purpose was several fold:\n\n- Make it possible to selectively start a lance Client when a component is\n  mounted. Regretably, there is no way to stop it once it has started, but I\n  have made it so it won't reinitialized if the component is mounted again.\n- Provide a central store for accessing the data from Lance with an easy API for\n  updating that store.\n- Use React to render the data from the central store to show the game data.\n\n## Set Up\n\nIt's pretty straightforward:\n\n```\ngit clone https://github.com/alexanderson1993/lance-react\ncd lance-react\nnpm install\nnpm start\n```\n\n## How it works\n\nLance is set up like usual, with an engine on both the client and the server.\nHowever, instead of using a renderer to update the DOM or a THREE view, it sends\nthe information to an Unstated container. This container holds the global state\nwhich can be accessed by any React component in the tree. The GameView component\ngrabs the data and renders it to the DOM using React.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderson1993%2Flance-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderson1993%2Flance-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderson1993%2Flance-react/lists"}