cobejs

Render a lightweight interactive cobe globe on a canvas with markers.

4.5k|536|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/MengTo/Skills --skill cobejs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cobejs
Source: https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/cobejs
Command: npx skills add https://github.com/MengTo/Skills --skill cobejs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you add a lightweight interactive globe to web pages without the overhead of a full 3D stack, so you can quickly deliver location markers and ambient motion.

Core Features & Use Cases

  • Canvas-based globe rendering: Create a WebGL globe using cobe with clear configuration for size, DPR, rotation, lighting, and styling.
  • Markers and interactivity: Place location markers via lat/lon and tune marker appearance for hero/about sections or decorative interactive elements.
  • Performance and integration: Handle responsive canvas sizing, DPR clamping, RAF lifecycle control, and clean teardown for React/Next.js.

Quick Start

Use the cobejs Skill to render a responsive canvas globe with one marker by wiring a <canvas> element into createGlobe and updating canvas width/height on resize.

Frequently Asked Questions about cobejs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add an interactive globe to my website without heavy 3D libraries?

You can render an interactive globe using the cobe library on a standard canvas element. This approach provides location markers and ambient rotation without the overhead of a full WebGL stack.

How do I place location markers on a WebGL globe using latitude and longitude?

You can place location markers on a WebGL globe by configuring the markers option with latitude and longitude coordinates. This allows you to tune marker appearance for hero sections or interactive decoration.

Does the cobe globe library work with React and Next.js?

Yes, the cobe globe library supports React and Next.js integration. You must handle responsive canvas sizing, DPR clamping, and lifecycle teardown using globe.toggle and globe.destroy for clean redraws.

How do I handle responsive canvas sizing and cleanup for a WebGL globe?

Handle responsive canvas sizing by updating canvas width and height on resize with correct DPR clamping. Manage cleanup and animation lifecycle using globe.destroy and globe.toggle to prevent memory leaks.

What is the best way to configure rotation and lighting for a lightweight interactive globe?

The best way to configure rotation and lighting for a lightweight interactive globe is by setting initialization options like phi and theta. You can tune these alongside colors and markers for ambient motion.

Can I use a canvas-based globe for marketing sites and single-page applications?

Yes, you can use a canvas-based globe for marketing sites and SPAs. It provides minimal interactive decoration and ambient motion suitable for hero visuals and about-page location markers.