{"id":20683985,"url":"https://github.com/aaronc81/websap","last_synced_at":"2025-03-10T21:52:06.842Z","repository":{"id":98730119,"uuid":"148698764","full_name":"AaronC81/WebSAP","owner":"AaronC81","description":"Light stateful protocol on top of HTTP for multi-user, multi-instance apps","archived":false,"fork":false,"pushed_at":"2018-09-20T21:59:47.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T15:17:08.865Z","etag":null,"topics":["http","protocol","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/AaronC81.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":"2018-09-13T21:12:48.000Z","updated_at":"2018-09-20T21:59:48.000Z","dependencies_parsed_at":"2023-05-25T01:15:07.124Z","dependency_job_id":null,"html_url":"https://github.com/AaronC81/WebSAP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaronC81%2FWebSAP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaronC81%2FWebSAP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaronC81%2FWebSAP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AaronC81%2FWebSAP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AaronC81","download_url":"https://codeload.github.com/AaronC81/WebSAP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242933887,"owners_count":20208912,"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":["http","protocol","ruby"],"created_at":"2024-11-16T22:18:31.766Z","updated_at":"2025-03-10T21:52:06.784Z","avatar_url":"https://github.com/AaronC81.png","language":"Ruby","readme":"# WebSAP\nWebSAP is the **web session application protocol**. It allows multiple apps\nto run simulatenously on the same server, each having a virtually infinite\nnumber of concurrent sessions.\n\n## Protocol\n  - GET `/apps`: List supported apps\n  - GET `/apps/[app]/new`: Create a new app of type `app`. Returns the `id` of the\n  new session.\n  - GET `/apps/[id]/state`: Gets the state of the session.\n  - POST `/apps/[id]/message`: Posts a message to a session, invoking its app's\n  `transform` method.\n\n## Apps\nEach app implementation needs three things:\n  1. `name`: The name of the app.\n  2. `initial_state`: The initial state of any new session for this app.\n  3. `transform(state, action, options)`: A function which takes an existing\n  state reference, an action string, and an options hash. `state` should be\n  mutated based on `action` and `options`. Return `true` if everything was\n  valid with `action` and `options`, or false otherwise.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronc81%2Fwebsap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronc81%2Fwebsap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronc81%2Fwebsap/lists"}