npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@amap-lbs/amap-gui

v1.0.2

Published

AI-driven AMap (Gaode) visualization CLI — drives an Electron map container with route planning, POI search and map-state control

Readme

amap-gui

AI-driven AMap (高德地图) visualization CLI — drives an Electron map container with route planning, POI search and map-state control. Designed for AI Agents.

Requirements

  • Node.js >= 18
  • A valid AMap Web JS API Key — apply at lbs.amap.com

Installation

npm install -g @amap-lbs/amap-gui

Configure API Keys (Required)

You need two keys from the AMap open platform (lbs.amap.com):

| Env Var | Required | Description | |---------|----------|-------------| | AMAP_KEY | ✅ Yes | Web JS API Key | | AMAP_SECURITY_KEY | Recommended | JS API Security Key (required for some account types) |

# macOS / Linux — add to ~/.zshrc or ~/.bashrc for persistence
export AMAP_KEY=your_amap_web_js_key
export AMAP_SECURITY_KEY=your_amap_security_key

# Windows (PowerShell)
$env:AMAP_KEY="your_amap_web_js_key"
$env:AMAP_SECURITY_KEY="your_amap_security_key"

# Windows (cmd)
set AMAP_KEY=your_amap_web_js_key
set AMAP_SECURITY_KEY=your_amap_security_key

The GUI will show an error and refuse to start the map if AMAP_KEY is missing.
AMAP_SECURITY_KEY defaults to empty string if not set (safe for older API keys).

Usage

# 1. Check if the GUI container is running
amap-gui status

# 2. Start the GUI (blocks until map is ready)
amap-gui start

# 3. Control the map
amap-gui mapState --json '{"action":"set","center":"上海外滩","zoom":15,"style":"dark"}'
amap-gui route    --json '{"from":{"position":"北京南站"},"to":{"position":"天安门"},"type":"driving"}'
amap-gui searchPOI --json '{"keyword":"咖啡","city":"北京"}'

# 4. Stop the GUI
amap-gui stop

Commands

| Command | Description | |---------|-------------| | amap-gui status | Check container status (not_running / running) | | amap-gui start | Launch the Electron GUI (waits until mapReady: true) | | amap-gui stop | Shut down the container | | amap-gui mapState --json '...' | Get/set map view (center, zoom, pitch, style) | | amap-gui route --json '...' | Plan a route (driving / walking / riding / transit) | | amap-gui searchPOI --json '...' | Search POIs and pin them on the map | | amap-gui getLastEvent | Get last user interaction event on the map |

All commands return structured JSON: { success, data, error }.

For AI Agents

See SKILL.md for detailed parameter schemas, response formats, and typical workflows.

Quick Start

# 1. Install
npm install -g @amap-lbs/amap-gui

# 2. Configure API Key (one-time, add to ~/.zshrc for persistence)
export AMAP_KEY=your_amap_key
export AMAP_SECURITY_KEY=your_amap_security_key

# 3. Start the GUI
amap-gui start

# 4. Control the map
amap-gui mapState --json '{"action":"set","center":"北京","zoom":12}'

# 5. Stop
amap-gui stop

License

MIT