COBE draws an interactive 3D globe on a canvas with markers, arcs, and CSS-anchor hooks. The package targets about five kilobytes and runs in the browser without dependencies.
Overview
COBE is a small WebGL library that renders a rotatable globe for dashboards and marketing pages. You pass a canvas element and options such as rotation angles, lighting, map dot density, markers, and animated arcs between coordinates.
Markers and arcs can carry IDs so DOM labels bind through CSS anchor positioning and visibility variables when points face away from the camera. Updates flow through createGlobe, update, and destroy calls, often inside requestAnimationFrame loops.
The API works with React, Vue, Svelte, or plain JavaScript. Website examples show flight routes, labels, satellites, and interactive demos with configurable themes.
Version two expands bindable markers and arcs so CSS transitions and filters on overlay elements stay synchronized with globe motion.
Key features
- WebGL globe rendering
- Markers and great-circle arcs
- CSS anchor positioning hooks
- Retina-friendly canvas sizing
- Theme and lighting controls
- Auto-rotate animations
- Framework-agnostic API
Use cases
- Landing page globe visuals
- Data center or office maps
- Animated route displays
- Interactive marketing graphics