BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/flightcn/satellite

Satellite

flightcn/satellite
FreeComponent

A globe-based satellite orbit overlay with animated motion, ground tracks, and custom SVG marker support.

Live preview

live · rendered by the registry
Rendered by flightcn on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://flightcn.yencheng.dev/r/satellite.json

Source

src/registry/satellite-orbit.tsxflightcn.yencheng.dev/r/satellite.json · first 6 KB
1"use client";
2
3import MapLibreGL from "maplibre-gl";
4import { memo, startTransition, useEffect, useMemo, useState } from "react";
5import { createPortal } from "react-dom";
6
7import { useMap } from "@/components/ui/map";
8
9type Coordinate = [number, number];
10type ScreenPoint = { x: number; y: number };
11
12type SatelliteMapTheme = "light" | "dark";
13
14function getDocumentTheme(): SatelliteMapTheme | null {
15 if (typeof document === "undefined") return null;
16 if (document.documentElement.classList.contains("dark")) return "dark";
17 if (document.documentElement.classList.contains("light")) return "light";
18 return null;
19}
20
21function getSystemTheme(): SatelliteMapTheme {
22 if (typeof window === "undefined") return "light";
23 return window.matchMedia("(prefers-color-scheme: dark)").matches
24 ? "dark"
25 : "light";
26}
27
28function useSatelliteMapTheme(): SatelliteMapTheme {
29 const [theme, setTheme] = useState<SatelliteMapTheme>(
30 () => getDocumentTheme() ?? getSystemTheme(),
31 );
32
33 useEffect(() => {
34 const observer = new MutationObserver(() => {
35 const docTheme = getDocumentTheme();
36 if (docTheme) setTheme(docTheme);
37 });
38 observer.observe(document.documentElement, {
39 attributes: true,
40 attributeFilter: ["class"],
41 });
42
43 const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
44 const onSystem = (e: MediaQueryListEvent) => {
45 if (!getDocumentTheme()) setTheme(e.matches ? "dark" : "light");
46 };
47 mediaQuery.addEventListener("change", onSystem);
48
49 return () => {
50 observer.disconnect();
51 mediaQuery.removeEventListener("change", onSystem);
52 };
53 }, []);
54
55 return theme;
56}
57
58const SATELLITE_ORBIT_COLOR_LIGHT = "#0a0a0a";
59const SATELLITE_ORBIT_COLOR_DARK = "#e8e8e8";
60const SATELLITE_ORBIT_GLOW_COLOR_LIGHT = "rgba(15, 23, 42, 0.18)";
61const SATELLITE_ORBIT_GLOW_COLOR_DARK = "rgba(125, 211, 252, 0.35)";
62const SATELLITE_GROUND_TRACK_COLOR_LIGHT = "rgba(15, 23, 42, 0.22)";
63const SATELLITE_GROUND_TRACK_COLOR_DARK = "rgba(96, 165, 250, 0.28)";
64const SATELLITE_DOT_COLOR_LIGHT = "#0a0a0a";
65const SATELLITE_DOT_COLOR_DARK = "#f8fafc";
66const SATELLITE_PANEL_COLOR_LIGHT = "#374151";
67const SATELLITE_PANEL_COLOR_DARK = "#38bdf8";
68const SATELLITE_CONNECTOR_COLOR_LIGHT = "rgba(15, 23, 42, 0.4)";
69const SATELLITE_CONNECTOR_COLOR_DARK = "rgba(148, 163, 184, 0.45)";
70const VIEWPORT_EVENTS = ["move", "resize"] as const;
71const DEFAULT_SATELLITE_ICON_VIEW_BOX = "-12 -12 24 24";
72
73type ResolvedSatelliteIconSvg = {
74// … truncated

What it pulls in

Other registry items

  • https://mapcn.dev/r/map.json

Files it writes

  • src/registry/satellite-orbit.tsx

Facts

Registry
flightcn
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-09
Last confirmed
yesterday

Go to the source

Docs on flightcn flightcn.yencheng.dev ridemountainpig/flightcn on GitHub Raw registry item This item as JSON

More from flightcn

All 2 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
FlightflightflightcnComponentsFree2 deps · 4 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex