{"id":21569492,"url":"https://github.com/brucearmstrong007/sixe","last_synced_at":"2025-09-10T11:33:19.409Z","repository":{"id":134649745,"uuid":"611657219","full_name":"BruceArmstrong007/SIXE","owner":"BruceArmstrong007","description":"State Management Typescript Library for managing state in your web application","archived":false,"fork":false,"pushed_at":"2023-03-20T13:18:03.000Z","size":273,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T04:23:19.318Z","etag":null,"topics":["frontend","shared-worker","state-management","typescript","web-application"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sixe","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/BruceArmstrong007.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":"2023-03-09T09:23:50.000Z","updated_at":"2023-03-10T10:38:57.000Z","dependencies_parsed_at":"2025-01-24T12:39:06.944Z","dependency_job_id":null,"html_url":"https://github.com/BruceArmstrong007/SIXE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BruceArmstrong007/SIXE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceArmstrong007%2FSIXE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceArmstrong007%2FSIXE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceArmstrong007%2FSIXE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceArmstrong007%2FSIXE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BruceArmstrong007","download_url":"https://codeload.github.com/BruceArmstrong007/SIXE/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceArmstrong007%2FSIXE/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274455457,"owners_count":25288557,"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-10T02:00:12.551Z","response_time":83,"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":["frontend","shared-worker","state-management","typescript","web-application"],"created_at":"2024-11-24T11:09:37.059Z","updated_at":"2025-09-10T11:33:19.380Z","avatar_url":"https://github.com/BruceArmstrong007.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SIXE\n## Lightweight State Management Library for Angular, React, Vue and others\n\n[SIXE](/ico/sixe.ico)\n\nSIXE is a global state management tool built on top of typescript, that helps your client application manage its state regardless of the web framework/library you use,\n\n\n\n\n## Features\n- Works on top of any frontend typescript framework/library\n- State is outside main thread - runs in seperate thread for Performace\n- Maintains State aross tabs and windows - state managed in shared worker\n- Lightweight - Low unpack size\n- No dependencies\n\n## Tech\n- [ Typescript ] - Built on top of Typescript\n- [ Shared Worker ] - Shared worker is used to maintain state\n\nCheckout SIXE's Git Repo - [[public repository](https://github.com/BruceArmstrong007/SIXE)] on GitHub.\n\n## Usage\n    /* to initialize the service Appname is optional */\n    var stateService = new SixeStateService('AppName');\n    \n    /* to set/update state */\n    this.stateService.setState({\n      name: 'sixe',\n      data : ['grapes', 'tomato']\n    });\n    \n    /* to listen to events that changes the state */\n    stateService.sixe.onmessage = (event:any) =\u003e {\n        let state = event?.data;\n        console.log(state)\n    };\n\n    /* \n     once all browsers for this SPA (connections) are closed \n     inside window event listener 'beforeunload'\n    */\n      if (!this.state || this.state.connections == 1) stateService.close();\n    \nNote : \n- Angular users might need to run NgZone inside onmessage event function to get their state properly, \n- others can use their reactive variables to save/use the state you get from onmessage event function.\n\n## Examples (Angular ,React, Vue)\nhttps://stackblitz.com/@BruceArmstrong007/collections/sixe-typescript-state-management-tool\n \nExample in Angular - https://github.com/BruceArmstrong007/SIXE-Example-Angular- \n\n## Installation\n\nto Install SIXE\n\n```sh\nnpm i sixe \nor\nnpm i sixe@latest\n```\n\n## Support\n- All major desktop browers - Chrome, Edge, Firefox, Opera, Safari\n- Few mobile browsers - Firefox for Android, Safari on iOS\n\nFor more details visit [mdn web docs](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker)\n\n## License\n\nMIT\n## Issues\n Raise issues here - [github/issues](https://github.com/BruceArmstrong007/SIXE/issues)\n\n\n## Image for multi window state management\n\u003cimg width=\"959\" alt=\"image\" src=\"https://user-images.githubusercontent.com/48177059/226348113-f563e41e-579c-4c95-9fea-c6a2429ddf75.png\"\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrucearmstrong007%2Fsixe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrucearmstrong007%2Fsixe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrucearmstrong007%2Fsixe/lists"}