{"id":15899139,"url":"https://github.com/prozi/pixi-stats","last_synced_at":"2025-05-07T04:09:43.268Z","repository":{"id":39864884,"uuid":"355007002","full_name":"Prozi/pixi-stats","owner":"Prozi","description":"WebGL stats for pixi.js or/and three.js","archived":false,"fork":false,"pushed_at":"2025-05-06T11:45:10.000Z","size":271,"stargazers_count":24,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T04:09:30.370Z","etag":null,"topics":["draw-calls","fps","frame","memory","memory-leak","monitor","pixi-stats","pixijs","textures","three-js-tool","threejs"],"latest_commit_sha":null,"homepage":"","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/Prozi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2021-04-06T00:12:39.000Z","updated_at":"2025-05-06T11:44:53.000Z","dependencies_parsed_at":"2024-06-19T01:38:33.737Z","dependency_job_id":"30247b0b-1cfa-4423-85ff-db419ccfb915","html_url":"https://github.com/Prozi/pixi-stats","commit_stats":{"total_commits":49,"total_committers":5,"mean_commits":9.8,"dds":0.5510204081632653,"last_synced_commit":"693c7981cb9129afc777b3f68f445e06e30ae001"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prozi%2Fpixi-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prozi%2Fpixi-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prozi%2Fpixi-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prozi%2Fpixi-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prozi","download_url":"https://codeload.github.com/Prozi/pixi-stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810273,"owners_count":21807759,"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":["draw-calls","fps","frame","memory","memory-leak","monitor","pixi-stats","pixijs","textures","three-js-tool","threejs"],"created_at":"2024-10-06T10:11:14.302Z","updated_at":"2025-05-07T04:09:43.254Z","avatar_url":"https://github.com/Prozi.png","language":"TypeScript","funding_links":["https://paypal.me/jacekpietal"],"categories":[],"sub_categories":[],"readme":"# pixi-stats\n\n[\u003cimg src=\"https://img.shields.io/npm/v/pixi-stats?style=for-the-badge\u0026color=success\" alt=\"npm version\" /\u003e](https://www.npmjs.com/package/pixi-stats?activeTab=versions)\n[\u003cimg src=\"https://img.shields.io/npm/dw/pixi-stats.svg?style=for-the-badge\u0026color=success\" alt=\"npm downloads per week\" /\u003e](https://www.npmjs.com/package/pixi-stats)\n\n#### JavaScript Performance Monitor\n\nThis library provides an info box that will help you monitor your code performance.\n\n- **FPS** Frames rendered in the last second. The higher the number the better.\n- **MS** Milliseconds needed to render a frame. The lower the number the better.\n- **MB** MBytes of allocated memory. (Run Chrome with `--enable-precise-memory-info`)\n- **DC** Draw Calls made within one frame.\n- **TC** Texture Count used within one frame.\n- **CUSTOM** User-defined panel support.\n\n### Screenshots\n\n![fps.png](https://raw.githubusercontent.com/mrdoob/stats.js/master/files/fps.png)\n![ms.png](https://raw.githubusercontent.com/mrdoob/stats.js/master/files/ms.png)\n![mb.png](https://raw.githubusercontent.com/mrdoob/stats.js/master/files/mb.png)\n![custom.png](https://raw.githubusercontent.com/mrdoob/stats.js/master/files/custom.png)\n\n### pixi.js\n\n#### Live demo\n\nhttps://prozi.github.io/oneforall/demo/?fps\n\n#### Usage\n\n```ts\nimport { Application } from 'pixi.js';\nimport { Stats } from 'pixi-stats';\n\nconst { renderer } = new Application();\nconst stats = new Stats(renderer);\n```\n\n#### Parameters\n\n```ts\nconst element = document.querySelector('#your_container');\nconst ticker = PIXI.ticker;\n\nnew Stats(renderer, element, ticker);\n```\n\n### three.js\n\n#### Live demo\n\nhttps://legacyofpain.app/?fps\n\n#### Usage\n\n```ts\nimport { Renderer } from 'three';\nimport { Stats } from 'pixi-stats';\n\nconst renderer = new Renderer();\nconst stats = new Stats(renderer);\n```\n\n### Installation\n\n```bash\nnpm install pixi-stats --save\n```\n\n### Set CSS\n\n```css\n#stats {\n  position: fixed;\n  top: 0;\n  left: 0;\n  z-index: 1000;\n}\n\n#stats canvas {\n  width: max(100px, 10vw, 10vh);\n  height: max(60px, 6vh, 6vw);\n  user-select: none;\n}\n```\n\n### Contributors\n\nThe credit goes to:\n\n- https://github.com/mrdoob/stats.js/ - FPS, MS, MB counters\n- https://github.com/eXponenta/gstatsjs/ - DC, TC counters\n- https://github.com/Prozi/ - maintainer, fixes, updates\n\n### License\n\nMIT\n\n### You can buy me a coffee\n\nhttps://paypal.me/jacekpietal\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprozi%2Fpixi-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprozi%2Fpixi-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprozi%2Fpixi-stats/lists"}