{"id":14982758,"url":"https://github.com/kanahiro/maplibre-vscode-extension","last_synced_at":"2026-01-25T17:15:50.269Z","repository":{"id":251768132,"uuid":"838360900","full_name":"Kanahiro/maplibre-vscode-extension","owner":"Kanahiro","description":"MapLibre Style Viewer/Editor in VSCode","archived":false,"fork":false,"pushed_at":"2025-01-03T19:57:53.000Z","size":657,"stargazers_count":52,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-30T10:13:09.794Z","etag":null,"topics":["foss4g","map","maplibre","typescript","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Kanahiro.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-05T13:35:38.000Z","updated_at":"2025-06-09T07:07:23.000Z","dependencies_parsed_at":"2024-08-05T17:01:35.212Z","dependency_job_id":"7472ff31-6310-4b75-9e7c-85d560dcfeef","html_url":"https://github.com/Kanahiro/maplibre-vscode-extension","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":"0.021276595744680882","last_synced_commit":"a428260ec2634b9939e1b0081e1ba89fa0a0a0b0"},"previous_names":["kanahiro/maplibre-vscode-extension"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/Kanahiro/maplibre-vscode-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kanahiro%2Fmaplibre-vscode-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kanahiro%2Fmaplibre-vscode-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kanahiro%2Fmaplibre-vscode-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kanahiro%2Fmaplibre-vscode-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kanahiro","download_url":"https://codeload.github.com/Kanahiro/maplibre-vscode-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kanahiro%2Fmaplibre-vscode-extension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264292935,"owners_count":23586061,"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":["foss4g","map","maplibre","typescript","vscode-extension"],"created_at":"2024-09-24T14:05:58.215Z","updated_at":"2026-01-25T17:15:50.259Z","avatar_url":"https://github.com/Kanahiro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maplibre-vscode-extension\n\n[![GitHub](https://img.shields.io/badge/github-maplibre--vscode--extension-8da0cb?logo=github)](https://github.com/Kanahiro/maplibre-vscode-extension)\n[![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/kiguchi.maplibre-vscode-extension)](https://marketplace.visualstudio.com/items?itemName=kiguchi.maplibre-vscode-extension)\n[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/kiguchi.maplibre-vscode-extension)](https://marketplace.visualstudio.com/items?itemName=kiguchi.maplibre-vscode-extension)\n[![Visual Studio Marketplace Rating](https://img.shields.io/visual-studio-marketplace/stars/kiguchi.maplibre-vscode-extension)](https://marketplace.visualstudio.com/items?itemName=kiguchi.maplibre-vscode-extension)\n\n## Usage\n\n1. Install the extension\n2. open `style.json` in editor\n3. open command palette and run `MapLibre: Launch Viewer`\n    - ![](https://github.com/Kanahiro/maplibre-vscode-extension/blob/main/doc/palette.png?raw=true)\n4. Viewer will open in new tab. When edit `style.json`, the viewer will update automatically.\n    - ![](https://github.com/Kanahiro/maplibre-vscode-extension/blob/main/doc/viewer.png?raw=true)\n\n### Validation\n\n![](https://github.com/Kanahiro/maplibre-vscode-extension/blob/main/doc/validation.png?raw=true)\n\n- style file named `*style.json` will be validated by JSON schema generated from type of `StyleSpecification`.\n- currently there is limitation to validate not nested values only.\n\n### Supported protocols\n\n- `https://path/to/file`\n- `pmtiles://https://path/to/file.pmtiles`\n\n```json\n\"sources\": {\n    \"openmaptiles\": {\n      \"type\": \"vector\",\n      \"url\": \"pmtiles://https://tile.openstreetmap.jp/static/planet-20240729.pmtiles\"\n      // \"tiles\": [\"pmtiles://https://tile.openstreetmap.jp/static/planet-20240729.pmtiles/{z}/{x}/{y}\"] is also okay\n    },\n    \"takeshima\": {\n      \"type\": \"vector\",\n      \"url\": \"https://tile.openstreetmap.jp/data/takeshima.json\"\n    }\n},\n```\n\n## Development\n\n### Prerequisites\n\n- Node.js 20.x or later\n- npm\n- Visual Studio Code\n\n### Setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/Kanahiro/maplibre-vscode-extension.git\ncd maplibre-vscode-extension\n\n# Install dependencies\nnpm install\n```\n\n### Running in Development Mode\n\n1. Open the project in VSCode\n2. Press `F5` to launch the Extension Development Host\n3. A new VSCode window will open with the extension loaded\n4. Open a `*style.json` file and test the extension\n\n### Available Scripts\n\n| Command | Description |\n|---------|-------------|\n| `npm run compile` | Type check, lint, and build |\n| `npm run watch` | Watch mode for development |\n| `npm run lint` | Run ESLint |\n| `npm run check-types` | Run TypeScript type checking |\n| `npm run package` | Build for production |\n| `npm run build-json-schema` | Generate JSON schema from MapLibre style spec |\n\n### Testing\n\n```bash\nnpm test\n```\n\nThis runs the VSCode extension tests using `@vscode/test-electron`.\n\n### Building for Release\n\n```bash\nnpm run package\n```\n\nThis creates the production build in the `dist/` directory.\n\n## Attribution\n\n- icon: \u003chttps://github.com/maplibre/maplibre.github.io/blob/main/static/img/maplibre%20old%20profile.png\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanahiro%2Fmaplibre-vscode-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanahiro%2Fmaplibre-vscode-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanahiro%2Fmaplibre-vscode-extension/lists"}