{"id":16641363,"url":"https://github.com/cmstead/jsatom","last_synced_at":"2026-04-23T06:33:38.723Z","repository":{"id":25341276,"uuid":"28768666","full_name":"cmstead/jsatom","owner":"cmstead","description":"An atom implementation in common JS","archived":false,"fork":false,"pushed_at":"2015-03-22T19:28:08.000Z","size":216,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T14:31:24.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/cmstead.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}},"created_at":"2015-01-04T08:21:26.000Z","updated_at":"2015-03-22T19:28:09.000Z","dependencies_parsed_at":"2022-08-23T23:51:01.635Z","dependency_job_id":null,"html_url":"https://github.com/cmstead/jsatom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cmstead/jsatom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjsatom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjsatom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjsatom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjsatom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmstead","download_url":"https://codeload.github.com/cmstead/jsatom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjsatom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32169657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-10-12T07:46:20.826Z","updated_at":"2026-04-23T06:33:38.705Z","avatar_url":"https://github.com/cmstead.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSAtom\n======\n\nAn atom implementation in Javascript.\n\nJSAtom is an implementation of Clojure's atoms. One of the most important things to note about\natoms is they are specifically a mutable object handled with a mutator function.  Any mutation is applied\nto the atom only if the atom data hasn't changed during the execution of the mutator function.\n\nTo Dos\n\n##Atom module\n\n- [x] Create core atom module (atom.build)\n- [x] Build swap function (function swap)\n- [x] Implement watchers (function setWatcher)\n- [ ] Return unwatch function (return from setWatcher)\n- [ ] Handle assigned validator (function setValidator)\n- [x] Retrieve raw value (function deref)\n- [x] Compare old value and set new value (ensures old value value is still the current value and sets value)\n- [ ] Fire watcher events on atom\n- [ ] Remove watcher\n\n##JFP module extension\n\nAll of the collowing functions can/will have side effects\n\n- [x] atom (value)\n- [x] compareAndSet (atom, oldValue, newValue) (can fail)\n- [x] deref (atom, fn)\n- [ ] setValidator (atom, fn)\n- [x] setWatcher (atom, fn)\n- [ ] removeWatcher(atom, watcherId)\n- [x] swap (atom, fn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmstead%2Fjsatom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmstead%2Fjsatom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmstead%2Fjsatom/lists"}