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

@mapvx/web-components

v0.0.42

Published

MapVX Web Components is a web components library that provides interactive and accessible mapping solutions. Built with Lit, it offers a modern, lightweight, and framework-agnostic way to integrate maps into any web application.

Readme

Mapvx Web Components

npm version

A collection of interactive map components built with Lit and TypeScript.

Features

  • Interactive map visualization
  • Floor navigation
  • Route generation
  • Accessibility support
  • QR mode

Installation

NPM

npm install @mapvx/web-components

CDN (iife)

https://unpkg.com/@mapvx/web-components/dist/iife/<component>

Service Worker (cache de tiles/assets)

Los componentes registran automáticamente un Service Worker en /mvx-tiles-sw.js si existe en la raíz del sitio (HTTPS).

  • Última versión lista para copiar: https://unpkg.com/@mapvx/web-components@latest/dist/sw/mvx-tiles-sw.js
  • Estrategia: PBF en CacheFirst (24h) y otros assets en StaleWhileRevalidate para dominios *.mapvx.com y *.lazarillo.app.

Guía completa (scripts para Drupal, ejemplos y snippet del SW) en la documentación: ver docs/pages/es/examples.mdx o docs/pages/en/examples.mdx.

Build Structure

dist/
├── es/ # Build for ES modules
│ ├── index.js
│ ├── map-view-with-modal.js
│ ├── route-view-totems.js
│ └── assets/
├── cjs/ # Build for CommonJS
│ ├── index.cjs
│ ├── map-view-with-modal.cjs
│ └── route-view-totems.cjs
├── iife/ # Build for IIFE
│ ├── route-view-totems.js
│ └── map-view-with-modal.js
└── sw/
   └── mvx-tiles-sw.js

The build directory structure is organized as follows:

  • dist/es/: Contains the ES (ECMAScript) modules build. Includes the main components and an assets/ folder with required resources.

  • dist/cjs/: Contains the CommonJS build, which allows using the components in Node.js environments.

  • dist/iife/: Contains the IIFE (Immediately Invoked Function Expression) build, which encapsulates all code in a self-executing function to avoid polluting the global scope.

  • dist/sw/: Contains the Service Worker file that you can copy to your site's root.

Available Components

route-view-totems

A totem view for routes with QR code and animated route generation option. Includes origin and destination markers.

map-view-with-modal

A map view that only shows the destination marker.

Usage

CJS (Recommended)

// Import components
import '@mapvx/web-components/cjs/index.cjs';

// Use in your HTML
<route-view-totems
  apiKey="your-api-key"
  parentPlaceId="your-venue-id"
  destinationId="your-destination-id"
  ...
></route-view-totems>

<map-view-with-modal
  apiKey="your-api-key"
  parentPlaceId="your-venue-id"
  ...
></map-view-with-modal>

IIFE (CDN)

route-view-totems

<!-- Add the script -->
<script src="https://unpkg.com/@mapvx/web-components/dist/iife/route-view-totems.js"></script>

<!-- Use the components -->
<route-view-totems
  apiKey="your-api-key"
  parentPlaceId="your-venue-id"
  destinationId="your-destination-id"
  ...
></route-view-totems>

map-view-with-modal

<script src="https://unpkg.com/@mapvx/web-components/dist/iife/map-view-with-modal.js"></script>

<map-view-with-modal
  apiKey="your-api-key"
  parentPlaceId="your-venue-id"
  placeId="your-place-id"
  ...
></map-view-with-modal>

License

This project is under Private License - only clients of Mapvx can use it.