{"id":19511660,"url":"https://github.com/thecodetherapy/mml-playground-r3f","last_synced_at":"2025-10-24T00:34:32.419Z","repository":{"id":179952781,"uuid":"664363157","full_name":"TheCodeTherapy/mml-playground-r3f","owner":"TheCodeTherapy","description":"MML Playground + React Three Fiber","archived":false,"fork":false,"pushed_at":"2023-07-19T14:52:21.000Z","size":31749,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T11:49:31.983Z","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/TheCodeTherapy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-07-09T18:42:10.000Z","updated_at":"2023-07-17T12:09:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4f5cfb8-53c2-4931-bc36-0a65693e5204","html_url":"https://github.com/TheCodeTherapy/mml-playground-r3f","commit_stats":null,"previous_names":["thecodetherapy/mml-playground-r3f"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTherapy%2Fmml-playground-r3f","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTherapy%2Fmml-playground-r3f/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTherapy%2Fmml-playground-r3f/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTherapy%2Fmml-playground-r3f/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCodeTherapy","download_url":"https://codeload.github.com/TheCodeTherapy/mml-playground-r3f/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240761143,"owners_count":19853256,"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-11-10T23:22:11.332Z","updated_at":"2025-10-24T00:34:32.348Z","avatar_url":"https://github.com/TheCodeTherapy.png","language":"TypeScript","readme":"# MML Playground with React Three Fiber\n\nThis project implements a minimal 3d 'playground' powered by\n[MML (Metaverse Markup Language)](https://mml.io/). It serves as a great starting point to create\nyour own end-to-end live, multiplayer experience using the the unique, real-time nature of MML.\n\nIt can be easily deployed to environments that support Node.js and expose ports to the internet.\n\n![MML Playground with React Three Fiber](https://raw.githubusercontent.com/TheCodeTherapy/mml-playground-r3f/main/Playground.png)\n\n## Main features\n\n- Multiple players can connect to the playground and interact with it in real time.\n\n- The MML-based playground showcases example MML documents in the defined slots.\n\n- Players can showcase their own MML creations by adding them via their WebSocket URL to any\n  available slots on the playground.\n\n- Players can interact with any of the showcased documents simultaneously.\n\n- It's very easy to deploy and get started with.\n\n## Project structure\n\nThe project is broken down into four independent packages.\n\n- `server`: creates the main server which serves the page and handles all WebSocket connections.\n  Additionally, it runs the main MML document, `playground.html`, and all documents within the\n  `examples` directory.\n\n- `web`: implements the browser-based 3d experience.\n\n- `character-network`: provides an implementation of a WebSocket server that synchronizes character\n  positions across all connected clients.\n\n## Adding more MML documents\n\nThe `server/examples` directory contains the MML documents that are loaded in the playground by\ndefault.\n\nTo add a new example, simply create a new HTML file, such as `new-example.html` inside the\n`examples` directory. The server will automatically detect it and make it available at\n`ws://localhost:8080/examples/new-example.html`. You can then copy this WebSocket URL and add it to\na free slot.\n\n## Run on CodeSandbox\n\nClick the button below to create a new sandbox on CodeSandbox.io.\n\n[![Edit mml-playground on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/4zf432)\n\nOnce your sandbox is initialized, select the 'start: 8080' tab to view the running playground.\n\n## Running locally\n\nMaking sure you have Node.js installed, run the following from the root of the repository:\n\n```bash\nnpm install\nnpm run iterate\n```\n\nOnce the server is running, open `http://localhost:8080` in your browser.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodetherapy%2Fmml-playground-r3f","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodetherapy%2Fmml-playground-r3f","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodetherapy%2Fmml-playground-r3f/lists"}