Repository navigation
Releases
GridForge v1.8.0 — Studio UI Redesign, Daylight Theme & MapLibre v6 Worker Fix
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, explicitcolor-schemecontrols, 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%on1024×768laptops — and added anOpen-source · GPL-3.0+ GitHub repository link to the footer. - Self-Hosted Bundled Typography & Unified Inline SVG Icons: Bundled
@fontsource/ibm-plex-sansand@fontsource/ibm-plex-monoLatin.woff2/.woffweights 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 | CAtabs 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 wiredmaplibregl.setWorkerUrl(...)to Vite's?url-emitted/assets/maplibre-gl-worker-<hash>.mjsbundle soVector HDbasemaps and live GeoJSON footprints, MGRS grids, viewsheds, RF links, and tactical overlays work reliably in production Docker builds underworker-src 'self'(resolving/assets/maplibre-gl-worker.mjsHTTP 404s). - Information Architecture & Error Recovery: Flattened stacked sidebar cards into hairline sections, removed numbered
01–06and 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/regionsfails. - 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, adopted100dvhsizing, 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(0productionnpm auditvulnerabilities,mcp_app.html355.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.deHTTP 502/504 responses passed cleanly on retry.) - Live Docker Visual Verification: Zero console/404 errors verified on
1440×900,1024×768, and390×844viewports withVector 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/arm64GridForge v1.7.2 — Bounded Fetch Timeouts, Shared Lifecycle & Mutation-Hardened Suites
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.timeoutfallback composed with callerAbortSignals (AbortSignal.any) inweb/src/api.tsso browser API probes and actions never hang indefinitely while preserving instant workspace-switch cancellation. - Extracted shared
linkAbortSignal,initModalBackdrop, andreportAbortAwareErrorhelpers intoweb/src/components/lifecycle.tsand unifiedAdminModaluser mutations,TurnstileControllerexpiry/timeout widget resets, job cancel/delete list updates, and one-time launch URL parameter stripping (stripOneTimeLaunchParamsinweb/src/deeplink.ts). - Logged caught errors at debug level in the Studio offline-basemap availability probe instead of silently swallowing failures.
- Added a default 90 s
- 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) inContent-Security-Policyscript-srcwhile keeping strict no-unsafe-inlinescript rules intact. - Centralized
GRIDFORGE_AUTH_MODEparsing and validation intogridforge.web.auth.resolve_auth_mode()across the web app, background worker, and/mcpStreamable HTTP router to prevent cross-module configuration drift. - Added verified repository-level
anti-sloplearned rules covering subprocess shell safety, safe YAML loading, dynamiceval/exec, pinned Dockerfile base images, least-privilege file modes, Python HTTP timeouts, and live end-to-end verification discipline.
- Allowed the Cloudflare Web Analytics beacon (
Verification
- Automated & Mutation-Hardened Suites (
618offline PyQGIS pytest +65frontend tests +26live 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 acrossv1.7.xchanges from23.3%to80.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_cogsallowlist validation, default Overpassfollow_redirects=False, exact WFS/SA ZIP limits, low-res preview DEM routing, symlinked sheet-workspace confinement, and empty/mcpclient host handling (95.8%sources /91.7%web+MCP mutation kill rates). - Verified
618offline PyQGIS pytest tests (--network none),65frontend tests + production Studio/MCP App builds (0npm audit --omit=devvulnerabilities), and26live multi-region open-data E2E renders.
- Expanded frontend DOM, API, Turnstile, and deep-link tests (
Docker Image
docker pull ghcr.io/jremick/gridforge:v1.7.2Attached 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
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 standaloneall) across all/api/*routes and/mcptools, keeping account management, API key CRUD, site administration, offline pack management, and cross-tenant share moderation behind browser-session authentication. - Failed closed with
401on legacy keys carrying empty or unrecognized stored scopes, enforcedprojects:readwhen sharing saved projects byproject_id, and forwarded callerrequest.clientinto in-process MCPASGITransportrequests so non-Cloudflare/mcpcallers 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,0disables 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 return413cleanly, and switched hosted job thumbnails and page previews toCache-Control: private, no-store.
- Enforced explicit per-operation PAT scopes (
- 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 resolvedtmp_work_dirand stripped ASCII control characters fromStripSheetInput.sheet_id. - Bounded terrain previews before source selection (
<= 100 kmRF links,<= 125 kmper 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.ausubdomain allowlist for SA trails), and direct raw-deflate + local-header/CRC validation of the SA trails ZIP archive to eliminate Pythonzipfilevs GDAL/vsizip/forged-file_sizeZIP-bomb differentials. - Defaulted Overpass to the configured primary endpoint (
OVERPASS_URL) with no third-party fallback mirrors unless operators explicitly opt in viaOVERPASS_FALLBACK_URLS, and declined HTTP redirects on Overpass POST queries.
- Derived atlas worker scratch workspaces, temporary DEM copies, and sheet PDFs strictly from server-owned sheet ordinals (
- 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_scopetoGET /api/auth/sessionso evenGuest → Guestcookie expiry/resets trigger full workspace resets, deferred 401 Sign-In modal opening until session refresh completes, guardedwindowkeydownshortcuts whilechangeSession()runs, added cross-tabBroadcastChannelsync (including after Google OAuth sign-in), and gaveAdminModal/PacksModalself-containedAbortControllerdisposal. - Consumed incoming legacy deep-link query parameters once on load and removed private map details from
window.locationwhile 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.ymlto verify SemVer release tags point to commits on the default branch, pin all GitHub Actions by full commit SHA, scopepackages: writestrictly tobuild-and-push, check out immutable commit SHAs, recordorg.opencontainers.image.revision, pull sample-render images by exact published OCI digest, reserve:vX.Yand:latestfor stable tags, and pinexamples/render-examples.shto a verified multi-arch GHCR digest.
- Hardened
Added & Fixed
- Cloud Dev Workflow & Community Governance (
deploy/cloud-dev.md,.devcontainer/,SECURITY.md,CODE_OF_CONDUCT.md):- Added
SECURITY.mdvulnerability 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/).
- Added
Verification
- Automated Suites (
610offline pytest +54frontend tests + live multi-region E2E):- Added
tests/unit/test_preview_work_budgets.py,tests/unit/test_source_work_budgets.py, and expandedtest_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, andweb/tests/turnstile.test.mjs. - Verified
610offline PyQGIS pytest tests (--network none),54frontend tests + production Studio/MCP App builds (0npm audit --omit=devvulnerabilities), and live multi-region renders including NRCan HRDEM COG range-proxy reads, SA Trails ZIP redirect/validation, and VIC/NT WFS overlays.
- Added
Full Changelog: v1.7.0...v1.7.1
GridForge v1.7.0 — Native MCP Server, Interactive MCP Apps & AI Tool Integration
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 mcpor connect directly to/mcpon any self-hosted or hosted deployment (2025-06-18,2025-03-26, and2024-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.
- Run locally via
- Interactive SEP-1865 MCP Apps (
ui://gridforge/app.html):- Self-contained single-file HTML/JS workspace (
text/html;profile=mcp-app, CSPdefault-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).
- Self-contained single-file HTML/JS workspace (
- 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).
- Pure-Pillow dark-tactical PNG visual cards (
- 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) forFriendandAdminaccounts in hosted mode (bypassing guest-only Turnstile while preserving full quotas and tenant isolation), plus optional staticGRIDFORGE_API_KEYprotection for single-tenantauth_mode=nonedeployments. - 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.jsonrequest schemas (CreateJobRequest,StripPlanRequest), and declarativegridforge render --spec-file <path|->.
- Scoped SQLite Personal Access Tokens (
Security Hardening
- Enforced
OriginProxyAuthMiddlewareon/mcpwhile forwarding verified origin-proxy,CF-Connecting-IP, andX-Forwarded-Protoheaders strictly into in-process ASGI sub-requests. - Stripped
GRIDFORGE_API_KEYand*API_KEY*env vars from all GIS/PDF subprocesses, guardedpdftoppmpage preview rendering with per-job locks, bounded concurrency slots, and safe environments, capped JSON-RPC batches at 20 messages, rejected forged booleanexpclaims in signed tokens, scrubbed internal errors from/mcpresponses, and expanded release privacy scanning toweb/mcp-app/,docs/, andplugins/.
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:8080Verification
- 575 offline pytest cases (
unit+integration+e2e) + 49 frontend & MCP App tests (0productionnpm auditvulnerabilities) + 26 live multi-region open-data E2E renders across US, Canada, Australia, and New Zealand + non-root (UID 10001)runtimecontainer 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.0and automatically verified bytests/integration/verify_pdf.py.
GridForge v1.6.1 — Security Hardening, MapLibre v6 & Performance Optimizations
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
Dockerfileintotestand lean non-rootruntime(USER 10001:10001, zeropytestin production) with.dockerignoreand automatic root-to-10001volume ownership handoff when launched withRAILWAY_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.
- Split
- 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-trustingRAILWAY_PUBLIC_DOMAINwhenGRIDFORGE_ALLOWED_HOSTSis explicitly set, and addedOriginProxyAuthMiddleware(GRIDFORGE_ORIGIN_PROXY_SECRET/X-GridForge-Origin-Secret) with constant-time comparison while permitting Railway's internal/api/healthprobe. - 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.jsonin hosted mode (404, opt-in viaGRIDFORGE_ENABLE_DOCS=true), enforced global request body caps and per-account login throttling, and scrubbed internal paths/tracebacks from hosted errors.
- Replaced
- 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 XSSGHSA-jrc7-96c5-q579(0productionnpm auditvulnerabilities) and bumpedpypdf>=7.0.1,pillow>=13.0.0,fastapi>=0.115.12,h11>=0.16.0, andpython-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 inlayout.pyanddeclination.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.
- Upgraded
- Hosted Storage Bounds & DoS Prevention (
src/gridforge/web/{projects,worker,db}.py,web/src/main.ts):- Bounded anonymous Guest saved projects with a
64 KBpayload 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(720default in hosted mode,0disables) intoworker.pyanddb.pyto 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.pyprivacy scanning tosrc/,tests/, andweb/src/, hardenedscripts/render_release_samples.shtar extraction flags, and documented all new env vars indeploy/hosted-mode.md.
- Bounded anonymous Guest saved projects with a
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; addedGZipMiddleware, immutable1 yrcaching on content-hashed/assets/*, and mtime-fingerprinted pack discovery caching. - Added visibility-aware background polling and lazy-loaded
PacksModal/AdminModalbundles in Studio, plus lazy CLI imports incli.py.
- Added thread-local SQLite connection pooling, composite job/usage indexes, and single-query
- GIS Pipeline, Terrain, PyQGIS & Exports (
src/gridforge/{geo,pipeline,render,export,packs}/):- Cached WGS84↔UTM transformers (
src/gridforge/geo/crs.py), addedPointDeclinationfast path (src/gridforge/geo/declination.py), batched DEM elevation sampling in waypoints/tactical overlays, added OGR transaction batching across vector builders,-spatR-Tree pre-filtering in AU/US overlay fetchers,-gt 65536+ attribute indexes insrc/gridforge/pipeline/normalize.py, and schema-verifiedsetSubsetStringfilters insrc/gridforge/render/styles.py. - Accelerated
src/gridforge/pipeline/terrain.pywith threaded GDAL, skipped redundant UTM warps, eliminated intermediatedem_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), sharedEPSG:3857warping and MBTiles reuse across MBTiles/GeoPackage/OsmAnd exports, parallelized Garmin KMZ JPEG encoding, and streamed chunkedQImage→ GeoTIFF writes insrc/gridforge/export/raster.py.
- Cached WGS84↔UTM transformers (
Verification & Container Images
- Multi-Arch Container Image (
linux/amd64+linux/arm64):ghcr.io/jremick/gridforge:v1.6.1(also tagged:v1.6and:latest) - Automated Verification:
553offline pytest +44frontend tests +26live multi-region open-data E2E renders +0productionnpm auditvulnerabilities - 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
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 deferredofflinebasemap activation), map zoom (z), cartography controls (contours,hillshade,labels,hidefor 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 (tacbase64url 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
basemapandmap_zoominside 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_snapshotsstorage (src/gridforge/web/shares.py) with 96-bit URL-safe tokens, allowlisted state keys, collection bounds, and a64 KBpayload cap (413on overflow). - Added
POST /api/shares(snapshot from current Studio state or an ownedproject_idwith tenant ownership403andSameOriginWritesMiddlewareCSRF protection), public read-onlyGET /api/shares/{share_id}(stripping owner/tenant metadata, settingCache-Control: no-cache, and returning404once expired or revoked), owner-scopedGET /api/shares, and owner/adminDELETE /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 indb.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×3grids now emitsindex=0in deep-link URLs instead of omittingindexand re-enabling the cover page on reload.
Container Images (Multi-Arch linux/amd64 + linux/arm64)
ghcr.io/jremick/gridforge:v1.6.0ghcr.io/jremick/gridforge:v1.6ghcr.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
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:8080Highlights
- 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).
- Inline Print PDF DPI and Digital Export Tiles DPI selectors in Studio, wired through URL permalinks, Saved Projects, Copy CLI (
- Finer Tactical Scales (
1:10,000,1:12,500), True1.0 mLiDAR &2 m/5 ftContours:- Expanded scales to
1:10,000–1:50,000with calibrated metric/imperial collar scale bars and 100 mm Calibration Romer scale notes. - Preserved true
1.0 mLiDAR terrain on<= 1:15,000sheets (4096 pxmemory cap), unlocked2 m/5 fthigh-density contours on high-res DEMs (<= 10 m), and upgraded QueenslandQldDemfetching (qld-1m-lidar) to1.0 mwithin4096 × 2048 pxlimits.
- Expanded scales to
- 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 roughgrade4/grade54WD tracks acrosscolor,bw,night-red(R <= 61), andalpine(transport.qml+points.qmlregenerated).
- 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
- 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 pxmin) / collapsible ([) 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 (
- Opt-In Hosted Multi-Tenant Mode (
GRIDFORGE_AUTH_MODE=hosted), Custom Branding & Deployment Guide:- SQLite-backed
Guest/ invite-onlyFriend/Adminroles, 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), anddeploy/hosted-mode.md— while keeping127.0.0.1zero-login local defaults unchanged.
- SQLite-backed
- Verified Quality (
534offline pytest +35frontend tests + live multi-continent E2E):- Full
tests/unit,tests/integration, andtests/e2eparity in CI plus upgraded mechanical release preflight (scripts/release_preflight.py).
- Full
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 ftcontourssample-yosemite-alpine-24k-letter.pdf— Yosemite Valley CA (1:24,000Letter, Alpine Winter)sample-banff-night-red-25k-a4.pdf— Banff / Sulphur Mtn AB (1:25,000A4, Night-Red, NRCan HRDEM)sample-kosciuszko-rf-tactical-25k-a4.pdf— Mt Kosciuszko NSW (1:25,000A4, 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,000A4, 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
What's New in GridForge v1.4.0
Live Multi-Arch GHCR Images & Studio Polish (Phase 0)
- Live Prebuilt Images (
ghcr.io/jremick/gridforge): Addedworkflow_dispatchto.github/workflows/release.ymland published multi-arch (linux/amd64+linux/arm64) images —docker compose -f docker-compose.ghcr.yml up -dworks out of the box. - Studio Quick-Jump Region Switcher & Polish: Added compact region tabs (
NSW/VICdefault 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, andCLEAR/MARGINAL/OBSTRUCTEDstatus 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 Picktool 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 MBRAM) automatically inside offline packs, auto-discovered per-pack viaGET /api/basemap/info?pack_id=so Studio'sOfflinebasemap 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 (
172native QGIS 3.40.qmlstyles):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,BigPlanettile 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 (
ProjectsDrawer & Job Thumbnails): Full SQLite CRUD (GET/POST/PATCH/DELETE /api/projects, protected bySameOriginWritesMiddleware) + 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) andus-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-wayAutoDEMSource(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.0E2E renders verified at 150–300 DPI: US Yosemite Valley (ALPINE, Letter 1:24k,1.26Mvector 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 MBField Bundle.zip). - Live
1440×900Studio UI check (0JS errors,0 pxtopbar clipping,~150 MiBcombined idle web+worker RAM).
GridForge v1.3.0 — CI/GHCR, RF Viewsheds, Air-Gapped Studio, QLD 2m LiDAR & New Zealand
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-builddocker-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, andobserver.svgantenna beacons on 300 DPI Color & B&W sheets (--viewshed), plus live📡 LOSobserver placement (POST /api/viewshed-preview) and06 RF / Viewshedpanel 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, plus4.0 mmL-shaped corner registration marks andFOLD / JOINedge 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.mbtilestile 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/ImageServer2 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-elevation1 m LiDAR & 8 m DEM (nz-linz,NZVD2016), 4-wayAutoDEMSource(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.1defaults across Compose,gridforge serve, and Vite; removed wildcard CORS; addedSameOriginWritesMiddlewareandTrustedHostMiddleware(GRIDFORGE_ALLOWED_HOSTS,FORWARDED_ALLOW_IPS); pinnedstarlette>=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
.kmzand 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-idlookup 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-profilefrom 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.0renders 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 MiBcombined idle web+worker RAM).
GridForge v1.2.0
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 MBRAM 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).
- Tasmania (
- 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 unifiedau_state_trails+au_state_poisGeoPackage, and emits ONLY contributing states' CC BY attributions on the map collar. - Air-Gapped Offline Pack Integration:
gridforge pack buildnow bundlesau-state-trailsautomatically 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 (NSWVICTASQLDWASANTACT), automatic mutual exclusion, URL permalink sync, and Copy CLI integration. - Verified End-to-End:
211offline unit & integration tests passing +7/7live 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 MiBtotal idle stack RAM on a 16 GB Apple Silicon host).