---
name: "@flightcn"
slug: "flightcn"
description: "Flightcn is a specialized shadcn registry component set for rendering flight-route and satellite-orbit visualizations on MapLibre-powered maps via the mapcn ecosystem. It provides FlightAirport (single airport marker from IATA code), FlightRoute (great-circle arc between two airports), FlightRoutes (multiple independent routes), FlightMultileg (connected multi-leg journeys), and SatelliteOrbit (globe-based orbital ground tracks with animated markers and custom SVG support). Includes a built-in airport registry with IATA code, name, city, country, and coordinates. Handles antimeridian, hover states, animated paths, and optional airport labels. Use for: adding interactive great-circle flight maps or satellite orbit overlays to a Next.js/MapLibre project that already uses mapcn, with minimal custom geographic math."
category: "Maps"
tags: ["3d", "aesthetic", "ai", "animation", "charts", "maps"]
framework: "react"
license: "MIT"
author: "ridemountainpig"
website: "https://flightcn.yencheng.dev"
github: "https://github.com/ridemountainpig/flightcn"
registry: "https://flightcn.yencheng.dev/r/registry.json"
pro: false
pro_url: null
github_stars: 129
component_count: 2
generated_at: "2026-07-28T08:00:50.948Z"
---

# @flightcn

Flightcn is a specialized shadcn registry component set for rendering flight-route and satellite-orbit visualizations on MapLibre-powered maps via the mapcn ecosystem. It provides FlightAirport (single airport marker from IATA code), FlightRoute (great-circle arc between two airports), FlightRoutes (multiple independent routes), FlightMultileg (connected multi-leg journeys), and SatelliteOrbit (globe-based orbital ground tracks with animated markers and custom SVG support). Includes a built-in airport registry with IATA code, name, city, country, and coordinates. Handles antimeridian, hover states, animated paths, and optional airport labels. Use for: adding interactive great-circle flight maps or satellite orbit overlays to a Next.js/MapLibre project that already uses mapcn, with minimal custom geographic math.

## Links

- Website: https://flightcn.yencheng.dev
- GitHub: https://github.com/ridemountainpig/flightcn
- Registry JSON: https://flightcn.yencheng.dev/r/registry.json
- Directory page: https://sh4dcn.vercel.app/registry/flightcn
- This file: https://sh4dcn.vercel.app/md/flightcn.md

## Install

```sh
# add the whole registry (shadcn CLI)
npx shadcn@latest add https://flightcn.yencheng.dev/r/registry.json
pnpm dlx shadcn@latest add https://flightcn.yencheng.dev/r/registry.json
bunx shadcn@latest add https://flightcn.yencheng.dev/r/registry.json
# clone the source repo
git clone https://github.com/ridemountainpig/flightcn.git
# fetch the raw registry index
curl -s https://flightcn.yencheng.dev/r/registry.json
```

## Components (2)

| name | type | description | install |
| --- | --- | --- | --- |
| flight | registry:ui | A flight route visualization component with airport markers, great-circle arc lines, and a built-in 515-airport database. | `npx shadcn@latest add https://flightcn.yencheng.dev/r/flight.json` |
| satellite | registry:ui | A globe-based satellite orbit overlay with animated motion, ground tracks, and custom SVG marker support. | `npx shadcn@latest add https://flightcn.yencheng.dev/r/satellite.json` |

## For AI agents

```text
You are adding components from @flightcn to a shadcn-compatible project.
1. Read this file (https://sh4dcn.vercel.app/md/flightcn.md) for the component list.
2. Fetch the machine-readable index: https://flightcn.yencheng.dev/r/registry.json
3. Install a single component with its install command from the table above.
4. Full structured record: https://sh4dcn.vercel.app/json (library slug: flightcn).
```
