{"id":13433266,"url":"https://github.com/umijs/hox","last_synced_at":"2025-05-15T20:03:14.133Z","repository":{"id":39351702,"uuid":"215471466","full_name":"umijs/hox","owner":"umijs","description":"State sharing for React components.","archived":false,"fork":false,"pushed_at":"2024-04-09T16:11:06.000Z","size":3068,"stargazers_count":1460,"open_issues_count":27,"forks_count":98,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-05-14T01:08:01.485Z","etag":null,"topics":["react","react-hooks","reactjs","state-management"],"latest_commit_sha":null,"homepage":"https://hox.js.org","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/umijs.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":"2019-10-16T06:16:57.000Z","updated_at":"2025-05-12T14:32:06.000Z","dependencies_parsed_at":"2023-02-03T15:45:46.661Z","dependency_job_id":"4b1e9f7b-1b7e-4bfc-ad95-723accf4e099","html_url":"https://github.com/umijs/hox","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umijs%2Fhox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umijs%2Fhox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umijs%2Fhox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umijs%2Fhox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umijs","download_url":"https://codeload.github.com/umijs/hox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414493,"owners_count":22067271,"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":["react","react-hooks","reactjs","state-management"],"created_at":"2024-07-31T02:01:23.329Z","updated_at":"2025-05-15T20:03:11.032Z","avatar_url":"https://github.com/umijs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","react","目录","Frameworks","React"],"sub_categories":["\u003ca id=\"state\"\u003e状态管理\u003c/a\u003e","State of the React","State Management"],"readme":"# Hox\n\nState sharing for React components.\n\n[![npm version](https://img.shields.io/npm/v/hox.svg?logo=npm)](https://www.npmjs.com/package/hox)\n[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/hox.svg?logo=javascript)](https://www.npmjs.com/package/hox)\n![React](https://img.shields.io/npm/dependency-version/hox/peer/react?logo=react)\n\n[English Doc](https://hox.js.org) · [中文文档](https://hox.js.org/zh/)\n\n\u003e This is the documentation for hox v2. If you are looking for the v1 doc, please go [here](https://github.com/umijs/hox/blob/v1/README.md).\n\n## Play Hox in Codesandbox\n\n[![Edit](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/awmleer/todo-app-with-hox/tree/master/)\n\n## Install\n\n```shell\nnpm install --save hox\n# or\nyarn add hox\n# or\npnpm add hox\n```\n\n## Why Hox?\n\n- Direct reuse of existing React knowledge, almost no learning cost, how you write React components, you can write Store\n- Designed for flexible refactoring, using the same DSL in Store and components allows you to convert a component's local state into a state shared between components at almost zero cost\n- Supports both local and global states, a good balance between flexibility and simplicity\n- Excellent performance and TypeScript support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumijs%2Fhox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumijs%2Fhox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumijs%2Fhox/lists"}