New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@globestudio/element

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globestudio/element

Framework-agnostic <globe-studio> web component for embedding Globestudio dotted globes — vanilla, Svelte, Vue, Solid, Astro, Webflow, Framer.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
103
Maintainers
1
Weekly downloads
 
Created
Source

@globestudio/element

Framework-agnostic <globe-studio> web component for embedding Globestudio dotted globes. Zero dependencies — it's a tiny wrapper over globestudio.app/embed, so Three.js, shaders, and country data all run on the embed origin.

Works anywhere custom elements do: vanilla HTML, Svelte, Vue, Solid, Astro, Webflow, Framer.

Install

npm install @globestudio/element

Usage

import "@globestudio/element"; // auto-registers <globe-studio>
<!-- Pick a preset -->
<globe-studio look="aurora" width="800" height="600"></globe-studio>

<!-- From a share config (the ?c= payload from the app's Share tab) -->
<globe-studio config="…" height="480"></globe-studio>

Or via CDN, no build step:

<script type="module" src="https://esm.sh/@globestudio/element"></script>
<globe-studio look="halftone"></globe-studio>

Attributes

AttributeDefaultNotes
lookhalftoneAny shipped preset id. Ignored when config is set.
config—Pre-built share config (?c= payload). Overrides look.
width100%Forwarded to the iframe.
height480Forwarded to the iframe.
titleGlobestudio dotted globeAccessible label.
loadinglazylazy defers off-screen embeds.
source—Analytics attribution tag.

Attributes are reactive — change look/config and the globe updates.

API

import { defineGlobeStudio, buildEmbedUrl } from "@globestudio/element";

defineGlobeStudio("my-globe"); // register under a custom tag
buildEmbedUrl({ look: "vapor" }); // → "https://globestudio.app/embed?look=vapor"

MIT © Globestudio

Keywords

web-component

FAQs

Package last updated on 28 Sep 2026

Related posts