{"id":46785598,"url":"https://github.com/codeart1st/mapserver-wasm","last_synced_at":"2026-03-10T01:31:01.241Z","repository":{"id":248370868,"uuid":"828290460","full_name":"codeart1st/mapserver-wasm","owner":"codeart1st","description":"Build environment to compile MapServer with Emscripten to a WebAssembly package","archived":false,"fork":false,"pushed_at":"2026-03-02T14:22:54.000Z","size":2097,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-02T17:50:06.470Z","etag":null,"topics":["emscripten","geopackage","gpkg","javascript","mapserver","offlinecache","typescript","wasm","webassembly","wfs","wms"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/codeart1st.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-13T17:23:40.000Z","updated_at":"2026-01-23T13:15:31.000Z","dependencies_parsed_at":"2025-12-07T11:00:48.826Z","dependency_job_id":null,"html_url":"https://github.com/codeart1st/mapserver-wasm","commit_stats":null,"previous_names":["codeart1st/mapserver-wasm"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/codeart1st/mapserver-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeart1st%2Fmapserver-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeart1st%2Fmapserver-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeart1st%2Fmapserver-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeart1st%2Fmapserver-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeart1st","download_url":"https://codeload.github.com/codeart1st/mapserver-wasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeart1st%2Fmapserver-wasm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30320885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["emscripten","geopackage","gpkg","javascript","mapserver","offlinecache","typescript","wasm","webassembly","wfs","wms"],"created_at":"2026-03-10T01:31:00.699Z","updated_at":"2026-03-10T01:31:01.228Z","avatar_url":"https://github.com/codeart1st.png","language":"JavaScript","readme":"# mapserver-wasm\n\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eMapServer WFS and WMS inside Web Worker\u003c/strong\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  Build environment to compile MapServer with Emscripten to a WebAssembly package\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/codeart1st/mapserver-wasm/actions/workflows/ci.yml\"\u003e\n    \u003cimg src=\"https://github.com/codeart1st/mapserver-wasm/actions/workflows/ci.yml/badge.svg\" alt=\"Build status\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/codeart1st/mapserver-wasm/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/codeart1st/mapserver-wasm\" alt=\"MIT license\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## Features\n\n- Use MapServer inside your browser\n- Expose WFS 2.0.0 and WMS 1.3.0 services\n- Read vector and raster data from GeoPackage\n\n# ThirdParty Dependencies\n\n|Name|Version|Home page|License|Status|\n|----|-------|---------|-------|-------|\n|**MapServer**|8.6.0|https://mapserver.org/|MIT|✅|\n|**GDAL/OGR**|3.12.0|https://gdal.org/|MIT/X style|✅|\n|**PROJ**|9.7.1|https://proj.org/|MIT/X style|✅|\n|**GEOS**|3.14.1|https://libgeos.org/|LGPL-2.1|✅|\n|**SQLite**|3.51.1|https://www.sqlite.org/|Public Domain|✅|\n|**Libxml2**|2.15.1|http://xmlsoft.org/|MIT|✅|\n\n✅ up-to-date | 🚧 needs-update | Last update check 07.12.2025\n\n# Getting started\n\n## Installation\n\nTo download `mapserver-wasm` run:\n\n\n```sh\nnpm install mapserver-wasm\n# or\nyarn add mapserver-wasm\n```\n\n## Usage\n\n```js\nimport MapServer from 'mapserver-wasm'\n\nMapServer().then(async Module =\u003e {\n  const WORKERFS = Module.FS.filesystems['WORKERFS']\n  const MEMFS = Module.FS.filesystems['MEMFS']\n\n  Module.FS.mkdir('/ms')\n  Module.FS.mkdir('/proj')\n\n  try {\n    WORKERFS.node_ops.mknod = MEMFS.node_ops.mknod // GDAL needs temporary file support\n    Module.FS.mount(WORKERFS, {\n      blobs: [\n        { name: 'test.gpkg', data: /* gpkg blob */ }\n      ]\n    }, '/ms')\n    Module.FS.writeFile('/proj/epsg', crsDefinitions.map(({ crs, definition }) =\u003e {\n      return `\u003c${crs.replace('EPSG:', '')}\u003e${definition}\u003c\u003e`\n    }).join('\\n'), { flags: 'w+' })\n    // ...\n    resolve()\n  } catch (e) {\n    reject(e)\n  }\n})\n```\n\nPlease look into the [demo project](https://github.com/codeart1st/mapserver-wasm/tree/main/demo) or into the [test folder](https://github.com/codeart1st/mapserver-wasm/tree/main/test) for further information.\n\n# Development\n\n## Required Web APIs\n\n[WebAssembly 1.0](https://webassembly.org/) | [WebAssembly Exception Handling](https://github.com/WebAssembly/exception-handling/blob/master/proposals/exception-handling/Exceptions.md)\n\n## Checkout\n\n```sh\ngit clone --recurse-submodules git@github.com:codeart1st/mapserver-wasm.git\n```\n\n```sh\ngit clone git@github.com:codeart1st/mapserver-wasm.git\ngit submodule update --init --recursive\n```\n\n## Update\n\n```sh\ngit pull --recurse-submodules\n```\n\n## Compilation\n\nStart the build container with the following command to ensure the filesystem permissions for newly created files are correct.\n```sh\ndocker run -it --rm -v $(pwd):/src -v /etc/passwd:/etc/passwd --user \"$(id -u):$(id -g)\" --name mapserver-wasm emscripten/emsdk:3.1.74 bash\n```\nAnd execute in a second terminal the following command to install the missing build depedencies as root user.\n```sh\ndocker exec --user root mapserver-wasm bash -c \"apt-get update \u0026\u0026 DEBIAN_FRONTEND=noninteractive apt-get install -y brotli\"\n```\nAfter that execute all job script commands described in `.github/workflows/ci.yml` inside the interactive build container. It can be helpful to set the `GITHUB_WORKSPACE` environment variable beforehand.\n```sh\nGITHUB_WORKSPACE=/src\n```\n\n## Test\n\nTests will be executed with [Vitest](https://vitest.dev/) framework. Test execution needs compilation of mapserver-wasm first.\n```sh\nnpm ci \u0026\u0026 npm test\n```\n\n## Logging\n\nTo avoid debugging in first place it can be helpful to activate file logging for [MapServer](https://mapserver.org/optimization/debugging.html) and [GDAL](https://trac.osgeo.org/gdal/wiki/ConfigOptions).\n```\nMAP\n  DEBUG 5\n  CONFIG \"MS_ERRORFILE\" \"error.log\"\n  CONFIG \"CPL_LOG\" \"error.log\"\n  CONFIG \"CPL_DEBUG\" \"ON\"\n  CONFIG \"CPL_LOG_ERRORS\" \"ON\"\n  CONFIG \"CPL_TIMESTAMP\" \"ON\"\nEND\n```\n\n## Debugging\n\nDebugging in [DWARF](https://dwarfstd.org/) format has initial support in [Chrome](https://developer.chrome.com/blog/wasm-debugging-2020/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeart1st%2Fmapserver-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeart1st%2Fmapserver-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeart1st%2Fmapserver-wasm/lists"}