{"id":19122592,"url":"https://github.com/vulcanjs/vulcan-vscode-snippets","last_synced_at":"2026-02-03T03:02:24.353Z","repository":{"id":132086413,"uuid":"206586365","full_name":"VulcanJS/vulcan-vscode-snippets","owner":"VulcanJS","description":"The official snippets extension for Vulcan.js","archived":false,"fork":false,"pushed_at":"2019-10-24T19:35:04.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-27T17:51:59.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/VulcanJS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-05T14:39:40.000Z","updated_at":"2019-10-27T11:37:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"21c68676-acbb-4142-b3b7-c34f1559d323","html_url":"https://github.com/VulcanJS/vulcan-vscode-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VulcanJS/vulcan-vscode-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fvulcan-vscode-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fvulcan-vscode-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fvulcan-vscode-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fvulcan-vscode-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VulcanJS","download_url":"https://codeload.github.com/VulcanJS/vulcan-vscode-snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VulcanJS%2Fvulcan-vscode-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29029762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T02:28:16.591Z","status":"ssl_error","status_checked_at":"2026-02-03T02:27:48.904Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-09T05:22:08.572Z","updated_at":"2026-02-03T03:02:24.338Z","avatar_url":"https://github.com/VulcanJS.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# VulcanJS Snippets\n\nThe official Snippets extension for VulcanJS.\n\n## Supported languages\n\n- JavaScript (.js)\n- JavaScript React (.jsx)\n\nSupport for TypeScript and TypeScript React will be added when the core framework supports it.\n\n## Supported snippets\n\n### `addRoute`\n\n[Docs](http://docs.vulcanjs.org/routing.html#Adding-Routes) | Add a route with a registered component\n```js\naddRoute({ name: '', path: '/path', componentName: '' });\n\n```\n\n### `addRouteComponent`\n\n[Docs](http://docs.vulcanjs.org/routing.html#Adding-Routes) | Add a route with a direct component\n```js\naddRoute({ name: '', path: '/path', component:  });\n\n```\n\n### `createCollection`\n\n[Docs](http://docs.vulcanjs.org/schemas.html#Creating-Collections) | Create a collection with custom queries \u0026 mutations\n```js\nconst MyDocuments = createCollection({\n  collectionName: 'MyDocuments',\n  typeName: 'MyDocument',\n  schema: mySchema,\n  resolvers: myResolvers,\n  mutations: myMutations,\n});\n\n```\n\n### `createDefaultCollection`\n\n[Docs](http://docs.vulcanjs.org/schemas.html#Creating-Collections) | Create a collection with default queries \u0026 mutations\n```js\nconst MyDocuments = createCollection({\n  collectionName: 'MyDocuments',\n  typeName: 'MyDocument',\n  schema: mySchema,\n  resolvers: getDefaultResolvers('MyDocument'),\n  mutations: getDefaultMutations('MyDocument'),\n});\n\n```\n\n### `registerComponent`\n\n[Docs](http://docs.vulcanjs.org/theming.html#Registering-Components) | Register a new component\n```js\nregisterComponent({ name: 'MyComponent', component: MyComponent, hocs: [] });\n\n```\n\n### `registerFragment`\n\n[Docs](http://docs.vulcanjs.org/fragments.html#Registering-Fragments) | Register a new fragment\n```js\nregisterFragment(`\n  fragment myFragment on MyType {\n\n  }\n`)\n\n```\n\n### `newField`\n\n[Docs](http://docs.vulcanjs.org/schemas.html#Example) | Insert a field inside a schema\n```js\nmyFieldName: {\n  type: String,\n  label: 'MyFieldName',\n  optional: true,\n  canRead: [],\n  canCreate: [],\n  canUpdate: [],\n},\n\n```\n\n### `addField`\n\n[Docs](http://docs.vulcanjs.org/schemas.html#Extending-Schemas) | Extend an exisiting collection with a new field\n```js\n.addField({\n  fieldName: 'myFieldName',\n  fieldSchema: {\n    type: String,\n    optional: true,\n    canRead: [],\n    canCreate: [],\n    canUpdate: [],\n  },\n});\n\n```\n\n\n### `importvulcancore`\n\nCreate an import from `meteor/vulcan:core`\n```js\nimport { } from 'meteor/vulcan:core';\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvulcanjs%2Fvulcan-vscode-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvulcanjs%2Fvulcan-vscode-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvulcanjs%2Fvulcan-vscode-snippets/lists"}