npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@prushforth/map

v1.0.0-preview.7

Published

Government of Canada Design System extension - Map component (MapML) suite

Readme

<gcds-ext-map>

A Government of Canada Design System (GCDS) extension map component that provides an accessible, standards-based web map viewer using MapML.

Installation

Preview release. This package is published to a personal scope for testing and feedback only. It will be replaced by @gcds-extensions/map when it goes live. The @preview tag is required.

npm install @prushforth/map@preview @gcds-core/components

@gcds-core/components is a peer dependency and must be installed alongside this package.

To pin an exact build instead, use e.g. @prushforth/[email protected].

Verify your installation

Run:

npx http-server node_modules/@prushforth/map -p 8080 -c-1

Open http://localhost:8080/demo/ — you should see an interactive map.

MapML authoring skills (optional)

The package ships a set of MapML markup skills for AI coding agents. Install them into the current project with:

npx gcds-ext-map-skills

Restart your editor afterwards so the agent discovers them. To remove only the skills this package installed:

npx gcds-ext-map-skills --remove

Usage

Basic Example


<!-- If installed via npm, reference the files from your node_modules folder.
     Paths shown are relative to a page at your project root: -->
      <script type="module" src="node_modules/@prushforth/map/dist/gcds-ext-map/gcds-ext-map.esm.js"></script>
      <!-- Optionally, to use the full GCDS component system, also include: -->
      <script type="module" src="node_modules/@gcds-core/components/dist/gcds/gcds.esm.js"></script>
      <link rel="stylesheet" href="node_modules/@gcds-core/components/dist/gcds/gcds.css">

<!--
    A CDN distribution is NOT available for this preview release.
    Once the package goes live, the CDN tags will look like this:
      <script type="module" src="https://cdn.design-system.canada.ca/@gcds-extensions/map@latest/dist/gcds-ext-map.esm.js"></script>
      <link rel="stylesheet" href="https://cdn.design-system.canada.ca/@gcds-core/components@latest/dist/gcds/gcds.css">
      <script type="module" src="https://cdn.design-system.canada.ca/@gcds-core/components@latest/dist/gcds/gcds.esm.js"></script>
-->

<!-- important: use CSS to define the width and height of the map (default size is quite small!) -->
<gcds-ext-map projection="CBMTILE" lat="45.4215" lon="-75.6972" zoom="10" style="width: 60%; height: 400px">
  <map-layer checked>
    <map-title>Canada Base Map - Transportation (CBMT)</map-title>
    <map-link rel="license" href="https://open.canada.ca/en/open-government-licence-canada" title="Open Government Licence - Canada"></map-link>
    <map-link rel="suggestions" tref="https://geolocator.api.geo.ca/?q={searchTerms}&lang=en&keys=geonames"></map-link>
    <map-link rel="search" tref="https://geolocator.api.geo.ca/?q={searchTerms}&lang=en&keys=geonames"></map-link>
    <map-extent units="CBMTILE" checked hidden>
      <map-input name="z" type="zoom" value="22" min="0" max="22"></map-input>
      <map-input name="xmin" type="location" units="pcrs" position="top-left" axis="easting" min="-3262924.7" max="3823954.0"></map-input>
      <map-input name="ymin" type="location" units="pcrs" position="bottom-left" axis="northing" min="-1554977.6" max="4046262.8"></map-input>
      <map-input name="xmax" type="location" units="pcrs" position="top-right" axis="easting" min="-3262924.7" max="3823954.0"></map-input>
      <map-input name="ymax" type="location" units="pcrs" position="top-left" axis="northing" min="-1554977.6" max="4046262.8"></map-input>
      <map-input name="w" type="width"></map-input>
      <map-input name="h" type="height"></map-input>
      <map-link rel="image" tref="https://geogratis.gc.ca/maps/CBMT?SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:3978&LAYERS=CBMT&BBOX={xmin},{ymin},{xmax},{ymax}&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&WIDTH={w}&HEIGHT={h}&STYLES="></map-link>
    </map-extent>
  </map-layer>
</gcds-ext-map>

See the map components documentation for further usage examples.

Architecture

The <gcds-ext-map> component replaces the usage of the <mapml-viewer> element. See the MapML documentation for how to use MapML. When using GCDS, you use <gcds-ext-map> in place of <mapml-viewer> (it supports all the same attributes). All other MapML elements work as described.

<gcds-ext-map> and associated MapML children are implemented as Stencil components, like other GCDS components. <gcds-ext-map> is a self-contained component that renders map content in a shadow root, and does not expose slots for including content besides what is rendered on the map.

Accessibility

The <gcds-ext-map> component includes several accessibility features:

  • Keyboard navigation
  • Screen reader support
  • ARIA labels and descriptions
  • Focus management

If you notice things that could be improved, please open an issue.

License

MIT License