{"id":18562458,"url":"https://github.com/replit/codemirror-lang-svelte","last_synced_at":"2025-05-08T21:21:14.433Z","repository":{"id":63974290,"uuid":"572212325","full_name":"replit/codemirror-lang-svelte","owner":"replit","description":"Svelte language support for CodeMirror 6","archived":false,"fork":false,"pushed_at":"2024-06-21T21:28:53.000Z","size":425,"stargazers_count":30,"open_issues_count":5,"forks_count":2,"subscribers_count":33,"default_branch":"main","last_synced_at":"2025-02-02T02:48:41.008Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replit.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":"2022-11-29T19:40:32.000Z","updated_at":"2024-05-31T04:04:25.000Z","dependencies_parsed_at":"2024-06-18T17:04:15.966Z","dependency_job_id":"a8913e36-009c-4978-98f6-15644720d94b","html_url":"https://github.com/replit/codemirror-lang-svelte","commit_stats":{"total_commits":6,"total_committers":3,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"2ee2e462f065041e47a6bd8308b598791771f631"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-lang-svelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-lang-svelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-lang-svelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-lang-svelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replit","download_url":"https://codeload.github.com/replit/codemirror-lang-svelte/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238044093,"owners_count":19407128,"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-06T22:09:48.509Z","updated_at":"2025-02-10T02:08:00.592Z","avatar_url":"https://github.com/replit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeMirror Svelte Mode\n\nThis is a CodeMirror 6 extension that adds support for Svelte.\n\n### Usage\n\n```typescript\nimport { EditorState } from '@codemirror/state';\nimport { EditorView } from '@codemirror/view';\nimport { svelte } from \"@replit/codemirror-lang-svelte\";\nimport { basicSetup } from 'codemirror';\n\nnew EditorView({\n  state: EditorState.create({\n    doc: `\u003cscript\u003elet a = \"hello world\";\u003c/script\u003e \u003cdiv\u003e{a}\u003c/div\u003e`,\n    extensions: [basicSetup, svelte()],\n  }),\n  parent: document.querySelector('#editor'),\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Fcodemirror-lang-svelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplit%2Fcodemirror-lang-svelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Fcodemirror-lang-svelte/lists"}