drone-path 0.13.0 → 1.0.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +20 -74
  2. package/THIRD-PARTY-NOTICES.md +3 -82
  3. package/bin/drone-path.mjs +0 -0
  4. package/dist/cli.d.ts +14 -0
  5. package/dist/cli.js +7 -7
  6. package/dist/version.d.ts +1 -0
  7. package/package.json +21 -68
  8. package/CHANGELOG.md +0 -349
  9. package/app/ipc.d.mts +0 -44
  10. package/app/ipc.mjs +0 -237
  11. package/app/main.mjs +0 -369
  12. package/app/preload.cjs +0 -36
  13. package/app/update-policy.d.mts +0 -6
  14. package/app/update-policy.mjs +0 -6
  15. package/app/update.d.mts +0 -10
  16. package/app/update.mjs +0 -54
  17. package/dist/appassets.js +0 -35
  18. package/dist/apppaths.js +0 -20
  19. package/dist/appsession.js +0 -121
  20. package/dist/appstate.js +0 -101
  21. package/dist/assets.js +0 -60
  22. package/dist/buildinfo.js +0 -64
  23. package/dist/cammeta-decode.js +0 -237
  24. package/dist/cammeta.js +0 -92
  25. package/dist/changeset-gate.js +0 -39
  26. package/dist/config.js +0 -631
  27. package/dist/configfile.js +0 -86
  28. package/dist/decimate.js +0 -84
  29. package/dist/desktop-i18n/generated/catalogs.js +0 -1230
  30. package/dist/desktop-i18n/messages.js +0 -47
  31. package/dist/errors.js +0 -34
  32. package/dist/exec-tool.js +0 -13
  33. package/dist/exportjob.js +0 -90
  34. package/dist/ffmpeg-tools.js +0 -56
  35. package/dist/ffmpeg.js +0 -98
  36. package/dist/frametime.js +0 -32
  37. package/dist/geo.js +0 -60
  38. package/dist/logging.js +0 -1
  39. package/dist/manual/anchors.js +0 -17
  40. package/dist/manual/build.js +0 -67
  41. package/dist/manual/cliref.js +0 -34
  42. package/dist/manual/links.js +0 -59
  43. package/dist/manual/markdown.js +0 -98
  44. package/dist/manual/model.js +0 -1
  45. package/dist/manual/module.js +0 -5
  46. package/dist/manual/nav.js +0 -11
  47. package/dist/manual/reference.js +0 -18
  48. package/dist/paths.js +0 -16
  49. package/dist/pipeline.js +0 -402
  50. package/dist/plan.js +0 -106
  51. package/dist/png.js +0 -32
  52. package/dist/protobuf-wire.js +0 -102
  53. package/dist/range.js +0 -50
  54. package/dist/recordings.js +0 -55
  55. package/dist/render-page.js +0 -85
  56. package/dist/render.js +0 -268
  57. package/dist/renderer/boot.js +0 -7
  58. package/dist/renderer/dom.js +0 -179
  59. package/dist/renderer/framemath.js +0 -30
  60. package/dist/renderer/scene.js +0 -388
  61. package/dist/renderer/theme.js +0 -82
  62. package/dist/renderer/tilesources.js +0 -38
  63. package/dist/renderer/trail.js +0 -42
  64. package/dist/restyle.js +0 -16
  65. package/dist/serve.js +0 -27
  66. package/dist/srt.js +0 -98
  67. package/dist/telemetry-json-schema.js +0 -18
  68. package/dist/telemetry-json.js +0 -126
  69. package/dist/telemetry-math.js +0 -267
  70. package/dist/telemetry-summary.js +0 -19
  71. package/dist/telemetry.js +0 -95
  72. package/dist/tilecache.js +0 -21
  73. package/dist/tiles.js +0 -155
  74. package/dist/track-format.js +0 -13
  75. package/dist/track-geojson.js +0 -44
  76. package/dist/track-gpx.js +0 -34
  77. package/dist/track-kml.js +0 -47
  78. package/dist/track-kmz.js +0 -68
  79. package/dist/track-write.js +0 -41
  80. package/dist/track.js +0 -79
package/README.md CHANGED
@@ -1,83 +1,29 @@
1
- > [!NOTE]
2
- > Head's up! This repo will be restructured as a monorepo in the near future.
1
+ # drone-path
3
2
 
4
- # Drone Path
5
-
6
- This handy little tool renders flight-path map videos from DJI drone
7
- recordings (DJI Neo 2 and similar): the actual flight path on a 2D map,
8
- ready to overlay over the drone recording.
9
-
10
- It reads geo-coordinates from DJI's telemetry in two ways:
11
-
12
- - the embedded CAM meta (DVTM) stream (DJI's protobuf format) is used when
13
- the recording has one,
14
- - otherwise an `.SRT` sidecar next to the recording is used.
15
-
16
- It is a CLI tool first, so agents can drive it too — that's all cool with me.
17
- For us humans, there is a [desktop app](docs/user/desktop-app.md): pick a
18
- recording and watch its flight path on the map in sync as you play.
19
-
20
- ## Quick start
3
+ Render a flight-path map overlay video from a DJI recording with CAM-meta
4
+ telemetry or a matching SRT sidecar. Use Node.js 24 or later.
21
5
 
22
6
  ```sh
23
- # from GitHub
24
- npx github:MrManny/drone-path "my-flight.mp4"
25
-
26
- # from npm
27
7
  npx drone-path "my-flight.mp4"
28
-
29
- # topographic map, altitude + speed HUD
30
- npx drone-path "my-flight.mp4" --style topo --hud heading,alt,speed
31
-
32
- # flight track file alongside the render (GPX, GeoJSON, KML/KMZ or the
33
- # telemetry JSON document, chosen by the extension; one recording per run)
34
- npx drone-path "my-flight.mp4" --track-out "my-flight.gpx"
8
+ npx drone-path --help
35
9
  ```
36
10
 
37
- Output lands in the `out/` folder as `<basename>_map.mp4`; both the folder
38
- and the name are configurable. Requirements: Node.js 24 or 26 and
39
- ffmpeg/ffprobe — bundled with the desktop app and the npm package,
40
- overridable via `--ffmpeg`/`--ffprobe`, with a `PATH` fallback. All
41
- requirements and install options are in
42
- [Getting started](docs/user/getting-started.md).
43
-
44
- ## User manual
11
+ By default, the command writes the overlay to `out/my-flight_map.mp4`.
12
+ See the [CLI guide](https://github.com/MrManny/drone-path/blob/main/docs/user/cli.md)
13
+ for configuration, rendering requirements, and track export.
45
14
 
46
- The user manual lives in [docs/user/](docs/user/README.md); the desktop app
47
- ships the same pages as offline help. Highlights:
15
+ The `drone-path` export provides typed CLI functions for Node.js. For
16
+ telemetry and rendering APIs, use `drone-path-core` and
17
+ `drone-path-engine`.
48
18
 
49
- - [Getting started](docs/user/getting-started.md) — requirements, install options, and your first render.
50
- - [Desktop app](docs/user/desktop-app.md) — loading a recording, reviewing a flight, exporting video, and saving telemetry JSON from the app.
51
- - [Keyboard shortcuts](docs/user/keyboard-shortcuts.md) — every shortcut of the review player at a glance.
52
- - [CLI usage](docs/user/cli.md) — inputs, examples, and example output.
53
- - [CLI and config reference](docs/user/cli-reference.md) — every option and config key with its default.
54
- - [Config file](docs/user/config-file.md) — where `.dronepath.json` is found and how defaults apply.
55
- - [Tiles and attribution](docs/user/tiles-and-attribution.md) — map sources, attribution, and tile caching.
19
+ Install `@types/node` for your Node.js major version. In TypeScript 6, list
20
+ `node` in `compilerOptions.types` to load the Node declarations.
56
21
 
57
- ## Desktop app
58
-
59
- For reviewing flights without the terminal, grab the packaged desktop app
60
- (Windows NSIS installer or portable exe, Linux AppImage) from
61
- [GitHub Releases](https://github.com/MrManny/drone-path/releases), or run
62
- `npm run build && npm run app` from a checkout.
63
-
64
- The app shows the recording and the synchronized flight map side by side —
65
- togglable to a corner map overlay — on one shared timeline;
66
- [the manual](docs/user/desktop-app.md) walks through loading a recording,
67
- reviewing a flight, marking a passage, exporting, and saving the per-frame
68
- telemetry JSON. The look and language settings carry over between launches.
69
-
70
- ![Desktop app: a drone recording beside the synchronized flight map](docs/images/app-main-window.jpg)
71
-
72
- *The desktop app playing a recording: the recording beside the synchronized
73
- flight map, with the flight trail, drone position and the readout strip on one
74
- shared timeline.*
75
-
76
- ## Feature requests
77
-
78
- If you want or need specific features, feel free to open an issue in this
79
- repository's issue tracker.
80
-
81
- ## License
82
-
83
- MIT — see [LICENSE](LICENSE).
22
+ ```json
23
+ {
24
+ "compilerOptions": {
25
+ "module": "NodeNext",
26
+ "types": ["node"]
27
+ }
28
+ }
29
+ ```
@@ -1,84 +1,5 @@
1
1
  # Third-party notices
2
2
 
3
- The UI icons render from the [Lucide](https://lucide.dev) icon set via the
4
- `lucide-react` npm package, a runtime dependency of the UI bundle; the
5
- package's own LICENSE file ships with every install. Lucide releases its icons
6
- under the ISC License below. Icons Lucide derives from the Feather project
7
- additionally carry the MIT License below — among the icons this app renders,
8
- `x`, `power`, `info` and `help-circle` are Feather-derived. `ui/icons/` holds
9
- only the GitHub brand mark; see its note below.
10
-
11
- ## Lucide — ISC License
12
-
13
- Copyright (c) 2026 Lucide Icons and Contributors
14
-
15
- Permission to use, copy, modify, and/or distribute this software for any
16
- purpose with or without fee is hereby granted, provided that the above
17
- copyright notice and this permission notice appear in all copies.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
20
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
22
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
- PERFORMANCE OF THIS SOFTWARE.
26
-
27
- ## Feather (icons derived from it) — MIT License
28
-
29
- Copyright (c) 2013-present Cole Bemis
30
-
31
- Permission is hereby granted, free of charge, to any person obtaining a copy
32
- of this software and associated documentation files (the "Software"), to deal
33
- in the Software without restriction, including without limitation the rights
34
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
- copies of the Software, and to permit persons to whom the Software is
36
- furnished to do so, subject to the following conditions:
37
-
38
- The above copyright notice and this permission notice shall be included in all
39
- copies or substantial portions of the Software.
40
-
41
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
- SOFTWARE.
48
-
49
- ## FFmpeg and FFprobe (embedded binaries) — GPL-3.0-or-later
50
-
51
- The desktop app distributions and the npm package may carry static `ffmpeg`
52
- and `ffprobe` binaries so renders need no local install. They are the FFmpeg
53
- and ffprobe 7.1.0 builds downloaded by the `ffmpeg-ffprobe-static` optional
54
- dependency from release `b7.1.0-rc.1` of
55
- https://github.com/descriptinc/ffmpeg-ffprobe-static and are spawned as
56
- separate processes; x264/x265 make these GPL-3.0-or-later builds.
57
-
58
- Build provenance and corresponding source per platform:
59
-
60
- - Windows x64: the gyan.dev `ffmpeg-release-essentials` 7.1 build
61
- (`7.1-essentials_build-www.gyan.dev`), compiled from the FFmpeg 7.1
62
- release — the corresponding source is
63
- https://ffmpeg.org/releases/ffmpeg-7.1.tar.xz, also tagged `n7.1` at
64
- https://github.com/FFmpeg/FFmpeg.
65
- - Linux x64: the BtbN/FFmpeg-Builds autobuild
66
- `ffmpeg-n7.1-15-g9fbbd924f2-linux64-gpl-7.1`, a git snapshot 15 commits past
67
- the `n7.1` tag — the corresponding source is FFmpeg commit `9fbbd924f2`
68
- (https://github.com/FFmpeg/FFmpeg/commit/9fbbd924f2), not the 7.1 release
69
- tarball.
70
-
71
- The full GPL license text ships with every distribution: `ff/ffmpeg.LICENSE`
72
- (`ff/ffmpeg.exe.LICENSE` on Windows) next to the binaries in the desktop app,
73
- and `ffmpeg.LICENSE` (`ffmpeg.exe.LICENSE` on Windows) next to the binaries in
74
- the npm install. The `ffmpeg-ffprobe-static` wrapper code itself is not part of
75
- the desktop distribution; its LICENSE file is BSD-3-Clause (Copyright (c) 2020,
76
- Eugene Ware and contributors) while its npm metadata declares
77
- GPL-3.0-or-later.
78
-
79
- ## GitHub mark
80
-
81
- `ui/icons/GitHubIcon.tsx` draws the GitHub octocat mark, used nominatively and
82
- solely to link to the project's own GitHub repository from the About dialog.
83
- The mark is a trademark of GitHub, Inc.; this use implies no affiliation with
84
- or endorsement by GitHub.
3
+ Commander is licensed under MIT and includes its license text in its npm
4
+ package. See the notices shipped with `drone-path-core` and
5
+ `drone-path-engine` for the telemetry and rendering dependencies.
File without changes
package/dist/cli.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { Command } from 'commander';
2
+ import type { ConfigOverrides, TrackOutSpelling } from 'drone-path-engine/config';
3
+ interface ParsedCli {
4
+ inputs: string[];
5
+ cli: ConfigOverrides;
6
+ trackOutSpelling: TrackOutSpelling | null;
7
+ configPath: string | null;
8
+ deprecationWarnings: string[];
9
+ }
10
+ export declare function buildProgram(): Command;
11
+ export declare function longFlagOf(flags: string): string;
12
+ export declare function parseCliArgs(argv: string[]): ParsedCli;
13
+ export declare function main(argv?: string[]): Promise<void>;
14
+ export {};
package/dist/cli.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import fs from 'node:fs';
2
2
  import { Command, Option } from 'commander';
3
- import { ERROR_PREFIX, errorMessage } from './errors.js';
3
+ import { ERROR_PREFIX, errorMessage } from 'drone-path-core/errors';
4
4
  import { VERSION } from './version.js';
5
- import { CONFIG_FILE_OPTION, CONFIG_OPTIONS, OVERRIDE_NORMALIZERS, TELEMETRY_JSON_ALIAS, cliDefaultOf, } from './config.js';
6
- import { resolveConfig } from './configfile.js';
7
- import { collectRecordings } from './recordings.js';
8
- import { requireFfmpegTools } from './ffmpeg.js';
9
- import { resolveFfmpegTools } from './ffmpeg-tools.js';
10
- import { runBatch } from './pipeline.js';
5
+ import { CONFIG_FILE_OPTION, CONFIG_OPTIONS, OVERRIDE_NORMALIZERS, TELEMETRY_JSON_ALIAS, cliDefaultOf, } from 'drone-path-engine/config';
6
+ import { resolveConfig } from 'drone-path-engine/configfile';
7
+ import { collectRecordings } from 'drone-path-engine/recordings';
8
+ import { requireFfmpegTools } from 'drone-path-core/ffmpeg';
9
+ import { resolveFfmpegTools } from 'drone-path-core/ffmpeg-tools';
10
+ import { runBatch } from 'drone-path-engine/pipeline';
11
11
  export function buildProgram() {
12
12
  const program = new Command();
13
13
  program
@@ -0,0 +1 @@
1
+ export declare const VERSION: string;
package/package.json CHANGED
@@ -1,42 +1,20 @@
1
1
  {
2
2
  "name": "drone-path",
3
- "version": "0.13.0",
3
+ "version": "1.0.0-rc1",
4
4
  "description": "Render flight-path map overlay videos (exactly the source frame rate and frame count) from DJI drone recordings - telemetry from the embedded CAM-meta (DVTM) stream or the .SRT sidecar.",
5
5
  "type": "module",
6
- "main": "app/main.mjs",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/cli.d.ts",
9
+ "default": "./dist/cli.js"
10
+ }
11
+ },
7
12
  "bin": {
8
13
  "drone-path": "bin/drone-path.mjs"
9
14
  },
10
- "files": [
11
- "app",
12
- "bin",
13
- "dist",
14
- "CHANGELOG.md",
15
- "README.md",
16
- "LICENSE",
17
- "THIRD-PARTY-NOTICES.md"
18
- ],
19
15
  "engines": {
20
16
  "node": ">=24"
21
17
  },
22
- "scripts": {
23
- "app": "electron app/main.mjs",
24
- "app:dev": "npm run build:manual && npm run build:info && concurrently -k \"next dev ui --webpack -p 3210\" \"wait-on http://127.0.0.1:3210 && electron app/main.mjs --dev-url http://localhost:3210\"",
25
- "app:pack": "electron-builder --publish never",
26
- "build": "npm run build:manual && npm run build:info && npm run build:ui",
27
- "build:cli": "node scripts/build-desktop-catalogs.mjs && tsc -p tsconfig.json",
28
- "build:info": "npm run build:cli && node dist/buildinfo.js",
29
- "build:manual": "npm run build:cli && node dist/manual/build.js",
30
- "build:ui": "next build ui --webpack",
31
- "docs:reference": "npm run build:cli && node dist/manual/reference.js",
32
- "docs:schema": "npm run build:cli && node dist/telemetry-json-schema.js",
33
- "changeset": "changeset",
34
- "changeset:version": "changeset version && npm install --package-lock-only",
35
- "test": "npm run build:manual && npm run build:info && npm run typecheck:test && vitest run",
36
- "typecheck:test": "tsc --noEmit -p test/tsconfig.json",
37
- "lint": "eslint .",
38
- "prepare": "npm run build"
39
- },
40
18
  "keywords": [
41
19
  "dji",
42
20
  "drone",
@@ -54,51 +32,26 @@
54
32
  "license": "MIT",
55
33
  "repository": {
56
34
  "type": "git",
57
- "url": "git+https://github.com/MrManny/drone-path.git"
35
+ "url": "git+https://github.com/MrManny/drone-path.git",
36
+ "directory": "packages/cli"
58
37
  },
59
38
  "bugs": {
60
39
  "url": "https://github.com/MrManny/drone-path/issues"
61
40
  },
62
41
  "homepage": "https://github.com/MrManny/drone-path#readme",
42
+ "files": [
43
+ "bin/drone-path.mjs",
44
+ "dist/**/*.js",
45
+ "dist/**/*.d.ts",
46
+ "THIRD-PARTY-NOTICES.md"
47
+ ],
48
+ "scripts": {
49
+ "build": "node ../../scripts/clean-package-dist.mjs && tsc -p tsconfig.json",
50
+ "prepack": "npm run build:cli --prefix ../.."
51
+ },
63
52
  "dependencies": {
64
53
  "commander": "~15.1.0",
65
- "electron-updater": "~6.8.11",
66
- "leaflet": "~1.9.4",
67
- "p-queue": "~10.0.0",
68
- "playwright-core": "~1.65.0",
69
- "zod": "~4.6.7"
70
- },
71
- "optionalDependencies": {
72
- "ffmpeg-ffprobe-static": "~7.1.0-rc.1"
73
- },
74
- "devDependencies": {
75
- "@changesets/cli": "~3.0.3",
76
- "@eslint/js": "~10.0.1",
77
- "@next/eslint-plugin-next": "~16.4.6",
78
- "@testing-library/react": "~16.3.3",
79
- "@testing-library/user-event": "~14.6.10",
80
- "@types/leaflet": "~1.9.22",
81
- "@types/node": "~24.19.2",
82
- "@types/react": "~19.3.0",
83
- "@types/react-dom": "~19.3.0",
84
- "concurrently": "~10.0.7",
85
- "electron": "~45.3.1",
86
- "electron-builder": "~26.18.0",
87
- "eslint": "~10.15.0",
88
- "eslint-plugin-react-hooks": "~7.1.1",
89
- "jsdom": "~31.0.1",
90
- "lucide-react": "~1.73.0",
91
- "marked": "~18.2.0",
92
- "next": "~16.4.6",
93
- "react": "~19.3.1",
94
- "react-dom": "~19.3.1",
95
- "typescript": "~6.0.3",
96
- "typescript-eslint": "~8.72.2",
97
- "vitest": "~5.1.0",
98
- "wait-on": "~9.5.1"
99
- },
100
- "allowScripts": {
101
- "electron-winstaller@5.4.0": true,
102
- "ffmpeg-ffprobe-static@7.1.0-rc.1": true
54
+ "drone-path-core": "~1.0.0-rc1",
55
+ "drone-path-engine": "~1.0.0-rc1"
103
56
  }
104
57
  }