{"id":19131800,"url":"https://github.com/mark-when/view-client","last_synced_at":"2025-09-08T16:32:43.669Z","repository":{"id":163096084,"uuid":"597808154","full_name":"mark-when/view-client","owner":"mark-when","description":"Utility for a markwhen view to communicate with hosting app","archived":false,"fork":false,"pushed_at":"2024-11-16T19:09:33.000Z","size":202,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-16T20:18:30.864Z","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/mark-when.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-02-05T17:46:06.000Z","updated_at":"2024-11-16T19:09:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6f6611c-1493-488b-8a4a-9aa79ca8081e","html_url":"https://github.com/mark-when/view-client","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/mark-when%2Fview-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark-when%2Fview-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark-when%2Fview-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark-when%2Fview-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mark-when","download_url":"https://codeload.github.com/mark-when/view-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232328560,"owners_count":18506249,"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":"2024-11-09T06:16:07.731Z","updated_at":"2025-01-03T11:26:26.815Z","avatar_url":"https://github.com/mark-when.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markwhen view client\n\n## Usage\n\n```js\nimport { useLpc } from \"@markwhen/view-client\"\n\nconst { postRequest } = useLpc({\n  markwhenState(ms) {\n    // When there is some state change from the editor\n    console.log(ms)\n  }\n  appState(newState) {\n    // When the app state changes (dark mode, hovering event, selected event, etc)\n    console.log(newState)\n  }\n})\n```\n\n## Changelog\n\n## 1.4.4\n\n- Bump deps\n\n## 1.4.3\n\n- Bump parser\n- Add close function to close sockets and/or remove event listeners\n\n## 1.4.2\n\n- VS code support\n\n## 1.4.1\n\n- Error if nothing to post to\n\n### 1.4.0\n- Separate state into appState and markwhenState instead of sending both at the same time\n\n### 1.3.0\n- Bump parser (0.9.1)\n- Support for imports\n\n### 1.2.1\n- Bump parser (0.8.1)\n- Add colorMap to appState\n\n### 1.1.1\n- Use initially set state even if we have a socket connection\n\n### 1.1.0\n- Add websocket support","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark-when%2Fview-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmark-when%2Fview-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark-when%2Fview-client/lists"}