{"id":17972823,"url":"https://github.com/reyemtm/wmts-server","last_synced_at":"2026-04-30T01:33:49.487Z","repository":{"id":86921182,"uuid":"394267699","full_name":"reyemtm/wmts-server","owner":"reyemtm","description":"WMTS tile server written in NodeJS that serves wmts services, XYZ tiles and tilejson from mbtiles containing vector or raster tiles.","archived":false,"fork":false,"pushed_at":"2022-02-11T22:12:46.000Z","size":52496,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T10:46:31.816Z","etag":null,"topics":["maps","nodejs","rasters","vector-tiles","webnaps","wmts"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reyemtm.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}},"created_at":"2021-08-09T11:38:41.000Z","updated_at":"2021-12-14T13:58:39.000Z","dependencies_parsed_at":"2023-03-13T19:49:06.732Z","dependency_job_id":null,"html_url":"https://github.com/reyemtm/wmts-server","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":0.06976744186046513,"last_synced_commit":"cec24718ab3455fb86f2218e98673967d9adcbb9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyemtm%2Fwmts-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyemtm%2Fwmts-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyemtm%2Fwmts-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyemtm%2Fwmts-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reyemtm","download_url":"https://codeload.github.com/reyemtm/wmts-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092393,"owners_count":20882218,"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":["maps","nodejs","rasters","vector-tiles","webnaps","wmts"],"created_at":"2024-10-29T16:25:59.832Z","updated_at":"2026-04-30T01:33:44.447Z","avatar_url":"https://github.com/reyemtm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WMTS NodeJS Tile Server\n\nThis project is based on previous work from the following:\n\n- [mbtiles-server (Fastify)](https://github.com/tobinbradley/mbtiles-server)\n- [mbtileserver (GO)](https://github.com/consbio/mbtileserver)\n- [mbtiles-server (WMTS | Express)](https://github.com/DenisCarriere/mbtiles-server)\n- [tileserver (Express)](https://github.com/ovrdc/tileserver) \n- [mbtiles-server (Original)](https://github.com/chelm/mbtiles-server)\n\n## Why\n\nThe WMTS mbtiles-server project is no longer maintained so this project attempts to bring WMTS functionality to  a tile server that works with a modern version of NodeJS. My initial efforts centered around bringing this functionality to the [mbtileserver (GO)](https://github.com/consbio/mbtileserver) project, but the language barrier was steeper than anticipated. The result is this work-in-progress WMTS tile server for NodeJS with a few added features.\n\n\u003e NOTE: This is a work in progress and all routes and functions may be changed.\n\n## Purpose\n\nCreate a simple to use, performant tile server in NodeJS with WMTS and XYZ endpoints that reads from an `mbtiles` database files. This is part of larger a Free and OpenSource for GIS toolchain for publishing geospatial data to the web.\n\n## Features\n\n- Tilejson Endpoint\n- WMTS Endpoint (for use in ArcGIS Online)\n- Map Preview\n- Overzoom 3x for raster tiles\n\n## Requirements\n\n- mbtiles raster tiles must be 256x256\n- mbtiles must have the following metadata \n\n```JavaScript\n{\n  \"name\": \"any name\",\n  \"format\": \"jpg | png | jpeg | pbf\", //grid is not tested\n  \"minzoom\": 0, //min zoom of the tiles,\n  \"maxzoom\": 21, //max zoom of the tiles, 3x overzoom enabled on any tiles with a maxzoom \u003e 16\n  \"bounds\": [\n    -82.85133361816406,\n    39.55064761909319,\n    -82.36089706420898,\n    39.94935861566368\n  ] //bounds of the tiles\n}\n```\n\n## TODO\n\n- [ ] Test grid tiles\n\n## Goals\n\n- [ ] Migrate the WMTS endpoints over to the GO project above.\n- [ ] Create a universal Docker version\n\n---\n\n## Routes\n\n### List Available Tile Sets\n\n```text\nhttp://localhost:3000/\n```\n\n### Fetch a Tile\n\n```text\nhttp://localhost:3000/[mbtiles file]/[z]/[x]/[y].ext //extension is optional\n```\n\n### Tilejson\n\n```text\nhttp://localhost:3000/[mbtiles file]/tilejson //extension is optional\n```\n\n### WMTS\n\n```text\nhttp://localhost:3000/[mbtiles file]/WMTS //extension is optional\n```\n\nEx: http://localhost:3000/tiles.mbtiles/12/1128/1620.png\n\n## Notes inherited from mbtiles-server (Fastify)\n\nThe [Fastify](https://www.fastify.io/) extensions [fastify-caching](https://github.com/fastify/fastify-caching) and [fastify-cors](https://github.com/fastify/fastify-cors) are used to set tile expiration (in seconds) and CORS. By default, expiration is 48 hours and CORS is set to `access-control-allow-origin: *`. See the Fastify projects to learn how to customize those options further.\n\nIf you are on Windows and `npm install` returns a compilation error, try running `npm install -g windows-build-tools` first.\n\nBy default, Fastify only listens to requests from `localhost` for security reasons. You can change the `host` constant in `.env` to `0.0.0.0` to listen to all IPv4 addresses. See the [Fastify listen docs](https://www.fastify.io/docs/latest/Server/#listen) for more details.\n\nThis tile server was originally inspired by Christopher Helm's awesome [mbtiles-server](https://github.com/chelm/mbtiles-server).\n\n---\n\n### Notes\n\n```\nopenssl rand -base64 32\n```\n\n[https://webvm.io/](https://webvm.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freyemtm%2Fwmts-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freyemtm%2Fwmts-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freyemtm%2Fwmts-server/lists"}