{"id":49833427,"url":"https://github.com/developer-1px/adorable","last_synced_at":"2026-05-13T22:37:59.369Z","repository":{"id":44703344,"uuid":"339180014","full_name":"developer-1px/adorable","owner":"developer-1px","description":"Action Dispatch On Reducer Effect Story / Observable based State Management Library","archived":false,"fork":false,"pushed_at":"2023-10-03T09:51:07.000Z","size":268,"stargazers_count":56,"open_issues_count":2,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-08-09T01:05:19.051Z","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/developer-1px.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":"2021-02-15T19:10:13.000Z","updated_at":"2025-03-16T23:43:47.000Z","dependencies_parsed_at":"2024-10-31T10:32:30.465Z","dependency_job_id":null,"html_url":"https://github.com/developer-1px/adorable","commit_stats":{"total_commits":17,"total_committers":4,"mean_commits":4.25,"dds":"0.17647058823529416","last_synced_commit":"5620ef5403ae42f5e6cc1ed44cf12ae81c295d05"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developer-1px/adorable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fadorable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fadorable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fadorable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fadorable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer-1px","download_url":"https://codeload.github.com/developer-1px/adorable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-1px%2Fadorable/sbom","scorecard":{"id":337080,"data":{"date":"2025-08-11","repo":{"name":"github.com/developer-1px/adorable","commit":"5620ef5403ae42f5e6cc1ed44cf12ae81c295d05"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"23 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-8266-84wp-wv5c","Warn: Project is vulnerable to: GHSA-3mv9-4h5g-vhg3","Warn: Project is vulnerable to: GHSA-353f-5xf4-qw67","Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw","Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T04:57:59.229Z","repository_id":44703344,"created_at":"2025-08-18T04:57:59.229Z","updated_at":"2025-08-18T04:57:59.229Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33003173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"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":[],"created_at":"2026-05-13T22:37:56.762Z","updated_at":"2026-05-13T22:37:59.357Z","avatar_url":"https://github.com/developer-1px.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adorable/store\n\n\u003e Observable based state management Library. Action / Dispatch / On / Reducer + able\n\n## What is adorable?\n\nTC39 Observable을 기반으로 하는 상태관리 라이브러리 입니다. RxJS와 Redux에서 영감을 받아 작성하였습니다. 두 라이브러리 모두 엄청 강력한 라이브러리이나 학습 진입장벽과 verbose한 문법으로\n인해 접근성이 떨어지는 부분을 보강하고 각각의 장점만을 결합할 수 있도록 하였습니다.\n\nhttps://github.com/tc39/proposal-observable\n\nhttps://rxjs-dev.firebaseapp.com/guide/overview\n\nhttps://redux.js.org/\n\n## Why adorable?\n\n웹 서비스가 거대해 질 수록 프론트엔트는 복잡성이라는 문제를 맞이 하게 됩니다. DOM API이라는 문제는 10년이 넘도록 잘 발전해온 React, Vue, Angular, Svelte와 같은 웹 프레임워크라는\n도구로 쉽게 제어가 가능해진 오늘날에도 상태관리와 비동기 처리라는 장벽은 남아 있습니다.\n\nRedux와 RxJs는 현재 점유율을 잃어 가고 있는 상황이지만 그 문제인식과 해법은 여전히 훌륭한 해결책이며 다소 아쉬운 문법과 진입장벽을 최소화 할 수 있도록 API를 최대한 간소하게 재설계 하였습니다.\n\n현재는 XState와 같은 유한 상태기계나 Recoil등의 family등의 최신 패러다임까지 흡수해 1) 상태관리 2) 비동기 3) 반응형 프로그래밍 4) 상태머신이라는 새로운 화두듣을 쉽게 사용할 수 있도록 패키지\n해 나갈 예정입니다.\n\n## What is direffent?\n\n- Rxjs: Pipe method vs DotChain vs Pipeline operator (TBD)\n- Redux: Why Reducer? Why Redux is verbose? What is benefit using Redux?\n- Props Drill, Context API\n\n## Read more (TBD)\n\n- 프론트 엔드에서 상태관리란 무엇이며 왜 필요할까?\n- 반응형 프로그래밍이란?\n\n## Goals\n\n\u003e Write less, Do More!\n\n---\n\n## State Management (Basic)\n\n### Simple Counter Example\n\n```typescript\n\n// store.ts\nconst _INCREARE = action(\"_INCREARE\")\nconst _DECREARE = action(\"_DECREARE\")\nconst _RESET = action(\"_RESET\")\n\nexport const counter$ = reducer(0, \"counter$\", counter$ =\u003e {\n\n  on(_INCREARE)\n    .writeTo(counter$, () =\u003e count =\u003e count + 1)\n\n  on(_DECREARE)\n    .writeTo(counter$, () =\u003e count =\u003e count - 1)\n\n  on(_RESET)\n    .writeTo(counter$, 0)\n})\n```\n\n```html\n\n\u003cscript\u003e\nimport {dispatch} from \"adorable\"\nimport {_INCREARE, _DECREARE, _RESET} from \"./store\"\nimport {counter$} from \"./store\"\n\nconst inc = () =\u003e dispatch(_INCREARE())\nconst dec = () =\u003e dispatch(_DECREARE())\nconst reset = () =\u003e dispatch(_RESET())\n\u003c/script\u003e\n\n\u003cdiv\u003ecount: {$counter$}\u003c/div\u003e\n\n\u003cbutton on:click={inc}\u003einc\u003c/button\u003e\n\u003cbutton on:click={dec}\u003edec\u003c/button\u003e\n\u003cbutton on:click={reset}\u003ereset\u003c/button\u003e\n```\n\n### action\n\n```typescript\nconst _INCREARE = action(\"_INCREARE\")\nconst _DECREARE = action(\"_DECREARE\")\n```\n\n### dispatch\n\n```typescript\nconst on_inc_click = () =\u003e dispatch(_INCREARE())\nconst on_dec_click = () =\u003e dispatch(_DECREARE())\n```\n\n### on\n\n```typescript\non(_INCREARE)\n  .map(...)\n  .filter(...)\n  .writeTo()\n\non(_DECREARE)\n  .map(...)\n  .filter(...)\n  .writeTo()\n\n```\n\n### reducer\n\n```typescript\nconst counter$ = reducer(0, \"counter$\", counter$ =\u003e {\n\n  on(_INCREARE)\n    .writeTo(counter$, () =\u003e count =\u003e count + 1)\n\n  on(_DECREARE)\n    .writeTo(counter$, () =\u003e count =\u003e count - 1)\n})\n```\n\n### ref\n\n```typescript\nconst ref$ = ref(0)\n\nref$.set(10)\nref$.update(value =\u003e value + 1)\n```\n\n### effect\n\n```typescript\n\non(_INCREARE)\n  .tap(value =\u003e console.log(\"INCREASE!\", value))\n  .createEffect()\n\n```\n\n## State Management (Advanced)\n\n### story\n\n```typescript\n\nstory(\"counter log\", () =\u003e {\n\n  on(_INCREARE)\n    .tap(value =\u003e console.log(\"INCREASE!\", value))\n    .createEffect()\n\n...\n})\n\n```\n\n### database\n\n```typescript\n\ndatabase(`/foo/bar`)\n  .tap(value =\u003e { ... })\n  .createEffect()\n\n\nconst nestedValue$ = database(`/foo/bar/baz`)\n\nnestedValue$.set(100)\nnestedValue$.update(baz =\u003e baz + 100)\n\nconst nestedValueArray$ = database(`/foo/bar/collection`).orderBy((a, b) =\u003e a.timestamp - b.timestamp)\n\n```\n\n### AQL\n\n```typescript\n\nconst nestedValue$ = SELECT(db.foo.bar)\n\nUPDATE(db.foo.bar).set(100)\nUPDATE(db.foo.bar).update(bar =\u003e bar + 100)\n\nDELETE(db.foo.bar)\n\nconst nestedValueArray$ = SELECT(db.foo.bar.collection).ORDER_BY((a, b) =\u003e a.timestamp - b.timestamp)\n\nconst todo = {\n  id: 1,\n  title: \"hello\"\n}\n\nINSERT(db.foo.bar.collection, \"id\").VALUES(todo)\n```\n\n### Adorable Fetching Query(TBD)\n\n- 서버 API연동시 어떻게 loading과 캐시와 invalidate를 관리할 것인가?\n\n\n### testCase (TBD)\n\n```typescript\n\ntestCase(\"test for counter\", ({given, when, then}) =\u003e {\n\n  given(streamA$, 10)\n  given(streamB$, \"abc\")\n  given(streamC$, \"def\")\n\n  when(_ACTION_A(\"abcdef\"))\n\n  then(() =\u003e {\n\n    on(_ACTION_A.REQUEST)\n      .exptectTo(\"abcdef\")\n\n    on(_ACTION_A.SUCCESS)\n      .exptectTo(300)\n\n    on(_ACTION_A.FAILTURE)\n      .exptectTo(300)\n  })\n\n})\n\n```\n\n---\n\n## RxJs\n\n- 개발 편의를 위해서 Rxjs의 pipe method를 다시 dot chain method로 만들고, 실전에서 꼭 쓰이는 operator만을 골라 단순화하고 typescript를 붙였습니다.\n\n### Observable\n\n#### static operator\n\n- toPromise\n- castAsync\n- combineLatest\n- concat\n- defer\n- EMPTY\n- forkjoin\n- fromEvent\n- fromEventPattern\n- fromPromise\n- merge\n- NEVER\n- timer\n- throwError\n\n#### operators\n\n- bufferCount\n- bufferTime\n- concat\n- count\n- concatMap\n- debounce\n- debounceTime\n- delay\n- distinctUntilChanged\n- duration\n- exhaustMap\n- filter\n- finalize\n- ignoreElements\n- initialize\n- last\n- map\n- mapTo\n- mergeAll\n- mergeMap\n- scan\n- share\n- shareReplay\n- skip\n- skipUntil\n- startWith\n- switchMap\n- tap\n- take\n- takeLast\n- takeUntil\n- takeWhile\n- throttle\n- throttleTime\n- timeout\n- trace\n- until\n- waitFor\n- withLatestFrom","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-1px%2Fadorable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper-1px%2Fadorable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-1px%2Fadorable/lists"}