# COBE

> A 5 KB WebGL dotted globe with markers, the spinning globe on many launch pages.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/cobe

free

A 5 KB WebGL dotted globe with markers, the spinning globe on many launch pages.

by Shu Ding[GitHub](https://github.com/shuding/cobe)[npm](https://npmjs.com/package/cobe)

[visit](https://cobe.vercel.app/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://cobe.vercel.app](https://cobe.vercel.app/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [React Three Fiber](https://tastebase.ehsanulsiam.workers.dev/browse/r3f)

React renderer for three.js: build 3D scenes as JSX components with hooks.

no preview

### [mapcn](https://tastebase.ehsanulsiam.workers.dev/browse/mapcn)

Copy-in React map components on MapLibre GL, themed with shadcn tokens: markers, popups, routes, arcs, clusters.

no preview

### [Diffs](https://tastebase.ehsanulsiam.workers.dev/browse/pierre-diffs)

Fast code diff and file rendering for React on Shiki: split or unified, virtualised, with annotations.

no preview

### [Trees](https://tastebase.ehsanulsiam.workers.dev/browse/pierre-trees)

A fast, searchable file tree for code browsers, from flat paths, as React or a web component.

## For your agent

##### Install

`npm i cobe`

##### Use it for

- a spinning dotted globe with location markers in a hero or global-network section

##### Skip it when

- an interactive map with zoom and real geography: use mapcn
- a full 3D scene: use r3f

##### What's inside8 free

- createGlobe()
- update()
- destroy()
- Markers
- Arcs
- Marker Labels
- Arc Labels
- CSS Anchors

##### Facts

**Frameworks**
vanilla, react

**Styling**
unstyled

**Weight**
tiny

**Accessibility**
n/a

**Maturity**
stable

**License**
MIT

**Price**
Free

##### Alternatives

[React Three Fiber](https://tastebase.ehsanulsiam.workers.dev/browse/r3f)[mapcn](https://tastebase.ehsanulsiam.workers.dev/browse/mapcn)

[Compare COBE with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/cobe-alternatives)

```
import createGlobe from "cobe"

let phi = 0
const globe = createGlobe(canvas, {
  devicePixelRatio: 2, width: 1000, height: 1000, phi: 0, theta: 0.2, dark: 1, diffuse: 1.2,
  mapSamples: 16000, mapBrightness: 6, baseColor: [0.3, 0.3, 0.3], markerColor: [0.1, 0.8, 1], glowColor: [1, 1, 1],
  markers: [{ location: [52.52, 13.4], size: 0.05 }],
  onRender: (state) => { state.phi = phi; phi += 0.005 },
})
// globe.destroy() on unmount
```

https://cobe.vercel.app

Loading website

[Visit](https://cobe.vercel.app/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
