{"id":47921386,"url":"https://github.com/dodomatrix/solid-cursor-chat","last_synced_at":"2026-04-06T04:01:56.589Z","repository":{"id":43484506,"uuid":"457354331","full_name":"dodomatrix/solid-cursor-chat","owner":"dodomatrix","description":"\u003cCursorChat /\u003e SolidJS Component helps bring Figma's Cursor Chat to your web applications in less than 3 minutes, making real-time collaboration anywhere.","archived":false,"fork":false,"pushed_at":"2022-03-02T15:16:12.000Z","size":672,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T10:56:28.866Z","etag":null,"topics":["cursor-chat","presencejs","solidjs"],"latest_commit_sha":null,"homepage":"","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/dodomatrix.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}},"created_at":"2022-02-09T12:44:37.000Z","updated_at":"2024-06-18T12:16:59.000Z","dependencies_parsed_at":"2022-08-23T20:10:28.495Z","dependency_job_id":null,"html_url":"https://github.com/dodomatrix/solid-cursor-chat","commit_stats":null,"previous_names":["osdodo/solid-cursor-chat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dodomatrix/solid-cursor-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodomatrix%2Fsolid-cursor-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodomatrix%2Fsolid-cursor-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodomatrix%2Fsolid-cursor-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodomatrix%2Fsolid-cursor-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodomatrix","download_url":"https://codeload.github.com/dodomatrix/solid-cursor-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodomatrix%2Fsolid-cursor-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31389416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cursor-chat","presencejs","solidjs"],"created_at":"2026-04-04T06:07:41.768Z","updated_at":"2026-04-04T06:07:42.360Z","avatar_url":"https://github.com/dodomatrix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# solid-cursor-chat\n\n## 🧬 Introduction\n\nA SolidJS component helps bring Figma's Cursor Chat to your web applications in less than 3 minutes, making real-time collaboration anywhere. based on [Presencejs](https://presence.yomo.run).\n\n-   Press `Ctrl + /` to bring up the input box\n-   Press `ESC` to close the input box\n\n## 🤹🏻‍♀️ Quick Start\n\n### Installation\n\nby `npm`:\n\n```shell\n$ npm i --save solid-cursor-chat\n```\n\nby `yarn`:\n\n```shell\n$ yarn add solid-cursor-chat\n```\n\nby `pnpm`:\n\n```shell\n$ pnpm i solid-cursor-chat\n```\n\n### Request free dev/test account\n\nLogin with your Github account on `https://presencejs.yomo.run`, will get a free `app_id` and `app_secret`\n\nthen, add serverless functionality to [netlify](https://docs.netlify.com/functions/build-with-javascript):\n\n```javascript\n// example/functions/presence-auth.js\nconst fetch = require('node-fetch');\n\nexports.handler = async function (event, context) {\n    if (event.httpMethod === 'GET') {\n        try {\n            const response = await fetch('https://prsc.yomo.dev/api/v1/auth', {\n                method: 'POST',\n                headers: {\n                    'Content-Type': 'application/json',\n                },\n                body: JSON.stringify({\n                    app_id: process.env.APP_ID,\n                    app_secret: process.env.APP_SECRET,\n                }),\n            });\n            const data = await response.json();\n            const token = data.data;\n            if (token) {\n                return {\n                    statusCode: 200,\n                    body: JSON.stringify(token),\n                };\n            } else {\n                return {\n                    statusCode: 400,\n                    body: JSON.stringify({ msg: data.message }),\n                };\n            }\n        } catch (error) {\n            return {\n                statusCode: 500,\n                body: JSON.stringify({ msg: error.message }),\n            };\n        }\n    } else {\n        return {\n            statusCode: 400,\n            body: JSON.stringify({ msg: '' }),\n        };\n    }\n};\n```\n\nResponse data:\n\n```json\n{\n    \"token\": \"eyJhbGciOiJIUzI1...\"\n}\n```\n\n### Integrate to your project\n\n```javascript\nimport { render } from 'solid-js/web';\nimport CursorChat from 'solid-cursor-chat';\n// Import theme styles\n// import 'solid-cursor-chat/dist/esm/xinghuang.css';\nimport 'solid-cursor-chat/dist/esm/maolv.css';\n\nconst App = () =\u003e {\n    return (\n        \u003cCursorChat\n            showLatency\n            presenceURL=\"wss://prsc.yomo.dev\"\n            presenceAuthEndpoint=\"/.netlify/functions/presence-auth\"\n            avatar=\"https://cursor-chat-example.vercel.app/_next/image?url=%2Flogo.png\u0026w=256\u0026q=75\"\n        /\u003e\n    );\n};\n\nrender(App, document.getElementById('root'));\n```\n\n-   `presenceURL: string`: to set the YoMo's service address.\n-   `presenceAuthEndpoint: string`: to set api for getting access token\n-   `room?: string`: to set room.\n-   `showLatency?: boolean`: to show connected mesh server and the end-to-end latency.\n-   `avatar?: string`: to set avatar.\n-   `name?: string`: to set name.\n\n## LICENSE\n\n\u003ca href=\"/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-blue.svg\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodomatrix%2Fsolid-cursor-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodomatrix%2Fsolid-cursor-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodomatrix%2Fsolid-cursor-chat/lists"}