Skip to content

Releases

GridForge v1.8.0 — Studio UI Redesign, Daylight Theme & MapLibre v6 Worker Fix

Choose a tag to compare

@jremick jremick released this 28 Nov 02:08

Major GridForge Studio UI/UX and information-architecture redesign introducing a warm-paper Daylight theme alongside Dark mode, an upward-expanding Outputs drawer, auto-matched regional overlay tabs, self-hosted IBM Plex typography, unified inline SVG iconography, responsive mobile ergonomics, interactive MCP App theme parity, and a production MapLibre GL JS v6 Web Worker bundling fix.

Highlights & Added Features

  • Warm-Paper Daylight Studio Theme & Persistence: Sun/Moon theme toggle in the top telemetry bar switches cleanly between Dark Studio and warm archival-paper Daylight Studio (localStorage-persisted) with WCAG AA contrast tokens, explicit color-scheme controls, theme-reactive MapLibre canvas and RF Fresnel charts, and matching interactive MCP App light/dark tokens.
  • Upward-Expanding Outputs Drawer & Footer GitHub Link: Replaced the always-open sticky output wall in the sidebar footer with a compact live summary trigger (Outputs · Print PDF 300 DPI) that opens Print & Digital Outputs upward on demand — shrinking footer height from ~45% to ~15% on 1024×768 laptops — and added an Open-source · GPL-3.0 + GitHub repository link to the footer.
  • Self-Hosted Bundled Typography & Unified Inline SVG Icons: Bundled @fontsource/ibm-plex-sans and @fontsource/ibm-plex-mono Latin .woff2/.woff weights directly into Vite's /assets/ output for crisp air-gapped rendering with zero CDN dependencies, and unified mixed emojis/Unicode glyphs across the Studio into a clean 16×16 inline SVG icon set (web/src/icons.ts).
  • Auto-Matched Regional Overlay Tabs & Theme Swatches: Scoped Terrain & Overlays into AU | NZ | US | CA tabs with live active-layer counts that automatically match the selected preset, and added 3-strip color-palette swatches to all 4 print cartography theme buttons (Color, B&W Print, Night (Red-Light), Alpine).

Fixed & Improved

  • MapLibre GL JS v6 Production Worker Bundling (web/src/map.ts): Explicitly wired maplibregl.setWorkerUrl(...) to Vite's ?url-emitted /assets/maplibre-gl-worker-<hash>.mjs bundle so Vector HD basemaps and live GeoJSON footprints, MGRS grids, viewsheds, RF links, and tactical overlays work reliably in production Docker builds under worker-src 'self' (resolving /assets/maplibre-gl-worker.mjs HTTP 404s).
  • Information Architecture & Error Recovery: Flattened stacked sidebar cards into hairline sections, removed numbered 01–06 and eyebrow noise chips, deduplicated supplemental-page checkboxes and sidebar tactical tool buttons, disabled the Elevation selector in Pack Manager when DEM download is unchecked, and added an explicit error state with a Retry action when /api/packs/regions fails.
  • Responsive Mobile Studio (<= 680px): Collapsed mobile sidebar by default so the map opens full-screen, added a click-outside scrim overlay and compact mobile basemap selector, auto-collapsed the sidebar on tool activation, wrapped the 5-tab Pack Manager cleanly without clipping, adopted 100dvh sizing, collapsed compact attribution on load to avoid scale-bar overlap, and enlarged touch targets for coarse pointers.

Verification

  • Offline PyQGIS Suite: 618 passed (--network none, tests/unit, tests/integration, tests/e2e).
  • Frontend & MCP App: 67 passed (0 production npm audit vulnerabilities, mcp_app.html 355.97 kB, regression test covering MapLibre v6 worker URL wiring).
  • Live Multi-Region Open-Data E2E: Verified across US (USGS 3DEP/USFS/FEMA), Canada (NRCan HRDEM/Parks Canada), Australia (GA ELVIS + all 8 states/territories), and New Zealand (LINZ 1 m LiDAR + DOC tracks). (3 initial transient overpass-api.de HTTP 502/504 responses passed cleanly on retry.)
  • Live Docker Visual Verification: Zero console/404 errors verified on 1440×900, 1024×768, and 390×844 viewports with Vector HD, live UTM footprints, MGRS grid, WMM2025 telemetry, and green worker status.

Container Images

docker pull ghcr.io/jremick/gridforge:v1.8.0
# Multi-arch: linux/amd64 + linux/arm64

GridForge v1.7.2 — Bounded Fetch Timeouts, Shared Lifecycle & Mutation-Hardened Suites

Choose a tag to compare

@jremick jremick released this 27 Nov 22:57

Reliability, maintainability, and test-hardening maintenance release consolidating Studio modal/drawer abort lifecycles, bounding browser API requests with explicit timeout signals, centralizing auth-mode configuration lookup, allowing the Cloudflare Web Analytics beacon in CSP, adding repository-level anti-slop guardrails, and substantially expanding mutation-verified frontend and backend test coverage.

Improved & Hardened

  • Bounded Browser API Timeouts & Shared Modal Lifecycle (web/src/api.ts, web/src/components/{lifecycle,adminModal,packsModal,authModal,projectsDrawer}.ts, web/src/{turnstile,deeplink,main}.ts):
    • Added a default 90 s AbortSignal.timeout fallback composed with caller AbortSignals (AbortSignal.any) in web/src/api.ts so browser API probes and actions never hang indefinitely while preserving instant workspace-switch cancellation.
    • Extracted shared linkAbortSignal, initModalBackdrop, and reportAbortAwareError helpers into web/src/components/lifecycle.ts and unified AdminModal user mutations, TurnstileController expiry/timeout widget resets, job cancel/delete list updates, and one-time launch URL parameter stripping (stripOneTimeLaunchParams in web/src/deeplink.ts).
    • Logged caught errors at debug level in the Studio offline-basemap availability probe instead of silently swallowing failures.
  • Centralized Auth-Mode Resolution, CSP & Repository Quality Guardrails (src/gridforge/web/{app,auth,worker}.py, src/gridforge/mcp/http.py, .anti-slop/learned/rules.json):
    • Allowed the Cloudflare Web Analytics beacon (https://static.cloudflareinsights.com) in Content-Security-Policy script-src while keeping strict no-unsafe-inline script rules intact.
    • Centralized GRIDFORGE_AUTH_MODE parsing and validation into gridforge.web.auth.resolve_auth_mode() across the web app, background worker, and /mcp Streamable HTTP router to prevent cross-module configuration drift.
    • Added verified repository-level anti-slop learned rules covering subprocess shell safety, safe YAML loading, dynamic eval/exec, pinned Dockerfile base images, least-privilege file modes, Python HTTP timeouts, and live end-to-end verification discipline.

Verification

  • Automated & Mutation-Hardened Suites (618 offline PyQGIS pytest + 65 frontend tests + 26 live multi-region E2E):
    • Expanded frontend DOM, API, Turnstile, and deep-link tests (web/tests/{modal-dom,api-auth-admin,turnstile,deeplink}.test.mjs), raising diff-scoped TypeScript mutation kill rate across v1.7.x changes from 23.3% to 80.0%.
    • Expanded backend security and budget boundary tests (tests/unit/test_{source_work_budgets,preview_work_budgets,auth_and_limits,mcp}.py), covering COG request-count caps, direct NRCan _warp_cogs allowlist validation, default Overpass follow_redirects=False, exact WFS/SA ZIP limits, low-res preview DEM routing, symlinked sheet-workspace confinement, and empty /mcp client host handling (95.8% sources / 91.7% web+MCP mutation kill rates).
    • Verified 618 offline PyQGIS pytest tests (--network none), 65 frontend tests + production Studio/MCP App builds (0 npm audit --omit=dev vulnerabilities), and 26 live multi-region open-data E2E renders.

Docker Image

docker pull ghcr.io/jremick/gridforge:v1.7.2

Attached below are the 5 verified 300–600 DPI sample print PDFs rendered directly from ghcr.io/jremick/gridforge:v1.7.2.

GridForge v1.7.1 — Security Hardening, Scoped PATs, Bounded Sources & Studio Isolation

Choose a tag to compare

@jremick jremick released this 27 Nov 10:14

Comprehensive security hardening release enforcing explicit hosted API key scopes across HTTP and MCP, confining atlas worker paths and provider/terrain resource budgets, isolating hosted Studio workspaces across account and guest transitions, keeping private map parameters out of browser URLs, and locking down release workflow supply-chain integrity.

Security & Hardening

  • Hosted API Key Scope Enforcement, Geocoding Budgets & Body Caps (src/gridforge/web/{app,auth,db,limits,schemas}.py, src/gridforge/mcp/{http,server}.py, docs/ai-agents.md, deploy/hosted-mode.md):
    • Enforced explicit per-operation PAT scopes (planning, jobs:read, jobs:write, projects:read, projects:write, shares:read, shares:write, and standalone all) across all /api/* routes and /mcp tools, keeping account management, API key CRUD, site administration, offline pack management, and cross-tenant share moderation behind browser-session authentication.
    • Failed closed with 401 on legacy keys carrying empty or unrecognized stored scopes, enforced projects:read when sharing saved projects by project_id, and forwarded caller request.client into in-process MCP ASGITransport requests so non-Cloudflare /mcp callers retain distinct per-IP rate-limit buckets.
    • Bounded outbound Nominatim geocoding with a single-flight provider slot (503 + Retry-After), per-IP (GRIDFORGE_GEOCODE_HOURLY_LIMIT=30) and shared database-wide (GRIDFORGE_GEOCODE_GLOBAL_HOURLY_LIMIT=300, 0 disables misses) hourly miss caps in both hosted and local modes, removed raw search queries from logs/usage details, fixed chunked/streamed body overflow handling to return 413 cleanly, and switched hosted job thumbnails and page previews to Cache-Control: private, no-store.
  • Atlas Worker Confinement, Terrain Preview Budgets & Bounded Open-Data Reads (src/gridforge/sources/{_cog_ranges,_http,dem_ca_hrdem,osm_overpass,overlays_au_states,overlays_au_states_west}.py, src/gridforge/web/{viewshed,worker,schemas}.py, docker-compose*.yml, docs/DATA_SOURCES.md):
    • Derived atlas worker scratch workspaces, temporary DEM copies, and sheet PDFs strictly from server-owned sheet ordinals (sheet_01, ...) under resolved tmp_work_dir and stripped ASCII control characters from StripSheetInput.sheet_id.
    • Bounded terrain previews before source selection (<= 100 km RF links, <= 125 km per side and <= 8,000 km² DEM footprints, antimeridian crossing rejection) and routed live previews through regional non-LiDAR tiers while preserving geodesic-only ruler fallback for wide paths.
    • Added a loopback single-range COG proxy (_cog_ranges.py) for NRCan Canadian DEM reads strictly allowlisting NRCan's two AWS Canada Central S3 buckets with redirect refusal, byte/request/time budgets, and clean timeout shutdown.
    • Bounded Australian/NZ WFS GeoJSON and SA overlay downloads with streaming byte/feature/geometry/time limits, strict redirect validation (HTTPS-only, private/loopback IP rejection, same-host default with explicit waterconnect.sa.gov.au subdomain allowlist for SA trails), and direct raw-deflate + local-header/CRC validation of the SA trails ZIP archive to eliminate Python zipfile vs GDAL /vsizip/ forged-file_size ZIP-bomb differentials.
    • Defaulted Overpass to the configured primary endpoint (OVERPASS_URL) with no third-party fallback mirrors unless operators explicitly opt in via OVERPASS_FALLBACK_URLS, and declined HTTP redirects on Overpass POST queries.
  • Hosted Studio Workspace Isolation & URL Privacy (web/src/, src/gridforge/web/{auth,schemas}.py):
    • Reset map camera/layers, uploaded overlay files, form drafts, jobs/projects drawers, Turnstile generation, toasts, and open modals on hosted identity changes, aborting all in-flight requests so prior-account responses cannot populate the next workspace.
    • Added an opaque HMAC-derived workspace_scope to GET /api/auth/session so even Guest → Guest cookie expiry/resets trigger full workspace resets, deferred 401 Sign-In modal opening until session refresh completes, guarded window keydown shortcuts while changeSession() runs, added cross-tab BroadcastChannel sync (including after Google OAuth sign-in), and gave AdminModal/PacksModal self-contained AbortController disposal.
    • Consumed incoming legacy deep-link query parameters once on load and removed private map details from window.location while keeping deliberate ?share= snapshots and explicit sharing intact.
  • Release Pipeline & Supply-Chain Integrity (.github/workflows/release.yml, examples/render-examples.sh, docs/RELEASE_CHECKLIST.md, .agents/skills/gridforge-release/SKILL.md):
    • Hardened .github/workflows/release.yml to verify SemVer release tags point to commits on the default branch, pin all GitHub Actions by full commit SHA, scope packages: write strictly to build-and-push, check out immutable commit SHAs, record org.opencontainers.image.revision, pull sample-render images by exact published OCI digest, reserve :vX.Y and :latest for stable tags, and pin examples/render-examples.sh to a verified multi-arch GHCR digest.

Added & Fixed

  • Cloud Dev Workflow & Community Governance (deploy/cloud-dev.md, .devcontainer/, SECURITY.md, CODE_OF_CONDUCT.md):
    • Added SECURITY.md vulnerability disclosure & hardening architecture documentation, CODE_OF_CONDUCT.md, and cloud VM / Dev Container / CI offloading documentation and bootstrap scripts.
    • Narrowed base64 error handling and logged caught errors cleanly in the Studio frontend and interactive MCP App (web/src/, web/mcp-app/).

Verification

  • Automated Suites (610 offline pytest + 54 frontend tests + live multi-region E2E):
    • Added tests/unit/test_preview_work_budgets.py, tests/unit/test_source_work_budgets.py, and expanded test_agent_api.py, test_shares_api.py, test_web_api.py, test_auth_and_limits.py, web/tests/deeplink.test.mjs, web/tests/modal-dom.test.mjs, and web/tests/turnstile.test.mjs.
    • Verified 610 offline PyQGIS pytest tests (--network none), 54 frontend tests + production Studio/MCP App builds (0 npm audit --omit=dev vulnerabilities), and live multi-region renders including NRCan HRDEM COG range-proxy reads, SA Trails ZIP redirect/validation, and VIC/NT WFS overlays.

Full Changelog: v1.7.0...v1.7.1

GridForge v1.7.0 — Native MCP Server, Interactive MCP Apps & AI Tool Integration

Choose a tag to compare

@jremick jremick released this 27 Nov 04:36

GridForge v1.7.0 — Native MCP Server, Interactive SEP-1865 MCP Apps, Bearer PATs & Visual Chat Cards

GridForge v1.7.0 turns GridForge into an AI-native cartography, navigation, and RF planning backend out of the box — connecting directly to Claude Desktop & Claude Code, OpenAI Codex, Google Antigravity, ChatGPT, Cursor, and VS Code with zero extra Python SDK dependencies.

Highlights

  • Native Dual-Transport MCP Server (stdio + Streamable HTTP /mcp):
    • Run locally via ghcr.io/jremick/gridforge:v1.7.0 gridforge mcp or connect directly to /mcp on any self-hosted or hosted deployment (2025-06-18, 2025-03-26, and 2024-11-05).
    • Ships 14 model-visible tools (open_gridforge_studio, answer_location_briefing, geocode_place, preview_footprint, analyze_rf_link, compute_viewshed, measure_route, plan_strip_atlas, render_map, get_job_status, get_job_page_preview, create_share_link, list_packs, get_capabilities), 3 app-only tools (app_get_job_status, app_get_job_page, app_get_capabilities), 3 resources, and 4 guided prompts.
  • Interactive SEP-1865 MCP Apps (ui://gridforge/app.html):
    • Self-contained single-file HTML/JS workspace (text/html;profile=mcp-app, CSP default-src 'none' safe, reactive dark/light host theming) with a pan/zoom UTM & 1 km MGRS footprint canvas, SVG WMM2025 declination compass, interactive hover-scrub 1st Fresnel RF link chart, terrain viewsheds, route/strip atlas planners, and a live-polling multi-page printable PDF viewer.
    • Ships a ready-to-install Google Antigravity plugin (plugins/antigravity/) exposing inline chat widgets, side pane (aux_pane: GridForge Studio), and sidebar (global: GridForge Maps) entrypoints, plus a portable Agent Skill (docs/agent-skill/SKILL.md).
  • Crisp Inline PNG Visual Cards for Every MCP Host:
    • Pure-Pillow dark-tactical PNG visual cards (ImageContent) for footprints, viewsheds, route cards, and 760×360 curved-Earth Fresnel charts alongside natural-language Q&A summaries and rasterized PDF page previews (/api/jobs/{job_id}/pages/{page}.png).
  • AI-Ready Web API, Scoped Bearer PATs & Signed Download URLs:
    • Scoped SQLite Personal Access Tokens (GET/POST/DELETE /api/auth/api-keys, gf_... prefix, SHA-256 hashed at rest, 25 active-key per-user cap) for Friend and Admin accounts in hosted mode (bypassing guest-only Turnstile while preserving full quotas and tenant isolation), plus optional static GRIDFORGE_API_KEY protection for single-tenant auth_mode=none deployments.
    • Short-lived HMAC-signed artifact download & page-preview URLs (?sig=...), synchronous render completion polling (POST /api/jobs?wait=true&timeout_s=120), GET /api/capabilities, GET /llms.txt, complete /openapi.json request schemas (CreateJobRequest, StripPlanRequest), and declarative gridforge render --spec-file <path|->.

Security Hardening

  • Enforced OriginProxyAuthMiddleware on /mcp while forwarding verified origin-proxy, CF-Connecting-IP, and X-Forwarded-Proto headers strictly into in-process ASGI sub-requests.
  • Stripped GRIDFORGE_API_KEY and *API_KEY* env vars from all GIS/PDF subprocesses, guarded pdftoppm page preview rendering with per-job locks, bounded concurrency slots, and safe environments, capped JSON-RPC batches at 20 messages, rejected forged boolean exp claims in signed tokens, scrubbed internal errors from /mcp responses, and expanded release privacy scanning to web/mcp-app/, docs/, and plugins/.

Quick Pull (linux/amd64 + linux/arm64)

docker pull ghcr.io/jremick/gridforge:v1.7.0
# Start local Studio + /mcp endpoint
docker compose -f docker-compose.ghcr.yml up -d
# Or run the stdio MCP server directly
docker run -i --rm ghcr.io/jremick/gridforge:v1.7.0 gridforge mcp --url http://host.docker.internal:8080

Verification

  • 575 offline pytest cases (unit + integration + e2e) + 49 frontend & MCP App tests (0 production npm audit vulnerabilities) + 26 live multi-region open-data E2E renders across US, Canada, Australia, and New Zealand + non-root (UID 10001) runtime container MCP smoke test + Docker Compose parity test.
  • Attached sample PDFs below are rendered at 300–600 DPI directly from ghcr.io/jremick/gridforge:v1.7.0 and automatically verified by tests/integration/verify_pdf.py.

GridForge v1.6.1 — Security Hardening, MapLibre v6 & Performance Optimizations

Choose a tag to compare

@jremick jremick released this 27 Nov 03:06

Comprehensive security hardening, container least-privilege, and end-to-end GIS/web performance optimization release upgrading MapLibre GL JS to v6, isolating web secrets from GIS subprocesses, hardening proxy/origin verification, bounding hosted storage & DoS vectors, and substantially accelerating terrain derivation, PyQGIS styling, exports, and web/Studio responsiveness.

Security & Hardening

  • Non-Root Multi-Stage Container & Secret Isolation (Dockerfile, .dockerignore, src/gridforge/subprocess_env.py, src/gridforge/web/entrypoint.py):
    • Split Dockerfile into test and lean non-root runtime (USER 10001:10001, zero pytest in production) with .dockerignore and automatic root-to-10001 volume ownership handoff when launched with RAILWAY_RUN_UID=0.
    • Added allowlisted build_safe_subprocess_env() stripping web/cloud credentials (GRIDFORGE_SESSION_SECRET, admin/OAuth/Turnstile/origin secrets, AWS/GitHub/Railway tokens) from worker, PyQGIS, supplement, and GDAL/OGR subprocesses, and disabling GDAL /vsicurl/ (CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.nonexistent) for untrusted overlay parsing.
  • Origin-Proxy Auth, Private Proxy Trust & Strict CSP (src/gridforge/web/{access,app,auth,limits}.py, web/src/):
    • Replaced FORWARDED_ALLOW_IPS=* defaults with private proxy CIDRs, stopped auto-trusting RAILWAY_PUBLIC_DOMAIN when GRIDFORGE_ALLOWED_HOSTS is explicitly set, and added OriginProxyAuthMiddleware (GRIDFORGE_ORIGIN_PROXY_SECRET / X-GridForge-Origin-Secret) with constant-time comparison while permitting Railway's internal /api/health probe.
    • Added strict HTTP security headers (Content-Security-Policy, HSTS, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Referrer-Policy, Permissions-Policy), eliminated inline JS/event handlers across the Studio SPA (<script id="gf-brand" type="application/json">), disabled /docs//redoc//openapi.json in hosted mode (404, opt-in via GRIDFORGE_ENABLE_DOCS=true), enforced global request body caps and per-account login throttling, and scrubbed internal paths/tracebacks from hosted errors.
  • Upload, Injection, Remote Fetch & Dependency Hardening (web/package.json, pyproject.toml, src/gridforge/sources/, src/gridforge/render/layout.py):
    • Upgraded maplibre-gl (5.24.1 → ^6.19.0) patching critical XSS GHSA-jrc7-96c5-q579 (0 production npm audit vulnerabilities) and bumped pypdf>=7.0.1, pillow>=13.0.0, fastapi>=0.115.12, h11>=0.16.0, and python-multipart>=0.0.31.
    • Hardened UserOverlaySource (overlay_user.py) against XXE/billion-laughs XML, KMZ zip bombs, symlink escapes, and /vsicurl/ SSRF; added QGIS expression/XML escaping in layout.py and declination.py; added explicit timeouts, HTTPS/hostname allowlists, disk-to-disk streaming caps, and secret-redacted logging across remote DEM/OSM/overlay fetchers; hardened pack builds with 4° custom span caps, atomic staging, and duplicate-build locking.
  • Hosted Storage Bounds & DoS Prevention (src/gridforge/web/{projects,worker,db}.py, web/src/main.ts):
    • Bounded anonymous Guest saved projects with a 64 KB payload cap, per-guest cap (GRIDFORGE_MAX_PROJECTS_PER_GUEST=5), hourly rate limit (GRIDFORGE_GUEST_PROJECT_HOURLY_LIMIT=20), and global cap (GRIDFORGE_MAX_GUEST_PROJECTS=500) with automatic expired/oldest eviction on insert.
    • Wired GRIDFORGE_ADMIN_TTL_HOURS (720 default in hosted mode, 0 disables) into worker.py and db.py to protect bounded persistent volumes, and stopped auto-firing up to 30 DEM preview requests on ?share= / deep-link load in Studio (explicit user-triggered Compute buttons).
    • Extended scripts/release_preflight.py privacy scanning to src/, tests/, and web/src/, hardened scripts/render_release_samples.sh tar extraction flags, and documented all new env vars in deploy/hosted-mode.md.

Performance

  • Web API, SQLite & Studio Frontend (src/gridforge/web/{db,app}.py, src/gridforge/cli.py, web/src/):
    • Added thread-local SQLite connection pooling, composite job/usage indexes, and single-query get_admin_usage_report() aggregation; added GZipMiddleware, immutable 1 yr caching on content-hashed /assets/*, and mtime-fingerprinted pack discovery caching.
    • Added visibility-aware background polling and lazy-loaded PacksModal / AdminModal bundles in Studio, plus lazy CLI imports in cli.py.
  • GIS Pipeline, Terrain, PyQGIS & Exports (src/gridforge/{geo,pipeline,render,export,packs}/):
    • Cached WGS84↔UTM transformers (src/gridforge/geo/crs.py), added PointDeclination fast path (src/gridforge/geo/declination.py), batched DEM elevation sampling in waypoints/tactical overlays, added OGR transaction batching across vector builders, -spat R-Tree pre-filtering in AU/US overlay fetchers, -gt 65536 + attribute indexes in src/gridforge/pipeline/normalize.py, and schema-verified setSubsetString filters in src/gridforge/render/styles.py.
    • Accelerated src/gridforge/pipeline/terrain.py with threaded GDAL, skipped redundant UTM warps, eliminated intermediate dem_utm_ft.tif, ran hillshade/contours/slope/viewshed concurrently, and downsampled LiDAR viewsheds to 10 m.
    • Batched supplement PDF generation into a single subprocess (src/gridforge/geo/supplements.py), parallelized fetch/normalize/pack stages (src/gridforge/pipeline/runner.py, src/gridforge/packs/builder.py, src/gridforge/packs/basemap_builder.py), shared EPSG:3857 warping and MBTiles reuse across MBTiles/GeoPackage/OsmAnd exports, parallelized Garmin KMZ JPEG encoding, and streamed chunked QImage → GeoTIFF writes in src/gridforge/export/raster.py.

Verification & Container Images

  • Multi-Arch Container Image (linux/amd64 + linux/arm64): ghcr.io/jremick/gridforge:v1.6.1 (also tagged :v1.6 and :latest)
  • Automated Verification: 553 offline pytest + 44 frontend tests + 26 live multi-region open-data E2E renders + 0 production npm audit vulnerabilities
  • Attached Showcase Assets: 5 verified 300–600 DPI vector sample PDFs across US (Boulder 1:10k 600 DPI & Yosemite Alpine), Canada (Banff Night-Red), Australia (Mt Kosciuszko RF Viewshed & 915 MHz Fresnel Link Card), and New Zealand (Tongariro LINZ 1 m LiDAR).

GridForge v1.6.0 — Expanded URL Deep Links & Shareable Map Snapshots

Choose a tag to compare

@jremick jremick released this 27 Nov 00:34

Deep-linking and shareable trip snapshot release expanding stateless URL permalinks to preserve full Studio views (basemap, zoom, cartography, outputs, booklet toggles, waypoints, RF links, tactical graphics, and custom LOS observer labels), adding a one-click topbar Share popover, and introducing SQLite-backed immutable short share links (?share=<token>, /api/shares) for both live Studio views and Saved Trip Projects.

Highlights

Expanded Stateless URL Deep Links (web/src/deeplink.ts)

  • Preserves full backward compatibility with all existing query parameters while adding compact, non-default encoding for basemap (bm, including deferred offline basemap activation), map zoom (z), cartography controls (contours, hillshade, labels, hide for disabled layers), output formats (out, mbfmt, garmin, dgrid), booklet toggles (rc, ep, rfcard), custom LOS observer labels (los), waypoints (wp), RF links (rf), and tactical graphics (tac base64url JSON).
  • Syncs the browser address bar across every state mutation (basemap switching, debounced zoom changes, waypoints, RF links, tactical graphics), auto-hydrates markups, route metrics, viewsheds, and RF profiles on load (respecting Cloudflare Turnstile), and enforces strict sanitization plus a 3800-character URL budget with graceful markup fallback.
  • Persists and restores basemap and map_zoom inside Saved Trip Projects alongside full configuration state.

Topbar Share Button & Accessible Share Popover

  • Added a topbar Share button next to Projects with live sheet/markup summary, Copy Direct Link, Create Short Share Link, truncation & local GPX/KML notices, keyboard Escape/click-outside dismissal, and responsive icon-only collapse on narrow viewports.

Server-Backed Shareable Snapshots (/api/shares, ?share=<token>)

  • Added SQLite shared_snapshots storage (src/gridforge/web/shares.py) with 96-bit URL-safe tokens, allowlisted state keys, collection bounds, and a 64 KB payload cap (413 on overflow).
  • Added POST /api/shares (snapshot from current Studio state or an owned project_id with tenant ownership 403 and SameOriginWritesMiddleware CSRF protection), public read-only GET /api/shares/{share_id} (stripping owner/tenant metadata, setting Cache-Control: no-cache, and returning 404 once expired or revoked), owner-scoped GET /api/shares, and owner/admin DELETE /api/shares/{share_id}.
  • Added role-aware hosted TTL caps (GRIDFORGE_GUEST_SHARE_TTL_HOURS=168 / 7d, GRIDFORGE_FRIEND_SHARE_TTL_HOURS=720 / 30d; Admin/local permanent by default), hourly creation rate limits (GRIDFORGE_SHARE_HOURLY_LIMIT=30, GRIDFORGE_FRIEND_SHARE_HOURLY_LIMIT=120), and automatic expired snapshot pruning in db.prune_expired_shares() / worker.run_pruning_pass().
  • Added a one-click Share action on every Saved Trip Project card and automatic ?share=<token> hydration on Studio load with hosted-tier capability clamping.

Fixes

  • Multi-Sheet Atlas Index URL Persistence: Explicitly unchecking Atlas Index on 2×2–3×3 grids now emits index=0 in deep-link URLs instead of omitting index and re-enabling the cover page on reload.

Container Images (Multi-Arch linux/amd64 + linux/arm64)

  • ghcr.io/jremick/gridforge:v1.6.0
  • ghcr.io/jremick/gridforge:v1.6
  • ghcr.io/jremick/gridforge:latest

Verification

  • 538 offline backend tests (tests/unit, tests/integration, tests/e2e) passing
  • 44 frontend unit & DOM tests (npm --prefix web test) passing
  • 26 live multi-region open-data E2E tests (US, Canada, Australia, New Zealand) passing
  • 5 verified 300–600 DPI sample vector PDFs attached directly below

GridForge v1.5.0 — High-Res Cartography, Vector HD & Public Hosted Mode

Choose a tag to compare

@jremick jremick released this 26 Nov 21:39

High-resolution cartography, public hosted multi-tenant deployment, and Studio UX upgrade release adding 1:10,000 / 1:12,500 scales, 300 / 450 / 600 DPI print & digital tile controls, true 1.0 m LiDAR terrain & 2 m / 5 ft contours, richer OSM backcountry micro-features across all four themes, a zero-key Vector HD (OpenFreeMap) Studio basemap, a resizable/collapsible sidebar & redesigned header, and opt-in public hosted mode (GRIDFORGE_AUTH_MODE=hosted, powering GridMaps).

Quick Start (ghcr.io/jremick/gridforge:v1.5.0)

docker pull ghcr.io/jremick/gridforge:v1.5.0
docker compose -f docker-compose.ghcr.yml up -d
# Open http://127.0.0.1:8080

Highlights

  • Higher Print & Digital Export Resolution (300 / 450 / 600 DPI, --export-dpi):
    • Inline Print PDF DPI and Digital Export Tiles DPI selectors in Studio, wired through URL permalinks, Saved Projects, Copy CLI (--dpi, --export-dpi), and backend workers with role-aware hosted caps (GRIDFORGE_GUEST_MAX_DPI=300, GRIDFORGE_FRIEND_MAX_DPI=600).
  • Finer Tactical Scales (1:10,000, 1:12,500), True 1.0 m LiDAR & 2 m / 5 ft Contours:
    • Expanded scales to 1:10,000–1:50,000 with calibrated metric/imperial collar scale bars and 100 mm Calibration Romer scale notes.
    • Preserved true 1.0 m LiDAR terrain on <= 1:15,000 sheets (4096 px memory cap), unlocked 2 m / 5 ft high-density contours on high-res DEMs (<= 10 m), and upgraded Queensland QldDem fetching (qld-1m-lidar) to 1.0 m within 4096 × 2048 px limits.
  • Richer OSM Backcountry Cartography Across All 4 Themes:
    • Added cliffs/escarpments, waterfalls/rapids, springs, stream fords, cave entrances, survey points/trigs, cairns/rock outcrops, gates/stiles/cattle grids, walls/fences, historic ruins/forts, distinct highway=steps, and rough grade4/grade5 4WD tracks across color, bw, night-red (R <= 61), and alpine (transport.qml + points.qml regenerated).
  • Retina Studio Basemap (Vector HD), Redesigned Header & Resizable Sidebar:
    • Zero-API-key Vector HD (OpenFreeMap Liberty) basemap preserving all 18 GeoJSON overlays, zero-clipping telemetry header + accessible account dropdown menu, and persistent drag-resizable (300 px min) / collapsible ([) sidebar.
  • Opt-In Hosted Multi-Tenant Mode (GRIDFORGE_AUTH_MODE=hosted), Custom Branding & Deployment Guide:
    • SQLite-backed Guest / invite-only Friend / Admin roles, email/password + Google OAuth, Cloudflare Turnstile, strict per-owner isolation, Admin usage dashboard + kill switch, role-aware artifact TTL & LRU cache pruning, configurable branding (GRIDFORGE_BRAND_*), Railway config (railway.toml), and deploy/hosted-mode.md — while keeping 127.0.0.1 zero-login local defaults unchanged.
  • Verified Quality (534 offline pytest + 35 frontend tests + live multi-continent E2E):
    • Full tests/unit, tests/integration, and tests/e2e parity in CI plus upgraded mechanical release preflight (scripts/release_preflight.py).

Downloadable Sample Vector PDFs (Attached Below)

  • sample-boulder-flatirons-10k-600dpi-letter.pdf — NEW (1:10,000, 600 DPI) Boulder Flatirons CO, true 1 m USGS 3DEP LiDAR & 5 ft contours
  • sample-yosemite-alpine-24k-letter.pdf — Yosemite Valley CA (1:24,000 Letter, Alpine Winter)
  • sample-banff-night-red-25k-a4.pdf — Banff / Sulphur Mtn AB (1:25,000 A4, Night-Red, NRCan HRDEM)
  • sample-kosciuszko-rf-tactical-25k-a4.pdf — Mt Kosciuszko NSW (1:25,000 A4, 2 pages — RF Viewshed + 915 MHz Fresnel Link Card + Tactical Markup)
  • sample-tongariro-nz-1m-lidar-25k-a4.pdf — Tongariro Alpine Crossing NZ (1:25,000 A4, live LINZ 1 m LiDAR + DOC tracks)

Full Changelog: v1.4.0...v1.5.0

GridForge v1.4.0 — RF Fresnel Cards, Air-Gapped Basemaps, 4 Themes, Field Bundles & North America

Choose a tag to compare

@jremick jremick released this 26 Nov 04:46

What's New in GridForge v1.4.0

Live Multi-Arch GHCR Images & Studio Polish (Phase 0)

  • Live Prebuilt Images (ghcr.io/jremick/gridforge): Added workflow_dispatch to .github/workflows/release.yml and published multi-arch (linux/amd64 + linux/arm64) images — docker compose -f docker-compose.ghcr.yml up -d works out of the box.
  • Studio Quick-Jump Region Switcher & Polish: Added compact region tabs (NSW/VIC default 8 cards · AU · NZ · NA — 32 curated backcountry regions) and automatic clearing of the Copy CLI inline error banner when changing grid/output settings.

Point-to-Point RF Link-Budget & 1st Fresnel Zone Profile (#1)

  • Curved-Earth Fresnel Engine (POST /api/rf-link-profile, --rf-link): Computes $k = 4/3$ effective Earth curvature bulge, 1st Fresnel zone ($r_1$) & 60% clearance envelope, Free-Space Path Loss (FSPL dB), True/Grid/WMM2025 Magnetic bearings + NATO mils, and CLEAR / MARGINAL / OBSTRUCTED status across LoRa/Meshtastic (915/868 MHz), UHF CB (477 MHz), GMRS (462 MHz), VHF (146 MHz), and 2.4/5.8 GHz bands.
  • RF Fresnel Link Card Supplement PDF (--rf-link-card): Pure-vector offscreen Qt PDF page pairing the terrain + Fresnel clearance chart with a multi-link RF budget table, plus a live inline dark-mode SVG Fresnel chart & ⚡ A ↔ B Pick tool in Studio (06 RF / Viewshed).

Turnkey 100% Air-Gapped Offline Basemaps & 29 Regional Packs (#2)

  • Pure-GDAL Offline Basemap Builder (gridforge basemap-pack, include_basemap=true): Generates compact hypsometric color-relief + hillshade Web Mercator .mbtiles (zooms 7–12, < 300 MB RAM) automatically inside offline packs, auto-discovered per-pack via GET /api/basemap/info?pack_id= so Studio's Offline basemap switcher lights up with zero manual setup.
  • 29 Curated Regional Pack Presets (GET /api/packs/regions): Expanded Pack Manager to 5 tabs: AU Tactical (7), AU States (8), New Zealand (6), North America (8), and Custom BBox.

Red-Headlamp Safe & Alpine/Winter Themes + Tactical Markup (#3)

  • 4 First-Class Cartography Themes (172 native QGIS 3.40 .qml styles):
    • night-red (--mode night-red): Red-headlamp-safe palette with zero red/orange/yellow/brown ink on critical contours, trails, roads, grid, or collar features.
    • alpine (--mode alpine): Winter/ski-mountaineering palette with glacier-blue contours, snowfield styling, and high-contrast avalanche slope bands (30°/35°/45°+).
  • Tactical Ruler, Concentric Range Rings & Sector AOIs (--range-ring, --tactical-line, POST /api/ruler-metrics): Live Studio 📏 Ruler (True/Grid/Mag bearings + mils + slope grade + Pin to PDF), ◎ Ring (editable concentric km rings), and ⬠ Sector (polygon AOIs) rendered crisp onto 300 DPI PDFs.

OGC GeoPackage, OsmAnd, Field Bundle .zip & Saved Trip Projects (#4)

  • Expanded Atomic Device Exports: Added OGC GeoPackage raster tiles (--gpkg, QField/Mergin/ATAK), OsmAnd .sqlitedb (--osmand, BigPlanet tile numbering), and one-click Field Bundle .zip (--field-bundle, bundling all outputs + valid GPX 1.1 waypoints/markers + README_FIELD_BUNDLE.txt).
  • Saved Trip Workspace (Projects Drawer & Job Thumbnails): Full SQLite CRUD (GET/POST/PATCH/DELETE /api/projects, protected by SameOriginWritesMiddleware) + lazy-cached page-1 job thumbnails (GET /api/jobs/{id}/thumbnail.png) to save, reload, clone, and delete complete Studio mission configs.

Strong North America Coverage (US + Canada)

  • United States (Public Domain): Added us-trails (USFS National Forest trails/rec sites + NPS trails/POIs) and us-public-lands (USGS PAD-US Federal/State/BLM/USFS/NPS public land & Wilderness boundaries) alongside USGS 3DEP 1 m/10 m (NAVD88).
  • Canada (OGL-Canada): Added ca-hrdem (NRCan HRDEM 1 m/2 m LiDAR COGs → nationwide MRDEM-30, CGVD2013), ca-canvec-trails (Parks Canada nationwide trails/POIs + DataBC trails + ECCC CPCAD protected areas), and an accurate 5-way AutoDEMSource (US → Canada → Australia → New Zealand → Global) with piecewise international border classification.

Verification

  • 293/293 offline Python CI tests passing (pytest -q tests/unit tests/integration) + 6/6 Copy CLI tests (npm --prefix web test).
  • 3/3 live v1.4.0 E2E renders verified at 150–300 DPI: US Yosemite Valley (ALPINE, Letter 1:24k, 1.26M vector segments, max_err = 0.0046 mm), Canada Banff (NIGHT-RED, A4 1:25k, CGVD2013, 11U NS/PS, max_err = 0.0185 mm), and Mt Kosciuszko (RF Viewshed + 915 MHz Fresnel Link Card + Tactical Rings/Sector + .gpkg + .sqlitedb + 25.25 MB Field Bundle .zip).
  • Live 1440×900 Studio UI check (0 JS errors, 0 px topbar clipping, ~150 MiB combined idle web+worker RAM).

GridForge v1.3.0 — CI/GHCR, RF Viewsheds, Air-Gapped Studio, QLD 2m LiDAR & New Zealand

Choose a tag to compare

@jremick jremick released this 26 Nov 03:13

What's New in GridForge v1.3.0

OSS Distribution, Multi-Arch GHCR & Homelab Deploy

  • Prebuilt Multi-Arch Docker Images (ghcr.io/jremick/gridforge): Automated GitHub Actions CI (.github/workflows/ci.yml) and multi-arch (linux/arm64 + linux/amd64) tag release workflow (.github/workflows/release.yml), plus zero-build docker-compose.ghcr.yml.
  • Homelab & Contributor Docs: Ready-to-use reverse-proxy & Tailscale guides (deploy/Caddyfile.example, deploy/traefik-compose.override.yml, deploy/tailscale-serve.md), CONTRIBUTING.md, docs/STYLING_GUIDE.md, and issue/PR templates.

Field Comms, Atlas Covers & Air-Gapped Studio

  • RF / Line-of-Sight Viewshed Overlay (gdal_viewshed): Dual-stack terrain-masked RF coverage raster, range rings, and observer.svg antenna beacons on 300 DPI Color & B&W sheets (--viewshed), plus live 📡 LOS observer placement (POST /api/viewshed-preview) and 06 RF / Viewshed panel in Studio.
  • Geographic Atlas Overview Cover & Edge Fold/Join Marks: Pure-vector Atlas Overview & Sheet Index cover page (--atlas-index) with UTM ticks, sheet footprints, overlap hatching, route overlay, and MGRS index table, plus 4.0 mm L-shaped corner registration marks and FOLD / JOIN edge ticks (--fold-marks).
  • Studio Offline Pack Manager & Air-Gapped Basemap Mode: Built-in Manage Packs modal (GET /api/packs/regions, POST /api/packs/build, GET /api/packs/tasks, DELETE /api/packs/{id}) for all 15 Australian regions + custom BBox, plus automatic local .mbtiles tile serving (GET /api/basemap/info, GET /api/basemap/{z}/{x}/{y}.{ext} with XYZ→TMS Y-flip) for zero-internet Studio operation.

Higher-Res Australia LiDAR & New Zealand Support

  • Queensland Tier-0 2 m State LiDAR (CC BY 4.0): Zero-auth QldDem/ImageServer 2 m LiDAR tier ahead of GA 5 m LiDAR → DEA SRTM 1 s (AHD).
  • New Zealand Topographic Support (CC BY 4.0): Live LINZ s3://nz-elevation 1 m LiDAR & 8 m DEM (nz-linz, NZVD2016), 4-way AutoDEMSource (US / AU / NZ / Global), and DOC Tracks, Huts, Campsites & LINZ Peaks/Trigs (nz-doc-trails).

Security, Correctness & Hardening (Integrated PRs #1–#5)

  • Local-First Studio Security (#1): Loopback 127.0.0.1 defaults across Compose, gridforge serve, and Vite; removed wildcard CORS; added SameOriginWritesMiddleware and TrustedHostMiddleware (GRIDFORGE_ALLOWED_HOSTS, FORWARDED_ALLOW_IPS); pinned starlette>=1.9.
  • Strict Offline Pack Handling (#2): Partial offline packs missing DEM or OSM fail cleanly instead of falling back online (unless completed via --offline-dem / --offline-pbf); Studio preserves selected/permalink packs across discovery failures.
  • Atomic Device Exports (#3): Same-filesystem staging and SQLite WAL/journal/GDAL sidecar protection for Garmin .kmz and ATAK .mbtiles.
  • Atlas Projection & Antimeridian Validation (#4): Shared multi-sheet UTM zone/hemisphere checks and ±180° date-line guards across /api/footprint, /api/jobs, and worker; single-sheet preview for digital-only exports.
  • Copy CLI & Pack-ID Fixes (#5): Compose /out/ & /out/inputs/ output paths, manifest-ID --pack-id lookup across renamed pack directories, POSIX shell quoting, clipboard-safe guards for unsupported CLI combos, --export-grid/--no-export-grid, comma-safe waypoint notes, single-sheet --elevation-profile from uploaded route overlays, and automated Copy CLI tests (npm --prefix web test).

Verification

  • 264/264 offline CI tests passing (pytest -q tests/unit tests/integration) + 5/5 Copy CLI unit tests (npm --prefix web test).
  • 4/4 live E2E v1.3.0 renders verified (Mt Kosciuszko RF Viewshed + Fold Marks, QLD Lamington 2 m LiDAR, NZ Tongariro Alpine Crossing 1 m LiDAR + DOC tracks, Katoomba Strip Atlas Index Cover + 100.00 mm Calibration Page) + live browser Studio UI verification (~147 MiB combined idle web+worker RAM).

GridForge v1.2.0

Choose a tag to compare

@jremick jremick released this 26 Nov 01:14

Pan-Australia state fire-trail, hut, campground, and trig station coverage across all 8 Australian states and territories — plus a cross-border au-state-trails (Auto) router, low-RAM /vsizip/ streaming, air-gapped pack bundling, and a unified Auto + 8-state chip selector in GridForge Studio.

What's New in v1.2.0

  • 6 New Official Open-Data State Trail, Hut & Trig Overlays (100% CC BY 4.0 / CC BY 3.0 AU — zero NC-restricted feeds):
    • Tasmania (--au-overlay au-tas-trails): LISTdata (OpenDataWFS / TopographyAndRelief, CC BY 3.0 AU) — fire trails, Overland Track & PWS walking tracks, walkers huts (Waterfall Valley, Kitchen, Scott-Kilvert), campgrounds, lookouts, and AHD state trigs (CRADLE MTN 1545 m).
    • Queensland (--au-overlay au-qld-trails): QSpatial / QPWS (ParksTerrestrialProtectedAreas, RoadsAndTracks, PhysicalInfrastructure, FoundationData, CC BY 4.0) — QPWS firelines, Great Walks, 4WD tracks, campgrounds/lookouts, and AHD trigs (BINNA BURRA 776 m, HOBWEE 1174 m).
    • ACT (--au-overlay au-act-trails): ACTmapi / EPSDD (CC BY 4.0) — fire & management tracks, Namadgi & Tidbinbilla heritage alpine huts (Hospital Creek, Brandy Flat, Boboyan, Booth Cottage, Cotter), campgrounds, and AHD71 trigs (ORRORAL 1609 m, TIDBINBILLA 1561 m).
    • Western Australia (--au-overlay au-wa-trails): DBCA & Landgate SLIP (CC BY 4.0) — Bibbulmun / Munda Biddi / Cape to Cape / park trails, 4WD/fire tracks (LGATE-195), RATIS campgrounds/shelters, DBCA Fire Towers (DBCA-061), and AHD71 geodetic survey marks (LGATE-076, MOUNT BARKER 117 1096 m).
    • South Australia (--au-overlay au-sa-trails): DEW SA & Location SA (CC BY 4.0) — Heysen & Mawson Trails (streamed directly via GDAL /vsizip/ spatial filter at < 25 MB RAM delta), DEW fire access tracks, park campgrounds, and Location SA AHD survey marks.
    • Northern Territory (--au-overlay au-nt-trails): NTLIS / DEPWS & Geoscience Australia (CC BY 4.0) — NTG 4WD/unformed/pastoral tracks, NTLIS lookouts/gorges/ranger stations, and NTLIS AHD survey control marks (NTS044 1209 m).
  • Cross-Border Auto Router (--au-overlay au-state-trails): Automatically detects intersecting Australian states & territories (including cross-border sheets like Namadgi ACT–NSW or Kosciuszko NSW–VIC), merges features into one unified au_state_trails + au_state_pois GeoPackage, and emits ONLY contributing states' CC BY attributions on the map collar.
  • Air-Gapped Offline Pack Integration: gridforge pack build now bundles au-state-trails automatically for any Australian state, tactical region, or custom bbox.
  • GridForge Studio UI: New State Fire Trails, Huts & Trigs (Auto — All 8 States) toggle with a compact single-row 8-state override chip bar (NSW VIC TAS QLD WA SA NT ACT), automatic mutual exclusion, URL permalink sync, and Copy CLI integration.
  • Verified End-to-End: 211 offline unit & integration tests passing + 7/7 live pan-Australia renders verified numerically (max_err = 0.0185 mm, skew = 0.000 mm) and visually across TAS, QLD, ACT, WA, SA, and NT (~141 MiB total idle stack RAM on a 16 GB Apple Silicon host).