@unmap/nuxt

Nuxt 3 module for unmap: runtime config + auto-imported @unmap/vue composables
3,134
Install
npm install @unmap/nuxt
Latest Version:0.21.0
Vue:3
License:MIT
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: mepa1363

@unmap/nuxt

Nuxt 3 module for unmap. Publishes unmap: { key, gateway } to public runtime config and auto-imports the @unmap/vue composables (useUnmap, useGeocoder, useDirections) into every component.

npm i @unmap/nuxt
// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@unmap/nuxt'],
  unmap: { key: 'um_live_...' },
  css: ['maplibre-gl/dist/maplibre-gl.css'],
})

The key can also come from the environment as NUXT_PUBLIC_UNMAP_KEY, and the gateway as NUXT_PUBLIC_UNMAP_GATEWAY. Then, in any component:

<script setup lang="ts">
const { mapContainer } = useUnmap({ key: useRuntimeConfig().public.unmap.key, center: [-73.57, 45.5] })
</script>

<template>
  <div ref="mapContainer" style="height: 400px" />
</template>

Add MapLibre's stylesheet once, for controls, attribution, markers, and popups:

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@unmap/nuxt'],
  unmap: { key: 'um_live_...' },
  css: ['maplibre-gl/dist/maplibre-gl.css'],
})

maplibre-gl arrives as a transitive dependency; under pnpm's strict layout add it as a direct dependency so the import resolves.

Requires Nuxt 3.13 or later. Docs: unmap.dev/docs.

Related Packages

@unmap/vue

Vue 3 composables for the unmap platform: map, geocoder, directions

3,219 0
@privyid/nuxt-csrf

Module CSRF for NUXT

26,088 9
mixpanel-nuxt

Mixpanel module for Nuxt

19,992 7
nuxt-radash

radash for Nuxt

10,601 20
gsap-nuxt-module

GSAP integration for Nuxt.

8,932 37

Version History

Version Released License
0.21.0 MIT
0.20.0 MIT
0.19.0 MIT
0.18.0 MIT
0.17.0 MIT