{"id":30180953,"url":"https://github.com/streamich/collaborative-monaco","last_synced_at":"2025-08-12T08:06:32.506Z","repository":{"id":293618601,"uuid":"726547042","full_name":"streamich/collaborative-monaco","owner":"streamich","description":"Collaborative editing support for Monaco editor. Binds JSON CRDT \"str\" node to a Monaco editor instance.","archived":false,"fork":false,"pushed_at":"2025-08-08T14:39:33.000Z","size":24169,"stargazers_count":4,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T16:29:07.844Z","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/streamich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"streamich"}},"created_at":"2023-12-02T17:43:34.000Z","updated_at":"2025-07-30T14:12:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"28408b35-6e95-43ae-91dd-bf65f58a6a93","html_url":"https://github.com/streamich/collaborative-monaco","commit_stats":null,"previous_names":["streamich/collaborative-monaco"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/streamich/collaborative-monaco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fcollaborative-monaco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fcollaborative-monaco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fcollaborative-monaco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fcollaborative-monaco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamich","download_url":"https://codeload.github.com/streamich/collaborative-monaco/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fcollaborative-monaco/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270024697,"owners_count":24514054,"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-08-12T02:00:09.011Z","response_time":80,"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":"2025-08-12T08:06:14.689Z","updated_at":"2025-08-12T08:06:32.497Z","avatar_url":"https://github.com/streamich.png","language":"TypeScript","funding_links":["https://github.com/sponsors/streamich"],"categories":[],"sub_categories":[],"readme":"# Collaborative editing for Monaco editor\n\nMakes a plain Monaco editor instance collaborative by binding it to a JSON CRDT\ndocument `str` node. This allows multiple users to edit the same document\njson-joy JSON CRDT document concurrently through the Monaco editor.\n\n\n## Usage\n\nInstallation:\n\n```\nnpm install json-joy monaco-editor collaborative-monaco\n```\n\nUsage:\n\n```ts\nimport {bind} from 'collaborative-monaco';\nimport * as monaco from 'monaco-editor';\nimport {Model} from 'json-joy/lib/json-crdt';\n\nconst model = Model.create(s.str('hello'));\n\nconst editor = monaco.editor.create(div, {\n  value: 'hello world',\n});\n\nconst unbind = bind(model.s.toApi(), editor);\n\n// When done, unbind the binding.\nbinding.unbind();\n```\n\n\n## React Usage\n\nInstallation:\n\n```\nnpm install json-joy monaco-editor collaborative-monaco @monaco-editor/react react react-dom\n```\n\nUsage:\n\n```tsx\nimport {Model, s} from 'json-joy/lib/json-crdt';\nimport {CollaborativeMonaco} from 'collaborative-monaco/lib/CollaborativeMonaco';\n\nconst model = Model.create(s.str('hello'));\n\nconst MyComponent = () =\u003e {\n  return \u003cCollaborativeMonaco str={model.s.toApi()} /\u003e\n};\n```\n\n\n\n## Preview\n\n- See [demo](https://streamich.github.io/collaborative-monaco).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fcollaborative-monaco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamich%2Fcollaborative-monaco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fcollaborative-monaco/lists"}