{"_id":"@adamasvr/imgui","_rev":"6-bf3f75dff64025dc4632b2ccf798d70f","name":"@adamasvr/imgui","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@adamasvr/imgui","version":"1.0.1","author":{"name":"Adamas VR, Inc."},"license":"BSD-2-Clause","_id":"@adamasvr/imgui@1.0.1","maintainers":[{"name":"zekailin00","email":"zekailin00@gmail.com"}],"homepage":"https://github.com/adamas-vr/imgui-adamas#readme","bugs":{"url":"https://github.com/adamas-vr/imgui-adamas/issues"},"dist":{"shasum":"4a25ba67a04d5e3d5fd2823b4ae388a329482100","tarball":"https://registry.npmjs.org/@adamasvr/imgui/-/imgui-1.0.1.tgz","fileCount":15,"integrity":"sha512-j2GpXgZoFDsWc2/AKRGQxGtpGB7WDL9z7DYb5fszenvTcCdu9jEIcB8NUR103WICMmyOfMxHpTjjhwYOjlh7XA==","signatures":[{"sig":"MEUCIQCiEcfW2dM+OFMLA0fWf+/8nX3e5IPisfRC1dIiXB80lwIgXNZDzHZG0V8VWoKhsKVHIBrEZ1mebfTO68US8puj3rw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3874906},"main":"index","gitHead":"666e394c96cb61f2a84942625ebe31450f92aa31","private":false,"_npmUser":{"name":"zekailin00","email":"zekailin00@gmail.com"},"repository":{"url":"git+ssh://git@github.com/adamas-vr/imgui-adamas.git","type":"git"},"_npmVersion":"10.9.2","description":"Dear ImGui with a custom backend for Adamas VR projects","directories":{},"_nodeVersion":"22.14.0","dependencies":{"ts-node":"^10.9.2","gl-matrix":"^3.4.4","@adamasvr/sdk":"^0.3.7"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/node":"^25.6.2"},"_npmOperationalInternal":{"tmp":"tmp/imgui_1.0.1_1779502763526_0.7003741191377013","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@adamasvr/imgui","version":"1.0.2","keywords":["adamas","vr","typescript","imgui"],"author":{"name":"Adamas VR, Inc."},"license":"BSD-2-Clause","_id":"@adamasvr/imgui@1.0.2","maintainers":[{"name":"zekailin00","email":"zekailin00@gmail.com"}],"homepage":"https://github.com/adamas-vr/imgui-adamas#readme","bugs":{"url":"https://github.com/adamas-vr/imgui-adamas/issues"},"dist":{"shasum":"2991aaf619b8714fdd7e96e146435f78b35f4f2e","tarball":"https://registry.npmjs.org/@adamasvr/imgui/-/imgui-1.0.2.tgz","fileCount":15,"integrity":"sha512-4SpALQ6MRWHWZ/7e5oABxuFv1949/5dDiJ5M1KVvCpsxQEzm0Wn8f/ASeNa1lxsPfZn7DhbRNRam5dSRBo3Wnw==","signatures":[{"sig":"MEYCIQCwLWYuORc6HTcFyKPJ2pt6ckobiDw2SfitnE3c9d3wrAIhALMyj3OKs1XNEU1rnWxFws777/pp9AeLgCsy7LD7fRu/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3886705},"main":"index","gitHead":"53fd80f19f3cbed303db343b5b67913f21bdca30","private":false,"_npmUser":{"name":"zekailin00","email":"zekailin00@gmail.com"},"repository":{"url":"git+ssh://git@github.com/adamas-vr/imgui-adamas.git","type":"git"},"_npmVersion":"11.12.1","description":"Dear ImGui with a custom backend for Adamas VR projects","directories":{},"_nodeVersion":"25.9.0","dependencies":{"ts-node":"^10.9.2","gl-matrix":"^3.4.4","@adamasvr/sdk":"^0.4.3"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/node":"^25.6.2"},"_npmOperationalInternal":{"tmp":"tmp/imgui_1.0.2_1779919835512_0.15221269905273171","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@adamasvr/imgui","version":"1.0.3","author":{"name":"Adamas VR, Inc."},"license":"BSD-2-Clause","private":false,"description":"Dear ImGui with a custom backend for Adamas VR projects","keywords":["adamas","vr","typescript","imgui"],"main":"index","repository":{"type":"git","url":"git+ssh://git@github.com/adamas-vr/imgui-adamas.git"},"bugs":{"url":"https://github.com/adamas-vr/imgui-adamas/issues"},"homepage":"https://github.com/adamas-vr/imgui-adamas#readme","devDependencies":{"@types/node":"^25.6.2","typescript":"^6.0.3"},"dependencies":{"@adamasvr/sdk":"^0.4.4","gl-matrix":"^3.4.4","ts-node":"^10.9.2"},"gitHead":"ff68ce1d1c7128d423eb6b43a80a1c6397aeef9c","_id":"@adamasvr/imgui@1.0.3","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-3+DwjI6XWlmX/5P6Vw1fvXZA1Zd6/KLsvUlv4KGyjGsC4VQH7PmsX+50hJhBM9/BVCx4GkFFDv4D7p+VXdb3uQ==","shasum":"038c2e9de9270aa6a5c565f0f8bdec646805fd5d","tarball":"https://registry.npmjs.org/@adamasvr/imgui/-/imgui-1.0.3.tgz","fileCount":15,"unpackedSize":3886858,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEsoFMF4FSlR+DBXp3VTKdOPK6MMD4PzVDKAWesFJQWDAiBIB1QXiCyrMfZrohw89jE0Jfyxi1Vu/QpavypnLncP2w=="}]},"_npmUser":{"name":"zekailin00","email":"zekailin00@gmail.com"},"directories":{},"maintainers":[{"name":"zekailin00","email":"zekailin00@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/imgui_1.0.3_1781238396117_0.9594552261538762"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-23T02:19:23.133Z","modified":"2026-06-12T04:26:36.425Z","1.0.0":"2026-05-23T02:16:01.799Z","1.0.1":"2026-05-23T02:19:23.718Z","1.0.2":"2026-05-27T22:10:35.742Z","1.0.3":"2026-06-12T04:26:36.292Z"},"bugs":{"url":"https://github.com/adamas-vr/imgui-adamas/issues"},"author":{"name":"Adamas VR, Inc."},"license":"BSD-2-Clause","homepage":"https://github.com/adamas-vr/imgui-adamas#readme","keywords":["adamas","vr","typescript","imgui"],"repository":{"type":"git","url":"git+ssh://git@github.com/adamas-vr/imgui-adamas.git"},"description":"Dear ImGui with a custom backend for Adamas VR projects","maintainers":[{"name":"zekailin00","email":"zekailin00@gmail.com"}],"readme":"# imgui-adamas\r\n\r\n`imgui-adamas` brings [Dear ImGui](https://github.com/ocornut/imgui) to the [Adamas VR](https://www.adamasvr.com/) platform through a custom Adamas backend and a TypeScript-friendly JavaScript distribution.\r\n\r\nThis project builds on the JavaScript cross-compilation and TypeScript interface provided by [imgui-js](https://github.com/flyover/imgui-js), then extends it with an Adamas-specific rendering backend in [imgui_impl_adamas.ts](imgui_impl_adamas.ts). It also includes a convenience helper in [imgui_window.ts](imgui_window.ts) for quickly creating an ImGui-backed panel in an Adamas project.\r\n\r\nFor Adamas platform documentation, see [Adamas Docs](https://docs.adamasvr.com/).\r\n\r\n## Overview\r\n\r\nThis library enables Adamas projects to render Dear ImGui user interfaces in VR. It is intended for VR developers who want a practical immediate-mode UI workflow for debugging tools, in-world control panels, development overlays, and custom runtime interfaces.\r\n\r\nThe project provides:\r\n\r\n- A Dear ImGui JavaScript build with TypeScript bindings.\r\n- A custom backend for rendering Dear ImGui on the Adamas VR platform.\r\n- A helper API for creating and updating an ImGui window with minimal setup.\r\n\r\n## Credits\r\n\r\nThis project is derived from and depends on prior work from the following projects:\r\n\r\n- [ocornut/imgui](https://github.com/ocornut/imgui) for the original Dear ImGui implementation.\r\n- [flyover/imgui-js](https://github.com/flyover/imgui-js) for the JavaScript cross-compilation and TypeScript interface used by this project.\r\n\r\n## Installation\r\n\r\nInstall the package from npm:\r\n\r\n```bash\r\nnpm install @adamasvr/imgui\r\n```\r\n\r\n## Quick Start\r\n\r\nImport the helper:\r\n\r\n```ts\r\nimport { CreateImGuiWindow } from \"@adamasvr/imgui\";\r\n```\r\n\r\nCreate the window during your Adamas project setup flow. The example below focuses only on how Dear ImGui is integrated with Adamas VR:\r\n\r\n```ts\r\nimport { Project } from \"@adamasvr/sdk\";\r\nimport { projectBundle } from \"adamasvr:editor\";\r\nimport { CreateImGuiWindow } from \"@adamasvr/imgui\";\r\n\r\nProject.FromBundle(projectBundle).Launch(async (sceneGraph, project) => {\r\n\tconst color = [0.2, 0.45, 1.0, 1.0];\r\n\r\n\tawait CreateImGuiWindow(\r\n\t\tproject,\r\n\t\t{\r\n\t\t\ttargetEntity: sceneGraph[\"@UI Panel\"].entityId,\r\n\t\t\tdisplayWidth: 600,\r\n\t\t\tdisplayHeight: 400,\r\n\t\t},\r\n\t\t(imgui) => {\r\n\t\t\timgui.Text(`Framerate: ${imgui.GetIO().Framerate.toFixed(1)} FPS`);\r\n\t\t\timgui.Separator();\r\n\t\t\timgui.Text(\"Example UI\");\r\n\t\t\timgui.Separator();\r\n\t\t\timgui.ColorEdit4(\"Color\", color);\r\n\t\t},\r\n\t);\r\n});\r\n```\r\n\r\n## Usage Notes\r\n\r\n`CreateImGuiWindow` is a convenience helper intended to simplify common setup and rendering patterns.\r\n\r\nFor fully custom Dear ImGui integration on Adamas, you can use the exports from [imgui_impl_adamas.ts](imgui_impl_adamas.ts) directly and treat [imgui_window.ts](imgui_window.ts) as a reference implementation. This approach is recommended when you need custom lifecycle control, rendering behavior, or a deeper integration with your project architecture.\r\n\r\n## Included Components\r\n\r\n- [imgui_impl_adamas.ts](imgui_impl_adamas.ts): Adamas-specific Dear ImGui backend.\r\n- [imgui_window.ts](imgui_window.ts): Helper for creating and rendering an ImGui window quickly.\r\n","readmeFilename":"README.md"}