Skip to main content
Back to registry

mapbox-web-integration-patterns

mapbox/mapbox-agent-skills

This skill provides official patterns for integrating Mapbox GL JS into web applications using React, Vue, Svelte, Angular, and vanilla JavaScript. These patterns are based on Mapbox's create-web-app scaffolding tool and represent production-ready best practices.

Installs289
Install command
npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-web-integration-patterns
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykWARN
About this skill
This skill provides official patterns for integrating Mapbox GL JS into web applications using React, Vue, Svelte, Angular, and vanilla JavaScript. These patterns are based on Mapbox's create-web-app scaffolding tool and represent production-ready best practices. Recommended: v3.x (latest) Installing via npm (recommended for production): CDN (for prototyping only): ⚠️ Production apps should use npm, not CDN - ensures consistent versions and offline builds. React: Vue: Svelte: Angular: Next.js: Required for search integration: Migrating from v2.x to v3.x: Token patterns (work in v2.x and v3.x): Every Mapbox GL JS integration must: Pattern: useRef + useEffect with cleanup Note: These examples use Vite (the bundler used in create-web-app ). If using Create React App, replace import.meta.env.VITE_MAPBOX_ACCESS_TOKEN with process.env.REACT_APP_MAPBOX_TOKEN . See the Token Management Patterns section for other bundlers. Key points: React + Search JS: Pattern: mounted + unmounted lifecycle hooks Key points: Pattern: onMount + onDestroy Key points: Pattern: ngOnInit + ngOnDestroy with SSR handling Template (map.component.html): Key points: Pattern: Module imports with initialization function HTML: Key points: Pattern: Script tag with inline initialization ⚠️ Note: This pattern is for prototyping only. Production apps should use npm/bundler for version control and offline builds.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does mapbox-web-integration-patterns do?

This skill provides official patterns for integrating Mapbox GL JS into web applications using React, Vue, Svelte, Angular, and vanilla JavaScript. These patterns are based on Mapbox's create-web-app scaffolding tool and represent production-ready best practices.

Is mapbox-web-integration-patterns good?

mapbox-web-integration-patterns does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does mapbox-web-integration-patterns work with?

mapbox-web-integration-patterns currently lists compatibility with codex, gemini-cli, opencode, kimi-cli, amp, github-copilot.

What are alternatives to mapbox-web-integration-patterns?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install mapbox-web-integration-patterns?

npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-web-integration-patterns

Related skills

More from mapbox/mapbox-agent-skills

Related skills

Alternatives in Software Engineering