{"id":16318457,"url":"https://github.com/abhishiv/atom","last_synced_at":"2025-10-18T01:12:14.513Z","repository":{"id":151628928,"uuid":"316700506","full_name":"abhishiv/atom","owner":"abhishiv","description":"Simple atom structure inspired by clojure's atom. Mutations are JSON RFC 6902 patches.","archived":false,"fork":false,"pushed_at":"2020-12-16T20:05:26.000Z","size":1591,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-25T12:24:29.895Z","etag":null,"topics":["atom","atom-structure","jsonrfc6902"],"latest_commit_sha":null,"homepage":"https://abhishiv.github.io/atom","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/abhishiv.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":"2020-11-28T09:38:18.000Z","updated_at":"2022-02-04T03:23:32.000Z","dependencies_parsed_at":"2023-05-25T08:30:32.913Z","dependency_job_id":null,"html_url":"https://github.com/abhishiv/atom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishiv%2Fatom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishiv%2Fatom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishiv%2Fatom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhishiv%2Fatom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhishiv","download_url":"https://codeload.github.com/abhishiv/atom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239195470,"owners_count":19598036,"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":["atom","atom-structure","jsonrfc6902"],"created_at":"2024-10-10T22:23:35.284Z","updated_at":"2025-10-18T01:12:14.436Z","avatar_url":"https://github.com/abhishiv.png","language":"TypeScript","readme":"\n# @gratico/atom\n\n@gratico/atom\n=====\n\nSimple atom structure inspired by clojure's atom. Mutations are JSON RFC 6902 patches.\n\nInstall and use\n---------------\n\nTo use run `npm install -g @gratico/atom`\n\n    import {defAtom, commitPatch, defCursor, deref, defWatchableCursor} from \"@gratico/atom\"\n\n    const atom = defAtom({user: {profile: {name: \"John\"}}})\n\n    React.useLayoutEffect(() =\u003e {\n      const cursor = defWatchableCursor(atom, [\"user\", \"profile\"]);\n      cursor.addWatch(id, handler);\n      return () =\u003e {\n        cursor.removeWatch(id);\n      };\n    }, []);\n\n\n\n```\nexport * from \"./atom\";\n\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhishiv%2Fatom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhishiv%2Fatom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhishiv%2Fatom/lists"}