{"id":14981316,"url":"https://github.com/depasqualeorg/three-stats-mesh","last_synced_at":"2026-03-17T12:36:58.706Z","repository":{"id":57107550,"uuid":"465848437","full_name":"DePasqualeOrg/three-stats-mesh","owner":"DePasqualeOrg","description":"Shows the Stats module as a mesh in a Three.js scene to monitor performance","archived":false,"fork":false,"pushed_at":"2023-11-06T11:15:59.000Z","size":269,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T22:51:08.696Z","etag":null,"topics":["three-js","threejs"],"latest_commit_sha":null,"homepage":"https://unpkg.com/@depasquale/three-stats-mesh/example/index.html","language":"JavaScript","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/DePasqualeOrg.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}},"created_at":"2022-03-03T18:57:33.000Z","updated_at":"2023-04-19T21:01:57.000Z","dependencies_parsed_at":"2024-06-19T12:22:37.915Z","dependency_job_id":null,"html_url":"https://github.com/DePasqualeOrg/three-stats-mesh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DePasqualeOrg%2Fthree-stats-mesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DePasqualeOrg%2Fthree-stats-mesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DePasqualeOrg%2Fthree-stats-mesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DePasqualeOrg%2Fthree-stats-mesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DePasqualeOrg","download_url":"https://codeload.github.com/DePasqualeOrg/three-stats-mesh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238777454,"owners_count":19528813,"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":["three-js","threejs"],"created_at":"2024-09-24T14:03:19.037Z","updated_at":"2025-10-29T05:31:31.003Z","avatar_url":"https://github.com/DePasqualeOrg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Three.js Stats Mesh\n\nThis module allows you to place the [Stats](https://github.com/mrdoob/stats.js) indicator in a Three.js scene to monitor performance. This is particularly useful in immersive (VR) situations, when DOM elements are not visible.\n\n### Installation\n\n```\nnpm install @depasquale/three-stats-mesh\n```\n\n### Usage\n\nCreate an instance and make any desired adjustments to the object's position, scale, etc.:\n\n```javascript\nimport StatsMesh from '@depasquale/three-stats-mesh';\n\n// Set up the Three.js scene\n// ...\n\nconst statsMesh = new StatsMesh();\nstatsMesh.object.position.y = 1;\nstatsMesh.object.position.x = -2;\nstatsMesh.object.scale.setScalar(4);\nscene.add(statsMesh.object);\n```\n\nAdd the Stats element to the DOM if desired:\n\n```javascript\ndocument.body.appendChild(statsMesh.stats.dom);\n```\n\nAdd this to the render loop:\n\n```javascript\nstatsMesh.stats.update();\n```\n\nBefore removing the element, call this to stop the `setInterval` timer:\n\n```javascript\nstatsMesh.stop();\n```\n\n### Example\n\nA full example is provided in the `example` directory. To try it locally in your browser, run:\n```\nnpm run example\n```\n\nOr try it [here](https://unpkg.com/@depasquale/three-stats-mesh/example/index.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepasqualeorg%2Fthree-stats-mesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepasqualeorg%2Fthree-stats-mesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepasqualeorg%2Fthree-stats-mesh/lists"}