{"id":19562703,"url":"https://github.com/jamsocket/jamsocket-tldraw-demo","last_synced_at":"2025-04-27T00:31:56.738Z","repository":{"id":252282508,"uuid":"839969370","full_name":"jamsocket/jamsocket-tldraw-demo","owner":"jamsocket","description":"Demo showing how to run tldraw backends on Jamsocket.","archived":false,"fork":false,"pushed_at":"2024-08-08T21:04:14.000Z","size":90,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-09T20:42:48.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jamsocket-tldraw-demo.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamsocket.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-08T17:33:43.000Z","updated_at":"2024-08-09T06:43:53.000Z","dependencies_parsed_at":"2024-08-08T20:37:36.467Z","dependency_job_id":"99865d99-0153-4457-84fa-0d10542dc494","html_url":"https://github.com/jamsocket/jamsocket-tldraw-demo","commit_stats":null,"previous_names":["jamsocket/jamsocket-tldraw-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamsocket%2Fjamsocket-tldraw-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamsocket%2Fjamsocket-tldraw-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamsocket%2Fjamsocket-tldraw-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamsocket%2Fjamsocket-tldraw-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamsocket","download_url":"https://codeload.github.com/jamsocket/jamsocket-tldraw-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224050672,"owners_count":17247380,"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-11T05:15:25.626Z","updated_at":"2025-04-27T00:31:56.732Z","avatar_url":"https://github.com/jamsocket.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tldraw × Jamsocket demo\n\n## Installing\n\nIn `client` and `server`: `npm i`\n\n## Running locally\n\nIn `client`:\n\n    JAMSOCKET_DEV=true npm run dev\n\nIn `server`:\n\n    npx jamsocket dev\n\n## Deploying\n\nTo deploy the service, create a [Jamsocket](https://jamsocket.com) account.\n\nThrought the [Jamsocket web app](https://app.jamsocket.com) or the CLI, create a service (in this example, called `tldraw`):\n\n```bash\nnpx jamsocket service create tldraw\n```\n\nBuild and upload the server code to Jamsocket (note: requires [Docker](https://docker.com)):\n\n```bash\ncd server\nnpx jamsocket push tldraw -f ./Dockerfile\n```\n\nDeploy the client using a service that supports deploying Next.js from a git repo, like Vercel or Netlify. Set these environment variables:\n\n- `JAMSOCKET_ACCOUNT` - your Jamsocket account name (not email)\n- `JAMSOCKET_SERVICE` - the name of your service, e.g. `tldraw` if you followed the example above\n- `JAMSOCKET_TOKEN` - a Jamsocket access token. You can create one on the settings page of the Jamsocket web app\n\nTo persist data on S3, you must pass in `AWS_SECRET_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables. These can be passed in the\nenvironment when spawning (see `client/src/app/page.tsx`), but the recommended way is to use Jamsocket's new (beta) S3 integration. Reach out to\nhi@jamsocket.com for instructions on enabling this.\n\n### Automating deploys from GitHub\n\nThis git repo includes a workflow for automatically building and pushing to Jamsocket. To use it, clone this repo and set the same \n`JAMSOCKET_*` environment variables as for Vercel.\n\n### Bucket layout\n\n- `tldraw-doc.json` - the last persisted snapshot\n- `assets/\u003cid\u003e` - uploaded assets\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamsocket%2Fjamsocket-tldraw-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamsocket%2Fjamsocket-tldraw-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamsocket%2Fjamsocket-tldraw-demo/lists"}