globestudio

软件研发 工程通用 4 文件 EN 原文

Creates, edits and embeds dotted world maps and

Creates, edits and embeds dotted world maps and animated 3D globes with Globestudio (globestudio.app), a free open source studio with 21 looks. Use when the user wants a dotted map, a dotted or 3D globe, a spinning earth or a stylized world map for a website hero, background, slide, social post or video; when they paste a globestudio.app link or a ?c= config; or when code uses @globestudio/react, @globestudio/element, the globe-studio web component or globestudio.app/embed. Also use it to highlight a country, continent or region, plot points and arcs, match brand colors, or prepare PNG, SVG, GLB, MP4, WebM or GIF exports. Not for interactive tiled maps, routing, geocoding or GIS analysis (Mapbox, MapLibre, deck.gl), or for ordinary charts.

说明语言:英文

来源githubawesome-copilot ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/github/awesome-copilot --skill globestudio

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: globestudio description: "Creates, edits and embeds dotted world maps and animated 3D globes with Globestudio (globestudio.app), a free open source studio with 21 looks. Use when the user wants a dotted map, a dotted or 3D globe, a spinning earth or a stylized world map for a website hero, background, slide, social post or video; when they paste a globestudio.app link or a ?c= config; or when code uses @globestudio/react, @globestudio/element, the globe-studio web component or globestudio.app/embed. Also use it to highlight a country, continent or region, plot points and arcs, match brand colors, or prepare PNG, SVG, GLB, MP4, WebM or GIF exports. Not for interactive tiled maps, routing, geocoding or GIS analysis (Mapbox, MapLibre, deck.gl), or for ordinary charts." license: MIT metadata: author: alevizio version: "1.1.4" mcp-server: globestudio ---

Globestudio

Globestudio (https://globestudio.app) draws dotted world maps and animated 3D globes in the browser. It is free, MIT licensed and needs no account. A design is one JSON config, and a link carries it URL encoded in its ?c= parameter, so the link is the design: the studio opens it, an embed renders it, and changing the JSON changes the design.

Three addresses matter:

Choose the path

Look at what you have before you start.

  1. The Globestudio MCP tools are connected (build_share_url and read_share_url on a server whose name contains globestudio): use them. See With the MCP server.
  2. You are in a code project (files, a package.json, HTML pages) and the globe goes on a page: inspect the project first, then see In a code project.
  3. You only have chat: build the link yourself and hand it back. See In chat.

If the project already draws globes or maps with cobe, globe.gl, D3, Mapbox or another library, help with that library unless the user asks to switch. Globestudio is for when the map is the picture, not for tiled maps, routing or GIS.

Workflow

Before you install a package or run any other command, tell the user what it runs and why, and wait for their OK. Never run a command the user didn't agree to, and never download and run a remote script.

  1. Pick a look from the table below. Only a look whose Dot color is kept shows dotColor as set. Default is plain white dots that take any color; start there when the brief is about brand colors more than a style. For more on each look, read references/looks.md.
  2. Set the region with selection, even when it is world: country:JPN, continent:Europe or subregion:Western Europe.
  3. Set the dots and colors: dotColor or dotGradient, background or "backgroundStyle": "transparent", density, dotSize, shape.
  4. Add data if there is any: globeSettings.dataPoints, and dataArcs to join them.
  5. Put only those changes in the config and build https://globestudio.app/looks/<id>?c= plus encodeURIComponent(JSON.stringify(config)). The look supplies everything else.
  6. Check it: every key is one the app keeps (references/config.md), numbers are in range, and an embed address stays under 32,000 characters. With the MCP server, read the ignored array instead.
  7. Hand back the studio link, one sentence on what it shows, and embed code if the user has a site.

Japan in green on a transparent background goes on /looks/default:

{
  "v": 3,
  "selection": "country:JPN",
  "dotColor": "#16a34a",
  "backgroundStyle": "transparent"
}

Three cities joined by arcs, on /looks/topographic:

{
  "v": 3,
  "selection": "world",
  "globeSettings": {
    "dataPoints": [
      { "lat": 40.71, "lng": -74.01, "value": 12 },
      { "lat": 51.51, "lng": -0.13, "value": 8 },
      { "lat": 35.68, "lng": 139.69, "value": 10 }
    ],
    "dataArcs": true,
    "dataMarkerColor": "#ff8800"
  }
}

"v": 3 tells the app the JSON was encoded once and its colors are the hex to show, so every value arrives as written and every color renders as set. With 2, or in a link without it, the dot, map, grid, network, marker and flow colors render darker than their hex, as they always have. The app writes 3 for a design with a picked color and 2 for the rest, and links without it still open.

Looks

Dot color: kept shows dotColor and dotGradient as set, changed shifts them, ignored paints the look's own ink or palette, and no dots means solid land, colored by worldFill.

idNameFeelDot color
defaultDefaultClean cartographykept
halftoneHalftoneNewspaper print, browser-renderedignored
risographRisographPink + cyan ink, misregistered on purposechanged
newsprintNewsprintCMYK, four plates, rotated like the prosignored
auroraAuroraNorthern-lights bands across the planetchanged
pixelPixelAn 8-bit world atlaskept
bayerBayerClassic-Mac threshold ditherkept
atkinsonAtkinsonAtkinson dither, sparser than Bayerkept
wireframeWireframeEdge-traced, like a hand pulled printignored
crtCRTCathode-ray phosphor glowkept
glitchGlitchSignal break, RGB splitkept
badtvBad TVAnalog tape decaykept
bloomBloomAtmosphere on fireno dots
metalMetalLiquid chrome, soft reflectionsignored
iridescentIridescentHolographic foil stickerchanged
pencilPencilPencil-traced continentsignored
corruptCorruptDatamosh corruption, on purposechanged
toonToonCel-shaded pop-art worldignored
thresholdThresholdPure two-tone binaryignored
vaporVaporSynthwave horizon, pastel splitkept
topographicSonarRings on a sonar screenkept

Gotchas

With the MCP server

The tools are on the MCP server named globestudio, at https://globestudio.app/mcp. The globestudio plugin adds it from its mcp.json, so with the plugin installed they are listed already: build_share_url, read_share_url and the rest.

If the tools aren't listed, give the user one of these: copilot plugin install globestudio@awesome-copilot, which brings this skill with the server; copilot mcp add --transport http globestudio https://globestudio.app/mcp in Copilot CLI; or, in VS Code, https://globestudio.app/mcp as an HTTP server in .vscode/mcp.json. Suggest it when the user will keep making designs; it isn't needed for one link. Skip it when the tools are already listed, as they are with the plugin, or the user gets the same tools twice.

In a code project

  1. Inspect first: the framework, any globe or map code already there, where the globe goes, whether the page is light or dark, and whether it renders on the server.
  2. Pick the embed. Details, props and attributes are in references/embedding.md.
  3. React, Next.js, Remix, or Astro with React: add @globestudio/react to the project and render <Globe>. It renders a plain iframe, so it works in a server component; set onLoad or a ref only from a client component.
  4. No project yet, and the user wants React: offer the starter, a Vite app that already renders a <Globe>. Give the user https://globestudio.app/docs#react-component, which has the command that copies it and a StackBlitz link that opens it with nothing to install.
  5. Vue, Svelte, Solid, Angular, Astro or HTML with a bundler: add @globestudio/element to the project, import "@globestudio/element" in client code, then <globe-studio>. The element only draws in the browser, so under server rendering load it on the client.
  6. No build step: an iframe of the /embed address. The element only builds that iframe, so the page gets the same globe. If the user wants <globe-studio> itself there, point them to the Web component code in the export dialog's Share tab, which loads a pinned copy of the element, rather than writing a tag that loads it.
  7. Both packages need 0.1.1 or later: 0.1.0 drops look whenever config is set, so the globe shows Default. When a <Globe> or <globe-studio> ignores its look, check the version in package.json first.
  8. Webflow, Framer, WordPress, Notion or another CMS: an iframe of the /embed address. A page that already loads embed.js takes the data- attributes in references/embedding.md.
  9. Keep the design in a named constant or a JSON file, not a long inline string, and set config to JSON.stringify of it. With a look, the config only holds the changes.
  10. Set title to say what the globe shows, for screen readers. Keep loading="lazy" for a globe below the fold.
  11. Give the container an explicit height. An iframe doesn't size itself, and the packages default to 480 px.
  12. On a light page, give the design a transparent background with dots that show on the page (Wireframe is see-through as it ships), or a light background and a dark dotColor on a look that keeps it. Then set theme="light" on <Globe> or <globe-studio>, or theme=light on an /embed address. It suits the glow and grid to a light page and turns the white ink of Halftone, Wireframe, Toon and Threshold graphite. Halftone, Toon and Threshold paint a dark page of their own, where graphite ink is lost, so set it on them only with a transparent or light background.
  13. Check it by reading: the code, and the /embed address it builds, which the user can open in a browser to see the globe. If no one saw it render, say so rather than claim it works.
import { Globe } from "@globestudio/react";

const HERO_GLOBE = { v: 3, selection: "continent:Europe", dotColor: "#7dd3fc" };

export const Hero = () => (
  <Globe look="crt" config={JSON.stringify(HERO_GLOBE)} height={520} title="Dotted globe of Europe" />
);

In chat

Examples

Troubleshooting

Exports

Reference files

同类技能
acreadiness-assessacreadiness-generate-instructionsacreadiness-policyad-campaign-analyzeradd-educational-commentsai-readyai-research-exploreai-research-reproduction
本页内容来自开源项目 github, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。