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

droneroute

v0.5.0

Published

Upload DJI waypoint mission KMZ files to RC controllers via USB

Readme

droneroute

Upload DJI waypoint mission KMZ files to RC controllers via USB.

npx droneroute mission.kmz

What it does

  1. Detects DJI RC controllers connected via USB or mounted SD cards
  2. If multiple controllers are found, lets you choose one
  3. Creates a new mission slot on the controller
  4. Places the KMZ file so DJI Fly recognizes it immediately

No need to manually create placeholder missions, browse the filesystem, or rename files with UUIDs.

Prerequisites

  • Node.js 18+ — required to run npx
  • adb (Android Debug Bridge) — needed for USB-connected controllers:
  • For SD cards: just insert the card into your computer, no extra tools needed

Supported controllers

Any DJI controller running DJI Fly with waypoint support:

  • DJI RC
  • DJI RC 2
  • DJI RC Pro / RC Pro 2
  • DJI RC-N1 / RC-N2

Creating KMZ missions

You can create DJI WPML-compliant KMZ files with:

  • DroneRoute — free, open-source web-based mission planner
  • DJI Pilot 2
  • DJI FlightHub 2
  • Any tool that generates DJI WPML KMZ files

How it works

DJI Fly stores waypoint missions on the controller at:

Android/data/dji.go.v5/files/waypoint/<uuid>/<uuid>.KMZ

Each mission lives in a folder named with a UUID, containing a single KMZ file with the same UUID as its filename. This tool generates a new UUID, creates the folder, and places your KMZ file with the matching name. DJI Fly picks it up as a new mission entry.

Examples

Upload a mission to the only connected controller:

npx droneroute my-survey.kmz

If multiple controllers are connected, an interactive prompt appears:

$ npx droneroute my-survey.kmz

Searching for DJI controllers...

Multiple DJI controllers found. Select one:
❯ DJI RC 2 (adb: 3A2F4B1C)
  SD card (/Volumes/DJI_RC)

Uploading my-survey.kmz...
✓ Mission uploaded successfully
  Mission ID: 550E8400-E29B-41D4-A716-446655440000

Open DJI Fly on the controller and look for the new
mission in the waypoint list.

Troubleshooting

| Problem | Solution | |---------|----------| | "No DJI controllers found" | Connect the controller via USB and power it on. Ensure the cable supports data transfer (not charge-only). | | adb not found | Install Android platform-tools: brew install android-platform-tools (macOS) or apt install adb (Linux). | | Permission denied on waypoint path | Enable USB debugging on the controller: Settings > Developer Options > USB Debugging. | | Controller not detected by adb | Try a different USB cable or port. Enable "File Transfer" mode when the USB dialog appears on the controller. | | Mission doesn't appear in DJI Fly | Open the waypoint mission list and scroll — new missions appear at the end. Tap on it to load it into the editor. | | SD card method: directory not found | The waypoint directory is only created after you save at least one waypoint mission via DJI Fly on the controller. |

License

MIT