HC

hopechen067/china-antique-maplibre

Developer tools
177 stars Качество 70 Тренд 70

Open-source MapLibre stack for China historical maps and short-form video (HyperFrames or any MapLibre host).

Обзор

Open-source MapLibre stack for China historical maps and short-form video (HyperFrames or any MapLibre host).

README

china-antique-maplibre

English | 中文

Open-source antique parchment MapLibre stack for China historical maps and short-form video (HyperFrames or any MapLibre host).

Live demo

→ https://hopechen067.github.io/china-antique-maplibre/
Interactive tuner (EOX satellite + Terrarium DEM need internet. No install.)

Demo video

Example output of this stack in a real map-story episode (河西走廊 · 河西四郡). Low-res clip streamed from GitHub Pages:

https://hopechen067.github.io/china-antique-maplibre/media/hexi-ep07-demo-480p.mp4

<video controls playsinline preload=“metadata” width=“720” src=“https://hopechen067.github.io/china-antique-maplibre/media/hexi-ep07-demo-480p.mp4”>

Longer clip (~36s): showcases/hexi-ep07/hexi-ep07-map-clip.mp4

Showcases

Still frames from the same open demo, plus live tuner captures.

More files: showcases/hexi-ep07/

Item Value
Skill folder china-antique-maplibre
Runtime MapLibre GL JS
Default basemap EOX Sentinel-2 cloudless (public demo WMTS; check provider terms)
Terrain / hillshade AWS Terrarium DEM (runtime fetch; encoding: 'terrarium')
Water Optional / not shipped — local water-data.js + water-pack.json enabled:true; see DATA-PROVENANCE.md
Look Antique CSS tuner + tiered settlement extrusions (HanCity3D)
License MIT for code/docs; showcase media & third-party terms in LICENSE-EXCEPTIONS.md / NOTICE.md
Hosted demo Live demo — Pages publishes china-antique-maplibre/tuner to the site root

Quick pull (install)

1) Clone the repo

git clone https://github.com/hopechen067/china-antique-maplibre.git
cd china-antique-maplibre

Update later:

cd china-antique-maplibre
git pull

2) Install as an agent skill (copy folder)

The skill lives in china-antique-maplibre/. Copy that folder into your agent skills directory, then reload skills.

Windows (PowerShell) — pick the path your host uses:

# Grok / common user skills dir
$src = ".\china-antique-maplibre"
$dst = Join-Path $env:USERPROFILE ".grok\skills\china-antique-maplibre"
New-Item -ItemType Directory -Force -Path (Split-Path $dst) | Out-Null
Copy-Item -Recurse -Force $src $dst
# Codex user skills (if you use Codex)
$src = ".\china-antique-maplibre"
$dst = Join-Path $env:USERPROFILE ".codex\skills\china-antique-maplibre"
New-Item -ItemType Directory -Force -Path (Split-Path $dst) | Out-Null
Copy-Item -Recurse -Force $src $dst

macOS / Linux:

git clone https://github.com/hopechen067/china-antique-maplibre.git
cp -R china-antique-maplibre/china-antique-maplibre ~/.grok/skills/china-antique-maplibre
# or: ~/.codex/skills/china-antique-maplibre

One-shot clone + install (Unix):

git clone --depth 1 https://github.com/hopechen067/china-antique-maplibre.git \
  && cp -R china-antique-maplibre/china-antique-maplibre ~/.grok/skills/china-antique-maplibre

3) Paste this to your agent

请使用 china-antique-maplibre skill。
在线调参:https://hopechen067.github.io/china-antique-maplibre/
仓库:https://github.com/hopechen067/china-antique-maplibre
我会在 demo 里调好风格后导出 JSON,请按 SKILL.md / references 应用到地图场景(jumpTo + idle,encoding terrarium)。

Style workflow: open the live demo → tune → Copy JSON → paste to your agent.

Quick start (local tuner)

Only needed if you want to run the tuner offline on your machine (not required for the public demo).

cd china-antique-maplibre/tuner

# Option A — Python 3
python -m http.server 8765

# Option B — Node
npx --yes serve -l 8765

Then open http://127.0.0.1:8765/ on the same machine.
Public share link: Live demo.

Do not open index.html as file:// — presets and optional local assets will fail.

Optional check (Node on PATH):

cd china-antique-maplibre/tuner
node verify.mjs

Features

  • Configurable raster basemap — default EOX Sentinel-2 cloudless. Override with map-tiles.config.local.js (gitignored) for any tile URL you are allowed to use.
  • Terrarium hillshade + terrain — encoding: 'terrarium' is required.
  • Optional water overlay — loader + paint UI kept; hydrography data is not redistributed (bring your own; see DATA-PROVENANCE.md).
  • Antique CSS tuner — sepia / warm tint / vignette / paint; export JSON presets.
  • City tiers — capital / large / medium / small / pass / station / ordos via HanCity3D.

Configure map tiles

  1. Read NOTICE.md.
  2. Defaults: tuner/map-tiles.config.js (EOX + Terrarium).
  3. Personal endpoints: map-tiles.config.local.js (gitignored). See map-tiles.config.example.js.

EOX public tiles are typically non-commercial with attribution (~10 m). This project does not grant rights to any commercial map vendor.

Tiles are not bundled

Satellite and DEM tiles are fetched at runtime from configured URLs only.

Attribution & compliance

  • Follow each basemap / DEM / CDN provider’s terms for your use case.
  • Water data: not shipped in this repo; any local pack you add stays under your license — DATA-PROVENANCE.md, LICENSE-EXCEPTIONS.md.
  • MapLibre / Three.js: keep their licenses when redistributing builds.
  • Showcase images: All Rights Reserved demo media unless noted otherwise (LICENSE-EXCEPTIONS.md).

Install as an agent skill

  1. Copy china-antique-maplibre into your skills directory.
  2. Reload agent skills so SKILL.md is discovered.
  3. Ask the agent to apply the antique map stack, open the tuner, or migrate an exported preset.

Layout

.
├── LICENSE
├── LICENSE-EXCEPTIONS.md      # showcase / third-party / user geodata (not MIT)
├── NOTICE.md
├── DATA-PROVENANCE.md
├── SECURITY.md
├── README.md / README.zh-CN.md
├── showcases/                 # README images & sample frames
└── china-antique-maplibre/
    ├── SKILL.md
    ├── agents/openai.yaml
    ├── references/
    ├── schemas/
    └── tuner/                 # published to GitHub Pages site root

Contributing / security

  • Prefer small, documented changes.
  • Do not commit API keys or map-tiles.config.local.js.
  • See SECURITY.md.

Next reads

View this README on GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add hopechen067/china-antique-maplibre