{"id":15367105,"url":"https://github.com/dwightjack/yuzu-devtools","last_synced_at":"2025-10-11T03:30:29.397Z","repository":{"id":39546322,"uuid":"156815241","full_name":"dwightjack/yuzu-devtools","owner":"dwightjack","description":"Inspect and track changes of Yuzu Components.","archived":true,"fork":false,"pushed_at":"2023-03-28T01:12:49.000Z","size":752,"stargazers_count":0,"open_issues_count":25,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-30T03:56:38.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dwightjack.github.io/yuzu","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/dwightjack.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}},"created_at":"2018-11-09T05:36:23.000Z","updated_at":"2024-04-22T05:14:45.000Z","dependencies_parsed_at":"2025-01-28T14:38:20.251Z","dependency_job_id":"e26f8353-23f9-416b-b725-e488c1baff0a","html_url":"https://github.com/dwightjack/yuzu-devtools","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dwightjack/yuzu-devtools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightjack%2Fyuzu-devtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightjack%2Fyuzu-devtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightjack%2Fyuzu-devtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightjack%2Fyuzu-devtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwightjack","download_url":"https://codeload.github.com/dwightjack/yuzu-devtools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwightjack%2Fyuzu-devtools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006109,"owners_count":26084026,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-01T13:22:19.378Z","updated_at":"2025-10-11T03:30:29.040Z","avatar_url":"https://github.com/dwightjack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yuzu Inspector\n\nThis extension lets you inspect and track changes of Yuzu Components in a webpage by adding a new panel the your browser's devtools.\n\n![](images/devtools.png)\n\n## Installation\n\nThis extension supports:\n\n- [Chrome](https://chrome.google.com/webstore/detail/yuzu-inspector/)\n- [Firefox](https://addons.mozilla.org/en-US/firefox/addon/yuzu-inspector/)\n\n## Usage\n\nIn order to use this extension you need to enable [yuzu's development tools](https://dwightjack.github.io/yuzu/#/packages/yuzu/?id=developer-tools) on the JavaScript main entrypoint of the page.\n\n```js\nimport { Component, devtools } from 'yuzu';\n\ndevtools(Component); // enable development tools\n```\n\n**Note**: this extension will work in development mode only (`(process.env.NODE_ENV !== 'production'`).\n\nWhen detected, a new panel called _Yuzu_ will be added to the browser's development tools window.\n\n### Component Tree Panel\n\nThe panel on the left will let you navigate the component tree.\n\n![Extension left panel](images/left-panel.png)\n\nThe currently selected component instance will be stored as the `$yuzu0` variable on the global object (`window`). To inspect its state in the devtools console run:\n\n```js\n$yuzu0.state;\n```\n\n### Component Inspection Panels\n\n#### Element sub-panel\n\nWhen you select a component on the left panel, its options and state will be shown in the _Element_ sub-panel on the right.\n\n![Extension right panel](images/right-panel.png)\n\nBy clicking on the _eye_ icon that appears by hovering the left edge of a state's property, Yuzu Inspector will watch that properties changes and log them to the devtools console.\n\nYou can watch the entire state by selecting the _eye_ icon on the right of the panel's title (**Note**: If you watch the entire state, every other property state watcher will be removed).\n\n#### Watchers sub-panel\n\nThe _Watchers_ sub-panel show a list of the state properties you are currently watching.\n\n![Extension right panel](images/right-panel-watchers.png)\n\nIf the `Persist upon reloads` checkbox is checked the inspector will save the watcher and will re-apply it at page reload. This will let the inspector log properties changes occurring at initialization time.  \n**Note**: this feature is experimental and subject to possible false positive results.\n\nProperty watchers are grouped by component instance.\n\nBy clicking on the `show` link the component will be shown and selected on the Component Tree Panel.\n\nBy clicking on the _eye_ icon on the left of a property name you can remove the watcher.\n\n## Development\n\n```\ngit clone https://github.com/dwightjack/yuzu-devtools\ncd yuzu-devtools\nyarn\nyarn start\n```\n\nTo generate an unpacked extension run `yarn dev`.\n\n## Build from source\n\nThe following commands will generated a builded extension inside the `yuzu-devtools/dist` folder.\n\n```\ngit clone https://github.com/dwightjack/yuzu-devtools\ncd yuzu-devtools\nyarn\nyarn release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwightjack%2Fyuzu-devtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwightjack%2Fyuzu-devtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwightjack%2Fyuzu-devtools/lists"}