{"id":20194450,"url":"https://github.com/rocicorp/reflect-starter-vanilla","last_synced_at":"2025-04-10T10:07:04.974Z","repository":{"id":195967564,"uuid":"693562239","full_name":"rocicorp/reflect-starter-vanilla","owner":"rocicorp","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-19T09:47:18.000Z","size":133,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-24T08:55:26.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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-19T09:17:29.000Z","updated_at":"2023-11-11T22:03:57.000Z","dependencies_parsed_at":"2023-09-20T20:29:12.851Z","dependency_job_id":null,"html_url":"https://github.com/rocicorp/reflect-starter-vanilla","commit_stats":null,"previous_names":["rocicorp/reflect-starter-vanilla"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-vanilla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-vanilla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-vanilla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocicorp%2Freflect-starter-vanilla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocicorp","download_url":"https://codeload.github.com/rocicorp/reflect-starter-vanilla/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198882,"owners_count":21063628,"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-14T04:09:04.890Z","updated_at":"2025-04-10T10:07:04.936Z","avatar_url":"https://github.com/rocicorp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Reflect/Vite/Vanilla Starter\n\nThis is the Vite 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 serfver:\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: \"wss://reflect-starter-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-vanilla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocicorp%2Freflect-starter-vanilla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocicorp%2Freflect-starter-vanilla/lists"}