{"id":18059247,"url":"https://github.com/flo-bit/threlte-vr-code-editor","last_synced_at":"2025-04-11T08:56:39.814Z","repository":{"id":246275436,"uuid":"820599852","full_name":"flo-bit/threlte-vr-code-editor","owner":"flo-bit","description":"proof of concept for a live 3d code editor in vr","archived":false,"fork":false,"pushed_at":"2024-06-27T15:50:38.000Z","size":1181,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T06:31:46.308Z","etag":null,"topics":["code-editor","threejs","threlte","vr"],"latest_commit_sha":null,"homepage":"","language":"Svelte","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/flo-bit.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-26T19:54:35.000Z","updated_at":"2025-01-23T14:55:43.000Z","dependencies_parsed_at":"2024-06-27T00:49:18.450Z","dependency_job_id":"f2cf8cb0-f81a-4214-8ba8-c51ff3531c4e","html_url":"https://github.com/flo-bit/threlte-vr-code-editor","commit_stats":null,"previous_names":["flo-bit/threlte-vr-code-editor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flo-bit%2Fthrelte-vr-code-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flo-bit%2Fthrelte-vr-code-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flo-bit%2Fthrelte-vr-code-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flo-bit%2Fthrelte-vr-code-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flo-bit","download_url":"https://codeload.github.com/flo-bit/threlte-vr-code-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248363497,"owners_count":21091370,"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":["code-editor","threejs","threlte","vr"],"created_at":"2024-10-31T03:10:42.063Z","updated_at":"2025-04-11T08:56:39.792Z","avatar_url":"https://github.com/flo-bit.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# threlte vr editor\n\nProof of concept for a live VR code editor using svelte, three.js, threlte and peer.js.\n\n## demo\n\n\n\n\nhttps://github.com/flo-bit/threlte-vr-code-editor/assets/45694132/f190bf36-b157-4de5-846f-f9c7a8a9327e\n\n\n\n\n\n## How to use in your own project:\n\n1. Make sure you have a threlte project set up (including the extras and xr packages), or create a new one by running:\n\n```bash\nnpm create threlte my-project\ncd my-project\n```\n\n2. Install the following two dependencies:\n\n```bash\nnpm i threlte-uikit peerjs\n```\n\n3. Copy the `editor` folder in `src/routes` from this project into your projects `src/routes` folder.\n\n4. Either make sure your main scene is in `src/lib/components/Scene.svelte` or change the import in `src/routes/editor/[id]/vr/EditScene.svelte` to point to your main scene.\n\n5. make sure your vr device and pc are on the same network.\n\n6. run `npm run dev` in your project and navigate to `your-host-ip/editor/[your random id]/vr` on your vr device (replace `your random id` with your own string). You should see the scene from your main scene file.\n\n7. Open `your-host-ip/editor/[your random id]/pc` on your pc (with the same `your random id` as in step 5). Click connect, choose what you want to share (e.g. your screen or just a window) and click sharne.\n\n8. You should now see your pc screen in the vr scene. Edit the scene with using your computers mouse and keyboard and see the changes in vr.\n\nNote: some threlte components don't work in vr. Specificially when installing a fresh threlte project, the `\u003cContactShadow\u003e` component will cause the scene to not render in vr. You can remove it from your main scene file to fix this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflo-bit%2Fthrelte-vr-code-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflo-bit%2Fthrelte-vr-code-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflo-bit%2Fthrelte-vr-code-editor/lists"}