{"id":16252981,"url":"https://github.com/neki-dev/colyseus-schema-hooks","last_synced_at":"2026-02-08T23:36:17.955Z","repository":{"id":248544782,"uuid":"829051436","full_name":"neki-dev/colyseus-schema-hooks","owner":"neki-dev","description":"🧩 React hooks for @colyseus/schema","archived":false,"fork":false,"pushed_at":"2025-02-02T21:25:16.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-01T04:38:18.892Z","etag":null,"topics":["colyseus","hook","listener","react","schema","value"],"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/neki-dev.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":"2024-07-15T16:52:30.000Z","updated_at":"2025-02-02T21:25:19.000Z","dependencies_parsed_at":"2024-10-27T21:32:03.040Z","dependency_job_id":"12936fed-2dfa-41cc-894b-8284ff4dcfbb","html_url":"https://github.com/neki-dev/colyseus-schema-hooks","commit_stats":null,"previous_names":["neki-dev/colyseus-schema-hooks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neki-dev/colyseus-schema-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neki-dev%2Fcolyseus-schema-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neki-dev%2Fcolyseus-schema-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neki-dev%2Fcolyseus-schema-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neki-dev%2Fcolyseus-schema-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neki-dev","download_url":"https://codeload.github.com/neki-dev/colyseus-schema-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neki-dev%2Fcolyseus-schema-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29249516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T22:49:53.206Z","status":"ssl_error","status_checked_at":"2026-02-08T22:49:51.384Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["colyseus","hook","listener","react","schema","value"],"created_at":"2024-10-10T15:15:35.741Z","updated_at":"2026-02-08T23:36:17.936Z","avatar_url":"https://github.com/neki-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ⚡ Colyseus Schema Hooks\n[![Version](https://badgen.net/npm/v/colyseus-schema-hooks)](https://npmjs.com/package/colyseus-schema-hooks)\n[![Small size](https://img.badgesize.io/neki-dev/colyseus-schema-hooks/main/dist/index.js)](https://github.com/neki-dev/colyseus-schema-hooks/blob/main/dist/index.js)\n[![Build](https://github.com/neki-dev/colyseus-schema-hooks/actions/workflows/build.yml/badge.svg)](https://github.com/neki-dev/colyseus-schema-hooks/actions/workflows/build.yml)\n\nReact hooks for [@colyseus/schema](https://github.com/colyseus/schema)\n\n.\n\n\n## Install\n\n```sh\nnpm i colyseus-schema-hooks\n```\n\n.\n\n## Hooks\n\n#### Get actual value of Schema property\n```ts\nconst value = useSchemaValue(schema, prop);\n```\n\n#### Subscribe to updates of Map/Set Schema\n```ts\nuseSchemaListener(schema, {\n  onAdd: (item) =\u003e {},\n  onChange: (item) =\u003e {},\n  onRemove: (item) =\u003e {},\n}, [depends]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneki-dev%2Fcolyseus-schema-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneki-dev%2Fcolyseus-schema-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneki-dev%2Fcolyseus-schema-hooks/lists"}