{"id":20194452,"url":"https://github.com/rocicorp/reflect-starter-ts-vanilla","last_synced_at":"2026-05-11T10:35:31.281Z","repository":{"id":195967672,"uuid":"693586889","full_name":"rocicorp/reflect-starter-ts-vanilla","owner":"rocicorp","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-15T10:49:53.000Z","size":130,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-03T07:43:41.527Z","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/rocicorp.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}},"created_at":"2023-09-19T10:17:17.000Z","updated_at":"2023-10-18T22:04:58.000Z","dependencies_parsed_at":"2023-09-20T20:29:57.631Z","dependency_job_id":null,"html_url":"https://github.com/rocicorp/reflect-starter-ts-vanilla","commit_stats":null,"previous_names":["rocicorp/reflect-starter-ts-vanilla"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rocicorp/reflect-starter-ts-vanilla","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-ts-vanilla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-ts-vanilla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-ts-vanilla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-ts-vanilla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocicorp","download_url":"https://codeload.github.com/rocicorp/reflect-starter-ts-vanilla/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-ts-vanilla/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27307163,"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-11-28T02:00:06.623Z","response_time":58,"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":[],"created_at":"2024-11-14T04:09:05.136Z","updated_at":"2025-11-28T12:06:24.999Z","avatar_url":"https://github.com/rocicorp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Reflect/Vite/TypeScript/Vanilla Starter\n\nThis is the Vite TS/Vanilla starter app (`npm create vite@latest`) adjusted to use Reflect instead of in-memory state.\n\n## Install\n\n```bash\nnpm install\n```\n\n## Dev\n\nIn one shell, start the Reflect dev server:\n\n```bash\nnpx @rocicorp/reflect dev\n```\n\nIn another shell, start the UI dev server:\n\n```bash\nnpm run dev\n```\n\nOpen http://localhost:5173/ in two tabs and click the increment button.\n\n## Deploy Reflect\n\nDeploy the Reflect server to relect.net:\n\n```bash\nnpx @rocicorp/reflect publish\n```\n\nChange the `serverOrigin` Reflect parameter to point to the production server with a `wss` protocol:\n\n```js\nconst r = new Reflect({\n  userID: \"someUser\",\n  roomID: \"myRoom\",\n  // Whatever publish printed out --  note `wss` protocol\n  socketOrigin:\n    \"wss://reflect-starter-ts-vanilla.rocicorp-bot.reflect-server.net\",\n  mutators,\n});\n```\n\nRun the UI against the deployed server:\n\n```bash\nnpm run dev\n```\n\nYou can also publish the UI anywhere, for example Vercel:\n\n```\nnpx vercel\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocicorp%2Freflect-starter-ts-vanilla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocicorp%2Freflect-starter-ts-vanilla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocicorp%2Freflect-starter-ts-vanilla/lists"}