{"id":16254509,"url":"https://github.com/tim-smart/value-notifier-ts","last_synced_at":"2025-10-05T19:18:11.583Z","repository":{"id":59794459,"uuid":"539243736","full_name":"tim-smart/value-notifier-ts","owner":"tim-smart","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-15T03:36:47.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-29T10:33:22.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tim-smart.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}},"created_at":"2022-09-21T00:40:00.000Z","updated_at":"2023-09-22T00:36:11.000Z","dependencies_parsed_at":"2025-01-05T16:26:45.053Z","dependency_job_id":"489f7986-f121-41fb-84d7-063b14c66678","html_url":"https://github.com/tim-smart/value-notifier-ts","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":0.05405405405405406,"last_synced_commit":"45a22d1c6aea0dcf31bdc96a0904ec4f9f391574"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/tim-smart/value-notifier-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Fvalue-notifier-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Fvalue-notifier-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Fvalue-notifier-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Fvalue-notifier-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim-smart","download_url":"https://codeload.github.com/tim-smart/value-notifier-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Fvalue-notifier-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277515133,"owners_count":25831530,"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-09-29T02:00:09.175Z","response_time":84,"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-10T15:22:32.190Z","updated_at":"2025-10-05T19:18:11.552Z","avatar_url":"https://github.com/tim-smart.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# value-notifier-ts\n\nInspired by `ValueNotifer` from Flutter, `valueNotifer` is a simple way of\nlistening to changes and updating a value.\n\n## Example\n\n```typescript\nimport { valueNotifer } from \"value-notifier-ts\";\nimport { useValueListenable } from \"value-notifier-ts/react\";\n\nconst counter = valueNotifer(0);\n\nexport function CounterText() {\n  const count = useValueListenable(counter);\n  return \u003cdiv\u003eCurrent count: {count}\u003c/div\u003e;\n}\n\nexport function CounterButton() {\n  const increment = () =\u003e counter.update((count) =\u003e count + 1);\n\n  return \u003cbutton onClick={increment}\u003eIncrement\u003c/button\u003e;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-smart%2Fvalue-notifier-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim-smart%2Fvalue-notifier-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-smart%2Fvalue-notifier-ts/lists"}