{"id":25522288,"url":"https://github.com/launchscout/phx-live-state","last_synced_at":"2025-07-07T16:40:37.085Z","repository":{"id":65229048,"uuid":"588256948","full_name":"launchscout/phx-live-state","owner":"launchscout","description":"The npm package for LiveState","archived":false,"fork":false,"pushed_at":"2024-09-20T22:01:28.000Z","size":220,"stargazers_count":27,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-19T18:41:02.710Z","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/launchscout.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-01-12T17:41:23.000Z","updated_at":"2025-03-13T06:43:02.000Z","dependencies_parsed_at":"2024-01-13T22:49:33.281Z","dependency_job_id":"5f8afa70-cbcf-44f9-ba51-c1aa943b66d7","html_url":"https://github.com/launchscout/phx-live-state","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchscout%2Fphx-live-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchscout%2Fphx-live-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchscout%2Fphx-live-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchscout%2Fphx-live-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchscout","download_url":"https://codeload.github.com/launchscout/phx-live-state/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248325097,"owners_count":21084866,"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":[],"created_at":"2025-02-19T18:19:14.977Z","updated_at":"2025-04-11T01:32:21.492Z","avatar_url":"https://github.com/launchscout.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is LiveState?\n\nThe goal of LiveState is to make building highly interactive web applications easier to build. Currently in most such applications clients send requests and receive responses from and to a server API. This essentially results in two applications, with state being managed in both in an ad hoc way.\n\nLiveState uses a different approach. Clients dispatch events, which are sent to the server to be handled, and receive updates from the server any time application state changes. This allows state to have a single source of truth, and greatly reduces client code complexity. It also works equally well for applications where updates to state can occur indepently from a user initiated client side event (think \"real time\" applications such as chat, etc).\n\n# phx-live-state\n\nThis is a package to help you build clients for LiveState applications. Such clients connect to a server running [live_state](https://github.com/gaslight/live_state) and send events and receive state (and possibly other events). \n\n## Version compatibility\n\nThis version, 0.7.0, requires version 0.5.0 of later of the [`live_state` elixir library](https://github.com/launchscout/live_state) due to the addition of version tracking for state.\n\n## Installation\n\n```\nnpm install phx-live-state\n```\n\n## Documentation\n\nSee [api docs](https://launchscout.github.io/phx-live-state)\n\n## Example projects\n\nTake a look at the following example projects:\n\n* https://github.com/launchscout/livestate-comments\n* https://github.com/launchscout/live_state_comments\n* https://github.com/launchscout/discord_element\n* https://github.com/launchscout/discord-element\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchscout%2Fphx-live-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchscout%2Fphx-live-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchscout%2Fphx-live-state/lists"}