{"id":19999968,"url":"https://github.com/monntecc/store","last_synced_at":"2026-04-10T11:01:58.801Z","repository":{"id":196384109,"uuid":"695994259","full_name":"monntecc/store","owner":"monntecc","description":"Simple, light-way state library for JS/TS","archived":false,"fork":false,"pushed_at":"2023-09-27T10:18:05.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"latest","last_synced_at":"2025-01-09T02:52:10.596Z","etag":null,"topics":["javascript","node","npm","reactive","store","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@nylestroke/store","language":"TypeScript","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/monntecc.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":"2023-09-24T20:34:46.000Z","updated_at":"2024-08-07T11:41:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"449781d7-df80-416c-8dd3-1a411240d267","html_url":"https://github.com/monntecc/store","commit_stats":null,"previous_names":["nylestroke/store","monntecc/store"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monntecc%2Fstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monntecc%2Fstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monntecc%2Fstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monntecc%2Fstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monntecc","download_url":"https://codeload.github.com/monntecc/store/tar.gz/refs/heads/latest","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439484,"owners_count":19963095,"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":["javascript","node","npm","reactive","store","typescript"],"created_at":"2024-11-13T05:13:27.219Z","updated_at":"2025-12-31T01:06:37.229Z","avatar_url":"https://github.com/monntecc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## @nylestroke/store\n\n@nylestroke/store is a simple state container for JavaScript apps.\n\nIt helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test.\n\n## Installation\n\n```\nnpm install @nylestroke/store\n```\n\nFor more details, see [the NPM page](https://npmjs.com/package/@nylestroke/store).\n\n## Basic Example\n\n```js\nimport { Store } from '@nylestroke/store';\n\nconst store = new Store();\n\nconst firstCallback = state =\u003e {\n  console.log('first callback ', state); // callback function\n};\nconst firstConfig = state =\u003e { // there you can state, as you want\n  return state;\n};\n\nconst secondCallback = state =\u003e {\n  console.log('second callback ', state);\n};\nconst secondConfig = state =\u003e {\n  return [state];\n};\n\nstore.subscribe(firstCallback, firstConfig); // call subscription with callback and configuration\nstore.subscribe(secondCallback, secondConfig);\n\nstore.setState({ a: 1 }); // add value to state (not set)\nstore.clearState(); // clear the state\nstore.setState({ a: 2 });\nstore.setState({ b: 1 });\nstore.cutState('b'); // delete key from a state\nstore.setState({ b: 2 });\n```\n\n## License\n\n[MIT](https://github.com/nylestroke/store/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonntecc%2Fstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonntecc%2Fstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonntecc%2Fstore/lists"}