{"id":21405591,"url":"https://github.com/yutounun/zustand-tracker","last_synced_at":"2025-10-04T19:34:05.457Z","repository":{"id":263953162,"uuid":"891896922","full_name":"yutounun/zustand-tracker","owner":"yutounun","description":"Zustand Tracker is a lightweight 🛠️ React component designed for debugging Zustand stores. It provides a visual, interactive panel to inspect the state of multiple stores in real-time. Perfect for developers who want to stay in control of their app state! 🚀","archived":false,"fork":false,"pushed_at":"2024-11-23T03:46:42.000Z","size":2725,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T16:46:24.009Z","etag":null,"topics":["tsc","typescript","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/zustand-tracker","language":"TypeScript","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/yutounun.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,"zenodo":null}},"created_at":"2024-11-21T06:35:14.000Z","updated_at":"2025-01-29T04:21:00.000Z","dependencies_parsed_at":"2024-11-21T07:31:20.717Z","dependency_job_id":"7e89fffa-1b41-48bc-896a-05d5fbf30430","html_url":"https://github.com/yutounun/zustand-tracker","commit_stats":null,"previous_names":["yutounun/zustand-tracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yutounun/zustand-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutounun%2Fzustand-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutounun%2Fzustand-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutounun%2Fzustand-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutounun%2Fzustand-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yutounun","download_url":"https://codeload.github.com/yutounun/zustand-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutounun%2Fzustand-tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278366548,"owners_count":25975089,"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-04T02:00:05.491Z","response_time":63,"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":["tsc","typescript","webpack"],"created_at":"2024-11-22T16:26:38.892Z","updated_at":"2025-10-04T19:34:05.441Z","avatar_url":"https://github.com/yutounun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐾 Zustand Tracker\n\nZustand Tracker is a lightweight 🛠️ React component designed for debugging Zustand stores. It provides a visual, interactive panel to inspect the state of multiple stores in real-time. Perfect for developers who want to stay in control of their app state! 🚀\n\n![Zustand Tracker Demo](images/zustand-tracker-ui.png)\n\n## 📦 Installation\n\n```bash\nnpm install zustand-tracker\n```\n\nor\n\n```bash\nyarn add zustand-tracker\n```\n\n## 🎉 Features\n\n- Inspect Zustand stores in real-time.\n- Toggle visibility with `Shift + Z`.\n- Interactive UI for clear and structured data display.\n- Fully customizable styles.\n\n## 🚀 Usage\n\n### Basic Example\n\nWrap the `ZustandTracker` in your application to debug Zustand stores.\n\n```tsx\nimport React from \"react\";\nimport { ZustandTracker } from \"zustand-tracker\";\nimport useYourStore from \"./yourStore\";\n\nexport default function App() {\n  const yourStoreData = useYourStore((state) =\u003e state);\n\n  return (\n    \u003c\u003e\n      \u003cZustandTracker\n        stores={{\n          YourStore: yourStoreData,\n        }}\n        panelStyle={{\n          // This is optional\n          backgroundColor: \"white\",\n          color: \"black\",\n        }}\n      /\u003e\n      {/* Your application components */}\n      \u003cdiv\u003eHello World\u003c/div\u003e\n    \u003c/\u003e\n  );\n}\n```\n\n## 📝 Props\n\n### `stores` (required)\n\n- **Type**: Record\u003cstring, unknown\u003e\n- **Description**: The Zustand stores you want to debug. Provide the stores as a key-value pair, where each key is the store name and the value is the current state.\n\n### `panelStyle` (optional)\n\n- **Type**: `CSSProperties`\n- **Description**: Customize the style of the debug panel. The following properties can be customized:\n\n  - **`position`**: The CSS `position` property for the panel. Default is `\"fixed\"`.\n  - **`top`**: Distance from the top of the viewport. Default is `0`.\n  - **`right`**: Distance from the right of the viewport. Default is `0`.\n  - **`width`**: Width of the debug panel. Default is `\"50vw\"`.\n  - **`height`**: Height of the debug panel. Default is `\"100vh\"`.\n  - **`background`**: Background color of the panel. Default is `\"rgba(0, 0, 0, 0.8)\"`.\n  - **`color`**: Text color used in the panel. Default is `\"white\"`.\n  - **`zIndex`**: The `z-index` of the debug panel. Default is `9999`.\n  - **`overflowY`**: Control vertical overflow. Default is `\"auto\"`.\n  - **`padding`**: Padding inside the debug panel. Default is `\"20px\"`.\n\n## ⚠️ Warnings\n\nIf you're using Next.js, ensure you wrap the usage of `ZustandTracker` with \"use client\" to avoid server-side rendering issues:\n\n```tsx\n\"use client\";\n\nimport React from \"react\";\nimport { ZustandTracker } from \"zustand-tracker\";\n\nexport default function DebugWrapper({\n  children,\n}: {\n  children: React.ReactNode;\n}) {\n  return (\n    \u003c\u003e\n      \u003cZustandTracker\n        stores={\n          {\n            /* Your stores here */\n          }\n        }\n      /\u003e\n      {children}\n    \u003c/\u003e\n  );\n}\n```\n\n## ✨ Benefits\n\n- Simplifies debugging for Zustand stores.\n- Seamlessly integrates into your React app.\n- Provides an interactive, developer-friendly interface.\n\n## 🛠️ Contribute\n\nFeel free to contribute to this project by creating issues or submitting pull requests on GitHub.\n\n## ❤️ Support\n\nIf you love Zustand Tracker, don't forget to ⭐ it on GitHub and share it with your friends!\n\nHappy Debugging! 🐾\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutounun%2Fzustand-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutounun%2Fzustand-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutounun%2Fzustand-tracker/lists"}