{"id":16398826,"url":"https://github.com/sauldoescode/schtat","last_synced_at":"2025-09-11T22:38:38.486Z","repository":{"id":71027884,"uuid":"131762340","full_name":"SaulDoesCode/schtat","owner":"SaulDoesCode","description":"Let's manage ze schät: a different approach to state management WIP ","archived":false,"fork":false,"pushed_at":"2018-07-23T13:49:57.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T16:44:15.629Z","etag":null,"topics":["library","state-management","statemanager"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SaulDoesCode.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}},"created_at":"2018-05-01T20:56:54.000Z","updated_at":"2023-03-08T03:30:14.000Z","dependencies_parsed_at":"2023-03-22T07:48:18.633Z","dependency_job_id":null,"html_url":"https://github.com/SaulDoesCode/schtat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SaulDoesCode/schtat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fschtat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fschtat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fschtat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fschtat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaulDoesCode","download_url":"https://codeload.github.com/SaulDoesCode/schtat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaulDoesCode%2Fschtat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274719109,"owners_count":25337237,"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-11T02:00:13.660Z","response_time":74,"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":["library","state-management","statemanager"],"created_at":"2024-10-11T05:14:01.128Z","updated_at":"2025-09-11T22:38:38.451Z","avatar_url":"https://github.com/SaulDoesCode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Schtät is a state manager pronounced sh-tate\nNOTE: This is still a WIP, so there may be issues\n\n[![Build Status](https://travis-ci.org/SaulDoesCode/schtat.svg?branch=master)](https://travis-ci.org/SaulDoesCode/schtat)\n\nSchtät is a different approach to state management\nthat takes a flow/pipeline approach to mutations,\nwhich, then get distributed to various bindings.\n(like the observer pattern but with flow and bouncers)\n\n### How Do We manage ze schtät?\nWis a state factory representing a single value\nthat can be consumed, mutated, pre-screened, screened and observed at any stage\n(event sourcing is also possible) to produce consumable views (computed values),\nor binds which synchronize a state or state view with a property on any object.\n\n```js\nimport state from 'schat.js'\n\nconst counter = state({\n  val: 0,\n  screen: val =\u003e typeof val === 'number' \u0026\u0026 !isNaN(val) \u0026\u0026 val % 1 === 0,\n  mut (val) {\n    console.log(val)\n  },\n  fail (val, err) {\n    throw new Error(`Value: ${val}, Issue: ${err}`)\n  },\n  views: {\n    display: val =\u003e `The current counter value is ${val}.`\n  }\n})\n\n\nconst counterDisplay = document.querySelector('div.counter')\ncounter.bind(counterDisplay, 'textContent', 'display')\n\nsetInterval(() =\u003e counter.mutate(val =\u003e val + 1), 500)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsauldoescode%2Fschtat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsauldoescode%2Fschtat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsauldoescode%2Fschtat/lists"}