{"id":13407933,"url":"https://github.com/sanity-io/vscode-sanity","last_synced_at":"2025-10-12T11:54:30.375Z","repository":{"id":54947514,"uuid":"161398242","full_name":"sanity-io/vscode-sanity","owner":"sanity-io","description":"Visual Studio Code extension for developing applications powered by Sanity.io","archived":false,"fork":false,"pushed_at":"2025-03-24T11:35:12.000Z","size":1680,"stargazers_count":54,"open_issues_count":16,"forks_count":11,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-10-02T06:56:50.495Z","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/sanity-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-12-11T21:50:37.000Z","updated_at":"2025-08-07T03:12:22.000Z","dependencies_parsed_at":"2024-08-06T13:27:52.310Z","dependency_job_id":"6fccc8db-57e1-4948-868c-a092e2dbc4b5","html_url":"https://github.com/sanity-io/vscode-sanity","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sanity-io/vscode-sanity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fvscode-sanity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fvscode-sanity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fvscode-sanity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fvscode-sanity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanity-io","download_url":"https://codeload.github.com/sanity-io/vscode-sanity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanity-io%2Fvscode-sanity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011192,"owners_count":26084900,"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-10-12T02:00:06.719Z","response_time":53,"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":"2024-07-30T20:00:49.609Z","updated_at":"2025-10-12T11:54:30.345Z","avatar_url":"https://github.com/sanity-io.png","language":"TypeScript","funding_links":[],"categories":["Related projects"],"sub_categories":["Studio Inspiration"],"readme":"# vscode-sanity\n\nExtension for [Visual Studio Code](https://code.visualstudio.com/) that makes developing applications for [Sanity.io](https://www.sanity.io/) that much more awesome.\n\n## Features\n\n### GROQ syntax highlighting\n\nSyntax highlighting for the GROQ query language is available in the following situations:\n\n- Files with the `.groq` extension\n- Fenced code blocks in Markdown with the `groq` tag\n- Tagged template literals with the `groq` tag\n- Queries using the `defineQuery` method\n- Template literals prefixed with the `/* groq */` comment\n- Template literals starting with a `// groq` comment\n\n### Execute GROQ-queries\n\nWhen GROQ-queries are detected, the extension will allow you to run the query and displays the result as JSON in a separate tab.\n\nThe project ID and dataset used is determined by finding `sanity.cli.ts` in the workspace. If multiple files are found, the extension will prompt you to select one.\n\nIf the GROQ file/query has any variables, then extension asks for a relative filename of a JSON-file containing an object of key-value mappings. It autofills the param filename based on the current file with a `.json` extension, if it exists.\n\n![Execute GROQ in VS Code](https://raw.githubusercontent.com/sanity-io/vscode-sanity/main/screenshots/previewofquery.png)\n\n## Usage\n\nInstall the [VSCode Sanity.io Extension](https://marketplace.visualstudio.com/items?itemName=sanity-io.vscode-sanity). This extension adds syntax highlighting for GROQ-files and `groq` tags.\n\n## Development\n\n1.  Clone the repository - https://github.com/sanity-io/vscode-sanity\n2.  `npm install`\n3.  Open it in VSCode\n4.  Go to the debugging section and run the launch program \"Extension\"\n5.  This will open another VSCode instance with extension enabled\n6.  Open a file that should be syntax highlighted\n7.  Make changes to the extension code, then press (`Ctrl+R` or `Cmd+R` on Mac) in the syntax highlighted file to test the changes\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanity-io%2Fvscode-sanity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanity-io%2Fvscode-sanity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanity-io%2Fvscode-sanity/lists"}