liketrek/TREKPublic

A self-hosted travel/trip planner with real-time collaboration, interactive maps, PWA support, SSO, budgets, packing lists, and more.

AI summary: A comprehensive, self-hosted travel planner featuring real-time collaboration and interactive routing.

Stars
11.7K
+85 today
Forks
978
Watchers
38
Open issues
26
Open PRs
8
Contributors
~52
Commits
1.3K
Branches
14

TypeScriptAGPL-3.0Created Mar 19, 2026Last push todayLatest release v3.4.1+429 stars this week+429 this month

Star history

since Jul 30, 2026
05K10KJul 2026Aug 2026Aug 2026Aug 2026
11.7K stars as of Aug 7, 2026, tracked back to Jul 30, 2026.

Contribution activity

commits per day, last 52 weeks
AugSepOctNovDecJanFebMarAprMayJunJulMonWedFri2025-08-03: 0 commits2025-08-04: 0 commits2025-08-05: 0 commits2025-08-06: 0 commits2025-08-07: 0 commits2025-08-08: 0 commits2025-08-09: 0 commits2025-08-10: 0 commits2025-08-11: 0 commits2025-08-12: 0 commits2025-08-13: 0 commits2025-08-14: 0 commits2025-08-15: 0 commits2025-08-16: 0 commits2025-08-17: 0 commits2025-08-18: 0 commits2025-08-19: 0 commits2025-08-20: 0 commits2025-08-21: 0 commits2025-08-22: 0 commits2025-08-23: 0 commits2025-08-24: 0 commits2025-08-25: 0 commits2025-08-26: 0 commits2025-08-27: 0 commits2025-08-28: 0 commits2025-08-29: 0 commits2025-08-30: 0 commits2025-08-31: 0 commits2025-09-01: 0 commits2025-09-02: 0 commits2025-09-03: 0 commits2025-09-04: 0 commits2025-09-05: 0 commits2025-09-06: 0 commits2025-09-07: 0 commits2025-09-08: 0 commits2025-09-09: 0 commits2025-09-10: 0 commits2025-09-11: 0 commits2025-09-12: 0 commits2025-09-13: 0 commits2025-09-14: 0 commits2025-09-15: 0 commits2025-09-16: 0 commits2025-09-17: 0 commits2025-09-18: 0 commits2025-09-19: 0 commits2025-09-20: 0 commits2025-09-21: 0 commits2025-09-22: 0 commits2025-09-23: 0 commits2025-09-24: 0 commits2025-09-25: 0 commits2025-09-26: 0 commits2025-09-27: 0 commits2025-09-28: 0 commits2025-09-29: 0 commits2025-09-30: 0 commits2025-10-01: 0 commits2025-10-02: 0 commits2025-10-03: 0 commits2025-10-04: 0 commits2025-10-05: 0 commits2025-10-06: 0 commits2025-10-07: 0 commits2025-10-08: 0 commits2025-10-09: 0 commits2025-10-10: 0 commits2025-10-11: 0 commits2025-10-12: 0 commits2025-10-13: 0 commits2025-10-14: 0 commits2025-10-15: 0 commits2025-10-16: 0 commits2025-10-17: 0 commits2025-10-18: 0 commits2025-10-19: 0 commits2025-10-20: 0 commits2025-10-21: 0 commits2025-10-22: 0 commits2025-10-23: 0 commits2025-10-24: 0 commits2025-10-25: 0 commits2025-10-26: 0 commits2025-10-27: 0 commits2025-10-28: 0 commits2025-10-29: 0 commits2025-10-30: 0 commits2025-10-31: 0 commits2025-11-01: 0 commits2025-11-02: 0 commits2025-11-03: 0 commits2025-11-04: 0 commits2025-11-05: 0 commits2025-11-06: 0 commits2025-11-07: 0 commits2025-11-08: 0 commits2025-11-09: 0 commits2025-11-10: 0 commits2025-11-11: 0 commits2025-11-12: 0 commits2025-11-13: 0 commits2025-11-14: 0 commits2025-11-15: 0 commits2025-11-16: 0 commits2025-11-17: 0 commits2025-11-18: 0 commits2025-11-19: 0 commits2025-11-20: 0 commits2025-11-21: 0 commits2025-11-22: 0 commits2025-11-23: 0 commits2025-11-24: 0 commits2025-11-25: 0 commits2025-11-26: 0 commits2025-11-27: 0 commits2025-11-28: 0 commits2025-11-29: 0 commits2025-11-30: 0 commits2025-12-01: 0 commits2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 0 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 0 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 0 commits2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 0 commits2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 0 commits2026-03-09: 0 commits2026-03-10: 0 commits2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 0 commits2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 0 commits2026-03-17: 0 commits2026-03-18: 2 commits2026-03-19: 39 commits2026-03-20: 6 commits2026-03-21: 14 commits2026-03-22: 8 commits2026-03-23: 8 commits2026-03-24: 17 commits2026-03-25: 6 commits2026-03-26: 9 commits2026-03-27: 5 commits2026-03-28: 21 commits2026-03-29: 48 commits2026-03-30: 65 commits2026-03-31: 40 commits2026-04-01: 52 commits2026-04-02: 15 commits2026-04-03: 67 commits2026-04-04: 51 commits2026-04-05: 63 commits2026-04-06: 27 commits2026-04-07: 12 commits2026-04-08: 12 commits2026-04-09: 23 commits2026-04-10: 26 commits2026-04-11: 27 commits2026-04-12: 31 commits2026-04-13: 21 commits2026-04-14: 31 commits2026-04-15: 30 commits2026-04-16: 30 commits2026-04-17: 18 commits2026-04-18: 22 commits2026-04-19: 12 commits2026-04-20: 21 commits2026-04-21: 47 commits2026-04-22: 22 commits2026-04-23: 11 commits2026-04-24: 0 commits2026-04-25: 0 commits2026-04-26: 8 commits2026-04-27: 4 commits2026-04-28: 5 commits2026-04-29: 1 commit2026-04-30: 1 commit2026-05-01: 1 commit2026-05-02: 0 commits2026-05-03: 5 commits2026-05-04: 2 commits2026-05-05: 0 commits2026-05-06: 3 commits2026-05-07: 2 commits2026-05-08: 0 commits2026-05-09: 0 commits2026-05-10: 2 commits2026-05-11: 0 commits2026-05-12: 0 commits2026-05-13: 4 commits2026-05-14: 0 commits2026-05-15: 2 commits2026-05-16: 1 commit2026-05-17: 0 commits2026-05-18: 0 commits2026-05-19: 0 commits2026-05-20: 0 commits2026-05-21: 0 commits2026-05-22: 0 commits2026-05-23: 0 commits2026-05-24: 2 commits2026-05-25: 3 commits2026-05-26: 0 commits2026-05-27: 0 commits2026-05-28: 0 commits2026-05-29: 0 commits2026-05-30: 0 commits2026-05-31: 0 commits2026-06-01: 0 commits2026-06-02: 0 commits2026-06-03: 0 commits2026-06-04: 0 commits2026-06-05: 0 commits2026-06-06: 0 commits2026-06-07: 0 commits2026-06-08: 0 commits2026-06-09: 0 commits2026-06-10: 0 commits2026-06-11: 0 commits2026-06-12: 0 commits2026-06-13: 0 commits2026-06-14: 0 commits2026-06-15: 0 commits2026-06-16: 2 commits2026-06-17: 0 commits2026-06-18: 2 commits2026-06-19: 11 commits2026-06-20: 5 commits2026-06-21: 4 commits2026-06-22: 7 commits2026-06-23: 2 commits2026-06-24: 1 commit2026-06-25: 4 commits2026-06-26: 9 commits2026-06-27: 22 commits2026-06-28: 0 commits2026-06-29: 0 commits2026-06-30: 0 commits2026-07-01: 2 commits2026-07-02: 0 commits2026-07-03: 0 commits2026-07-04: 2 commits2026-07-05: 2 commits2026-07-06: 3 commits2026-07-07: 0 commits2026-07-08: 0 commits2026-07-09: 0 commits2026-07-10: 0 commits2026-07-11: 3 commits2026-07-12: 0 commits2026-07-13: 0 commits2026-07-14: 0 commits2026-07-15: 0 commits2026-07-16: 0 commits2026-07-17: 0 commits2026-07-18: 7 commits2026-07-19: 3 commits2026-07-20: 0 commits2026-07-21: 0 commits2026-07-22: 0 commits2026-07-23: 0 commits2026-07-24: 0 commits2026-07-25: 2 commits2026-07-26: 0 commits2026-07-27: 0 commits2026-07-28: 0 commits2026-07-29: 0 commits2026-07-30: 0 commits2026-07-31: 0 commits2026-08-01: 0 commits
1,098 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Widely adopted

    11,663 stars

  • Very active

    1,098 commits in 52 weeks

  • Well documented

    High community health score

  • Continuous integration

    Automated checks passing

What TREK does

TREK is an open-source, self-hosted alternative to commercial trip planning applications like Wanderlog or TripIt. It provides a centralized hub for organizing complex itineraries, managing travel budgets, and creating packing lists. The platform stands out with its real-time collaboration features, allowing multiple users to edit a trip simultaneously. It integrates interactive maps for visual route planning and Point of Interest (POI) tracking. Built as a Progressive Web App (PWA), it ensures travelers have access to their plans even with intermittent internet connectivity.

Privacy-conscious travelers, home lab enthusiasts, and groups who need a robust, collaborative tool for complex trip planning. Basic self-hosting knowledge is required.

  • Real-Time Collaboration: Syncs edits instantly across all users planning a trip, preventing scheduling conflicts.
  • Interactive Map Routing: Visualizes daily itineraries and calculates routes between saved points of interest.
  • Budget Tracking: Manages shared expenses, categorizes spending, and tracks overall trip costs.
  • Offline Access via PWA: Allows users to view their itineraries and maps on mobile devices without cellular service.
  • SSO Integration: Supports Single Sign-On for secure deployment in home lab or enterprise environments.
  • Customizable Packing Lists: Provides shared checklists to ensure no group equipment is forgotten.

Where teams use it

Group Vacation Planning

Allows a family of six to collaboratively build a multi-city European itinerary and track shared expenses.

Privacy-Focused Travel

Enables users to manage detailed travel plans on their own server without sharing location data with corporate apps.

Remote Expedition Management

Provides a reliable, offline-capable itinerary for hikers exploring areas with zero cellular connectivity.

Event Coordination

Helps organizers manage accommodations, routes, and schedules for complex, multi-day offsite events.

Getting started: docker-compose up -d

README

main branch
TREK
Your trips. Your plan. Your server.

A self-hosted, real-time collaborative travel planner — with maps, budgets, packing lists, a journal, and AI built in.


Demo   Docker   Discord   Roadmap
Ko-fi   BMAC
License Latest Release Docker Pulls Stars


TREK — 60-second tour

Dashboard Trip planner · day plan & route Journey journal Costs · expense splitting Atlas · visited countries Vacay planner Collections · saved place lists Admin panel

What you get

TREK feature tiles
See all features

🧭 Trip planning

  • Drag & drop planner — organise places into day plans with reordering and cross-day moves
  • Interactive map — Leaflet or Mapbox GL with 3D buildings, terrain, photo markers, clustering, route visualization
  • Place search — Google Places (photos, ratings, hours) or OpenStreetMap (free, no API key)
  • Place import — shared Google Maps / Naver Maps lists, plus GPX and KML/KMZ/GeoJSON map files
  • Day notes — timestamped, icon-tagged notes with drag-and-drop reordering
  • Route optimisation — auto-sort places and export to Google Maps
  • Weather forecasts — 16-day via Open-Meteo (no key) + historical climate fallback
  • Category filter — show only matching pins on the map

🧳 Travel management

  • Reservations — flights, accommodations, restaurants with status, confirmation numbers, files; import from booking confirmation emails and PDFs (KDE Itinerary)
  • Costs — track and split trip expenses (Splitwise-style): per-person / per-day breakdowns, settle-up, multi-currency
  • Packing lists — categories, templates, user assignment, progress tracking
  • Bag tracking — optional weight tracking with iOS-style distribution
  • Document manager — attach docs, tickets, PDFs to trips / places / reservations (≤ 50 MB each)
  • PDF export — full trip plan as PDF with cover page, images, notes

👥 Collaboration

  • Real-time sync — WebSocket. Changes appear instantly across all connected users
  • Multi-user trips — invite members with role-based access
  • Invite links — one-time or reusable links with expiry
  • SSO (OIDC) — Google, Apple, Authentik, Keycloak, or any OIDC provider
  • 2FA — TOTP + backup codes
  • Passkeys — passwordless WebAuthn login (fingerprint / face / PIN / security key), admin-toggleable
  • Collab suite — group chat, shared notes, polls, day check-ins

📱 Mobile & PWA

  • Installable — iOS and Android, straight from the browser, no App Store needed
  • Offline support — Service Worker caches tiles, API, uploads via Workbox
  • Native feel — fullscreen standalone, themed status bar, splash screen
  • Touch optimised — mobile-specific layouts with safe-area handling

🧩 Addons (admin-toggleable)

  • Lists — packing lists + to-dos with templates, member assignments, optional bag tracking
  • Costs — expense tracker with splits and settle-up (who owes whom), multi-currency
  • Documents — file attachments on trips, places, and reservations
  • Collab — chat, notes, polls, day-by-day attendance
  • Vacay — personal vacation planner with calendar, 100+ country holidays, carry-over tracking
  • Atlas — world map of visited countries, bucket list, travel stats, streak tracking, liquid-glass UI
  • Journey — magazine-style travel journal with entries, photos (Immich/Synology), maps, moods
  • AirTrail — connect a self-hosted AirTrail instance to import and sync flights into reservations
  • MCP — expose TREK to AI assistants via OAuth 2.1

🤖 AI / MCP

  • Built-in MCP server — OAuth 2.1 authenticated. 150+ tools, 30 resources
  • Granular scopes — 27 OAuth scopes across 13 permission groups
  • Full automation — AI can create trips, plan days, build packing lists, manage budgets, mark countries visited
  • Pre-built promptstrip-summary, packing-list, budget-overview
  • Addon-aware — exposes Atlas, Collab, Vacay when those addons are on

⚙️ Admin & customisation

  • Dashboard views — card grid or compact list · Dark mode — full theme with matching status bar
  • 20 languages — EN, DE, ES, FR, IT, NL, HU, RU, ZH, ZH-TW, PL, CS, AR (RTL), BR, ID, TR, JA, KO, UK, GR
  • Admin panel — users, invites, packing templates, categories, addons, API keys, backups, GitHub history
  • Notifications — per-user preferences across email (SMTP), webhook, ntfy, and an in-app notification center
  • Auto-backups — scheduled with configurable retention · Units — °C/°F, 12h/24h, map tile sources, default coordinates

Get started in 30 seconds

ENCRYPTION_KEY=$(openssl rand -hex 32) docker run -d -p 3000:3000 \
  -e ENCRYPTION_KEY=$ENCRYPTION_KEY \
  -v ./data:/app/data -v ./uploads:/app/uploads mauriceboe/trek

Open http://localhost:3000. On first boot TREK seeds an admin account — if you set ADMIN_EMAIL/ADMIN_PASSWORD those are used, otherwise the credentials are printed to the container log (docker logs trek).

  ·  Docker Compose  ·  Helm / Kubernetes  ·  Install as PWA  ·  Reverse Proxy  ·  


Tech stack

Node.js NestJS SQLite React Vite TypeScript Tailwind Leaflet Docker

Real-time sync via WebSocket (ws). Backend on NestJS 11. State with Zustand. Auth via JWT + OAuth 2.1 + OIDC + Passkeys (WebAuthn) + TOTP MFA. Weather via Open-Meteo (no key required). Maps with Leaflet and Mapbox GL.


Docker Compose (production)

Full compose example with secure defaults
services:
  app:
    image: mauriceboe/trek:latest
    container_name: trek
    read_only: true
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL
    cap_add:
      - CHOWN
      - SETUID
      - SETGID
    tmpfs:
      - /tmp:noexec,nosuid,size=64m
    ports:
      - "3000:3000"
    environment:
      - NODE_ENV=production
      - PORT=3000
      - ENCRYPTION_KEY=${ENCRYPTION_KEY:-}   # generate with: openssl rand -hex 32
      - TZ=${TZ:-UTC}
      - LOG_LEVEL=${LOG_LEVEL:-info}
      - ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-}
      - APP_URL=${APP_URL:-}                 # required for OIDC + email links
      # - FORCE_HTTPS=true                   # behind a TLS-terminating proxy
      # - TRUST_PROXY=1
      # - OIDC_ISSUER=https://auth.example.com
      # - OIDC_CLIENT_ID=trek
      # - OIDC_CLIENT_SECRET=supersecret
      # - OIDC_DISPLAY_NAME=SSO
      # - OIDC_ADMIN_CLAIM=groups
      # - OIDC_ADMIN_VALUE=app-trek-admins
    volumes:
      - ./data:/app/data
      - ./uploads:/app/uploads
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 15s

Then:

docker compose up -d

HTTPS notes: FORCE_HTTPS=true is optional — it adds a 301 redirect, HSTS, CSP upgrade-insecure-requests, and forces the secure cookie flag. Only use it behind a TLS-terminating reverse proxy. TRUST_PROXY=1 tells the server how many proxies sit in front so real client IPs and X-Forwarded-Proto work.


Helm (Kubernetes)

helm repo add trek https://chart.liketrek.com
helm repo update
helm install trek trek/trek

See charts/README.md for values.

Install as App (PWA)

TREK works as a Progressive Web App — no App Store needed.

  1. Open TREK in the browser (HTTPS required)
  2. iOS: Share ▸ Add to Home Screen
  3. Android: Menu ▸ Install app (or Add to Home Screen)

TREK then launches fullscreen with its own icon, just like a native app.


Updating

Docker Compose:

docker compose pull && docker compose up -d

Docker run — reuse the original volume paths:

docker pull mauriceboe/trek
docker rm -f trek
docker run -d --name trek -p 3000:3000 -v ./data:/app/data -v ./uploads:/app/uploads --restart unless-stopped mauriceboe/trek

Not sure which paths you used? docker inspect trek --format '{{json .Mounts}}' before removing the container.

Your data stays in the mounted data and uploads volumes — updates never touch it.

Important

Mount only the data and uploads directories — -v ./data:/app/data -v ./uploads:/app/uploads. Never mount a volume at /app. Doing so hides the application code shipped in the image and the container fails to start with Cannot find module 'tsconfig-paths/register'. If you previously mounted /app, switch to the two mounts above; your data in data/ and uploads/ is preserved.

Rotating the Encryption Key

If you need to rotate ENCRYPTION_KEY (e.g. upgrading from a version that derived encryption from JWT_SECRET):

docker exec -it trek node --import tsx scripts/migrate-encryption.ts

The script creates a timestamped DB backup before making changes and prompts for old + new keys (input is not echoed).

Reverse Proxy

For production, put TREK behind a TLS-terminating reverse proxy. TREK uses WebSockets for real-time sync, so the proxy must support WebSocket upgrades on /ws.

If you use the MCP addon, the proxy must also pass the Mcp-Session-Id header through in both directions on /mcp — Nginx and Caddy do this by default, but a proxy that strips it makes every tool call open a new session instead of reusing one. See the Reverse Proxy wiki page for details.

Nginx
server {
    listen 80;
    server_name trek.yourdomain.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl http2;
    server_name trek.yourdomain.com;

    ssl_certificate     /etc/ssl/fullchain.pem;
    ssl_certificate_key /etc/ssl/privkey.pem;

    # 500 MB covers backup-restore uploads (capped at 500 MB server-side).
    client_max_body_size 500m;

    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location /ws {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 86400;
    }

    # Only needed if you use the MCP addon. Responses are Server-Sent Events,
    # so buffering must be off or tool results arrive late.
    location /mcp {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_buffering off;
        proxy_read_timeout 3600s;
    }
}
Caddy
trek.yourdomain.com {
    reverse_proxy localhost:3000
}

Caddy handles TLS and WebSockets automatically.


Environment variables

Full reference
Variable Description Default
Core
PORT Server port 3000
NODE_ENV Environment (production / development) production
ENCRYPTION_KEY At-rest encryption key for stored secrets (API keys, MFA, SMTP, OIDC). Recommended: generate with openssl rand -hex 32. If unset, falls back to data/.jwt_secret (existing installs) or auto-generates a key (fresh installs). Auto
TZ Timezone for logs, reminders and cron jobs (e.g. Europe/Berlin) UTC
LOG_LEVEL info = concise user actions, debug = verbose details info
TREK_WIKI_DIR Where the in-app Help pages (/help) read their content from. TREK ships its wiki and serves it from disk, so Help always matches the version you are running — you should not need to set this. Point it at your own directory to serve custom docs. If the path does not exist, Help falls back to fetching the public GitHub wiki (needs outbound network, and tracks the latest release). bundled wiki/
DEFAULT_LANGUAGE Default language on the login page for users with no saved preference. Browser/OS language is auto-detected first; this is the fallback. Supported: de, en, es, fr, hu, nl, br, cs, pl, ru, zh, zh-TW, it, ar, id, tr, ja, ko, uk, gr en
ALLOWED_ORIGINS Comma-separated origins for CORS and email links same-origin
FORCE_HTTPS Optional. When true: 301-redirects HTTP to HTTPS, sends HSTS, adds CSP upgrade-insecure-requests, forces the session cookie secure flag. Useful behind a TLS-terminating reverse proxy. Requires TRUST_PROXY. false
HSTS_INCLUDE_SUBDOMAINS When true: adds the includeSubDomains directive to the HSTS header, extending HTTPS enforcement to all subdomains. Only effective when HSTS is active (FORCE_HTTPS=true or NODE_ENV=production). Leave false if you run other services on sibling subdomains over plain HTTP. false
COOKIE_SECURE Controls the secure flag on the trek_session cookie. Auto-derived: on when NODE_ENV=production or FORCE_HTTPS=true. Escape hatch: set false to allow session cookies over plain HTTP. Not recommended in production. auto
SESSION_DURATION How long a login session stays valid when "Remember me" is unchecked (the default): sets the trek_session JWT exp and issues a browser-session cookie (cleared when the browser closes). Accepts ms-style strings: 1h, 12h, 7d, 30d, 90d. Invalid values warn at startup and fall back to the default. 24h
SESSION_DURATION_REMEMBER Session length when "Remember me" is ticked at login: a longer-lived JWT plus a persistent trek_session cookie that survives browser restarts. Same format and startup-fallback behaviour as SESSION_DURATION. 30d
TRUST_PROXY Number of trusted reverse proxies. Tells the server to read client IP from X-Forwarded-For and protocol from X-Forwarded-Proto. Defaults to 1 in production; off in dev unless set. 1
ALLOW_INTERNAL_NETWORK Allow outbound requests to private/RFC-1918 IPs (e.g. Immich on your LAN). Loopback and link-local addresses remain blocked. false
APP_URL Public base URL of this instance (e.g. https://trek.example.com). Required when OIDC is enabled; used as base for email notification links.
OIDC / SSO
OIDC_ISSUER OpenID Connect provider URL
OIDC_CLIENT_ID OIDC client ID
OIDC_CLIENT_SECRET OIDC client secret
OIDC_DISPLAY_NAME Label shown on the SSO login button SSO
OIDC_ONLY Force SSO-only mode: disables password login + registration, regardless of Admin > Settings. The first SSO login becomes admin. false
OIDC_ADMIN_CLAIM OIDC claim used to identify admin users
OIDC_ADMIN_VALUE Value of the OIDC claim that grants admin role
OIDC_SCOPE Space-separated OIDC scopes. Fully replaces the default — always include openid email profile. openid email profile
OIDC_DISCOVERY_URL Override the auto-constructed OIDC discovery endpoint (e.g. Authentik: .../application/o/trek/.well-known/openid-configuration)
Initial setup
ADMIN_EMAIL Email for the first admin on initial boot. Must be set together with ADMIN_PASSWORD. If either is omitted a random password is printed to the server log. No effect once a user exists. admin@trek.local
ADMIN_PASSWORD Password for the first admin on initial boot. Pairs with ADMIN_EMAIL. random
Other
DEMO_MODE Enable demo mode (hourly data resets) false
UNSPLASH_ACCESS_KEY Optional Unsplash Access Key for trip-cover and place-image search. Without one, TREK uses Unsplash's unauthenticated endpoint, which some datacenter/VPS IPs are blocked from. Get a free key at unsplash.com/developers. Overrides any per-admin key set in Admin > Settings (where it can also be configured instead).
MCP_RATE_LIMIT Max MCP API requests per user per minute 300
MCP_MAX_SESSION_PER_USER Max concurrent MCP sessions per user. At the cap, the least-recently-active session is closed to make room 20

Data & Backups

  • Database — SQLite, stored in ./data/travel.db
  • Uploads — stored in ./uploads/
  • Logs./data/logs/trek.log (auto-rotated)
  • Backups — create and restore via Admin Panel
  • Auto-Backups — configurable schedule and retention in Admin Panel

Data sources

The Atlas map's country and sub-national (province/county) boundaries come from geoBoundaries (Runfola et al., 2020), licensed CC BY 4.0. See NOTICE.md for full third-party attributions.

License

TREK is AGPL v3. Self-host freely for personal or internal company use. If you modify and offer TREK as a network service to third parties, your modifications must be open-sourced under the same licence.

View on GitHub

Recent activity

commits and pull requests

Recent open issues

view all

Discussions

all 483

Releases and announcements

84 total
  1. v3.4.1v3.4.1Jul 19, 2026

    # v3.4.1 - bug fixes # Fixes: * fix(transit): lead arrive-by results with the latest arrival (https://github.com/liketrek/TREK/issues/1479) * fix(transit): lead arrive-by results with the latest arrival (https://github.com/liketrek/TREK/issues/1479) * fix(reservations): run AirTrail modal hooks before the isOpen early return (https://github.com/liketrek/TREK/issues/1602) * fix(planner): only draw the check-in-day hotel morning leg when provably at/after check-in (https://github.com/liketrek/TREK/issues/1597) (https://github.com/liketrek/TREK/pull/1607) * fix(notifications): never fall back to the admin ntfy topic for per-user sends (https://github.com/liketrek/TREK/issues/1608) * chore: correct shields.io url * chore: update helm repo link * fix(atlas): make Kosovo selectable on the Atlas map (https://github.com/liketrek/TREK/issues/1609) * chore: normalize docker image references to mauriceboe/trek (lowercase) * fix(memories): honor Synology skip-SSL on photo streaming (https://github.com/liketrek/TREK/issues/1611) * chore: make chart.liketrek.com the canonical helm chart url * feat(plugins): prefer the registry's resolved store screenshot (https://github.com/liketr

  2. v3.4.0v3.4.0Jul 18, 2026

    <img width="5292" height="1404" alt="Release 3 4 0 (1)" src="https://github.com/user-attachments/assets/7fbda0e6-c6dd-4344-a501-25c509391c43" /> > **The plugin platform matures, and Costs goes properly multi-currency.** A plugin can now deliver its own notifications (Gotify, Pushover, Telegram…), declare the exact TREK versions it runs on, carry a signature TREK verifies and badges, ship an icon and its own settings page — and `trek-plugin` becomes a guided path from scaffold to published. **Costs** gets an editable trip currency that re-anchors the whole budget, per-currency settle-up payments, and totals, place prices and the PDF that stop pretending everything is EUR. Plus **AirTrail** multi-leg imports, coordinate-first **Atlas**, an offline **Help** centre that ships with the build, **Catalan** as language 23, and a broad reliability, mobile and security pass. > > No breaking changes — every new capability is opt-in, and all migrations run automatically on startup. ## The team is growing — and TREK has a new home Two things beyond the changelog: - **A new maintainer.** [@subdee](https://github.com/subdee) (Konstantinos) joins [@jubnl](https://github.com/jubnl)

  3. TREK just crossed **10,000 stars** on GitHub, and it's honestly still surreal to write that. Thank you — to everyone who starred the repo, opened an issue, shipped a plugin, translated a string or sent a PR: this is yours as much as mine. TREK isn't just growing, it's accelerating, and the goal has never changed: not just the best *open-source* trip planner, but **the best trip planner, full stop.** We're closing that gap, fast. Onwards ❤️ --- ## 📣 We're looking for another maintainer TREK is growing faster than @jubnl and I can carry on our own. At this pace the workload just isn't sustainable for two people anymore. So we're looking for **one more maintainer** to help steer the project. You'd be a great fit if you: - **Know TREK's architecture** well — or can get deep into it fast. - Have **built your own projects** before — ideally software of this kind, maybe even professionally. - Can **write and understand code independently.** AI assistants (Claude Code and the like) are absolutely welcome — but you genuinely need to understand the code you ship, not just paste it. Interested? Email **report@liketrek.com** or reach **Maurice on our Discord**. We'd love to

  4. v3.2.1v3.2.1Jul 5, 2026

    Plugins go from read-mostly observers to a real extension platform: they can now write to the itinerary, contribute native data, react to core events, add whole planner tabs, and match TREK's look — all behind the same sandboxed, permission-gated boundary. Plus budget, collections, files, guest and mobile fixes. **No breaking changes** — every new capability is opt-in and admin-consented; existing plugins keep working. ## Plugins: 3.2.0 vs 3.2.1 Please consult the [wiki](https://github.com/mauriceboe/TREK/wiki/Plugins) for more information. | Capability | 3.2.0 | 3.2.1 | |---|---|---| | Usable permissions | ~8 | ~18 | | Write / mutate methods | 1 (`costs.create`) | ~16 — costs C/U/D, places C/U/D, days C/U/D, itinerary assign/unassign, `trips.update`, metadata C/U/D | | Provider hooks | 0 (declared but dead) | 2 live — `placeDetailProvider`, `warningProvider` (+ `invoke.hook` transport) | | Event subscriptions | — | `events:subscribe` (name + trip only) | | Read subsystems | trips, costs, users | + packing, files | | Entity metadata | — | `db:meta` (no schema fork) | | UI extension points | slots `sidebar`/`hero`, pages | + `trip-page` type, + `place-detail` slot |

  5. v3.2.0v3.2.0Jul 4, 2026

    <img width="5292" height="1404" alt="Release 2 9 0 (5) (1)" src="https://github.com/user-attachments/assets/94de8946-cc3b-40dd-8d89-3c2cd2f11b7c" /> # TREK 3.2.0 > **TREK becomes a platform.** A sandboxed **Plugin System** with a community registry, one-click installs and a full author SDK. **Collections** — a personal place library that lives outside your trips. **Public transit routing** right in the planner, no API key needed. **AI booking import** for the confirmations structured parsing can't read. On top: per-user **Appearance & theming**, a **robust offline mode** with real conflict resolution, **video** in journeys and files, **subscribable calendar feeds**, an in-app help centre — and Vietnamese as language number 22. > > No breaking changes — all 19 database migrations run automatically on startup, and Collections and AI Parsing stay off until you enable them. --- ## Plugin System TREK is now extensible. Anyone can build a plugin — a dashboard widget, a full page, or a headless integration — and self-hosters can browse a community registry and install it with one click, without ever touching TREK's source. Plugins run with real OS-level isolation behind

Commits per week

last 52 weeks
3380Week of 2025-08-03: 0 commitsWeek of 2025-08-10: 0 commitsWeek of 2025-08-17: 0 commitsWeek of 2025-08-24: 0 commitsWeek of 2025-08-31: 0 commitsWeek of 2025-09-07: 0 commitsWeek of 2025-09-14: 0 commitsWeek of 2025-09-21: 0 commitsWeek of 2025-09-28: 0 commitsWeek of 2025-10-05: 0 commitsWeek of 2025-10-12: 0 commitsWeek of 2025-10-19: 0 commitsWeek of 2025-10-26: 0 commitsWeek of 2025-11-02: 0 commitsWeek of 2025-11-09: 0 commitsWeek of 2025-11-16: 0 commitsWeek of 2025-11-23: 0 commitsWeek of 2025-11-30: 0 commitsWeek of 2025-12-07: 0 commitsWeek of 2025-12-14: 0 commitsWeek of 2025-12-21: 0 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 0 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 0 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 0 commitsWeek of 2026-02-15: 0 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 0 commitsWeek of 2026-03-15: 61 commitsWeek of 2026-03-22: 74 commitsWeek of 2026-03-29: 338 commitsWeek of 2026-04-05: 190 commitsWeek of 2026-04-12: 183 commitsWeek of 2026-04-19: 113 commitsWeek of 2026-04-26: 20 commitsWeek of 2026-05-03: 12 commitsWeek of 2026-05-10: 9 commitsWeek of 2026-05-17: 0 commitsWeek of 2026-05-24: 5 commitsWeek of 2026-05-31: 0 commitsWeek of 2026-06-07: 0 commitsWeek of 2026-06-14: 20 commitsWeek of 2026-06-21: 49 commitsWeek of 2026-06-28: 4 commitsWeek of 2026-07-05: 8 commitsWeek of 2026-07-12: 7 commitsWeek of 2026-07-19: 5 commitsWeek of 2026-07-26: 0 commitsAug 3, 2025Jul 26, 2026
1.1K commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 7 commitsSun 1:00 — 12 commitsSun 2:00 — 8 commitsSun 3:00 — 8 commitsSun 4:00 — 3 commitsSun 5:00 — 3 commitsSun 6:00 — 1 commitsSun 7:00 — 1 commitsSun 8:00 — 0 commitsSun 9:00 — 1 commitsSun 10:00 — 1 commitsSun 11:00 — 5 commitsSun 12:00 — 7 commitsSun 13:00 — 9 commitsSun 14:00 — 8 commitsSun 15:00 — 13 commitsSun 16:00 — 16 commitsSun 17:00 — 18 commitsSun 18:00 — 8 commitsSun 19:00 — 11 commitsSun 20:00 — 8 commitsSun 21:00 — 8 commitsSun 22:00 — 13 commitsSun 23:00 — 20 commitsMon 0:00 — 16 commitsMon 1:00 — 2 commitsMon 2:00 — 2 commitsMon 3:00 — 1 commitsMon 4:00 — 0 commitsMon 5:00 — 2 commitsMon 6:00 — 1 commitsMon 7:00 — 3 commitsMon 8:00 — 1 commitsMon 9:00 — 4 commitsMon 10:00 — 8 commitsMon 11:00 — 6 commitsMon 12:00 — 4 commitsMon 13:00 — 4 commitsMon 14:00 — 6 commitsMon 15:00 — 8 commitsMon 16:00 — 5 commitsMon 17:00 — 11 commitsMon 18:00 — 9 commitsMon 19:00 — 7 commitsMon 20:00 — 20 commitsMon 21:00 — 17 commitsMon 22:00 — 10 commitsMon 23:00 — 16 commitsTue 0:00 — 4 commitsTue 1:00 — 1 commitsTue 2:00 — 0 commitsTue 3:00 — 1 commitsTue 4:00 — 0 commitsTue 5:00 — 5 commitsTue 6:00 — 2 commitsTue 7:00 — 0 commitsTue 8:00 — 0 commitsTue 9:00 — 1 commitsTue 10:00 — 2 commitsTue 11:00 — 4 commitsTue 12:00 — 4 commitsTue 13:00 — 8 commitsTue 14:00 — 2 commitsTue 15:00 — 7 commitsTue 16:00 — 8 commitsTue 17:00 — 6 commitsTue 18:00 — 3 commitsTue 19:00 — 5 commitsTue 20:00 — 18 commitsTue 21:00 — 24 commitsTue 22:00 — 29 commitsTue 23:00 — 22 commitsWed 0:00 — 7 commitsWed 1:00 — 1 commitsWed 2:00 — 2 commitsWed 3:00 — 3 commitsWed 4:00 — 9 commitsWed 5:00 — 5 commitsWed 6:00 — 5 commitsWed 7:00 — 4 commitsWed 8:00 — 6 commitsWed 9:00 — 5 commitsWed 10:00 — 7 commitsWed 11:00 — 1 commitsWed 12:00 — 5 commitsWed 13:00 — 5 commitsWed 14:00 — 3 commitsWed 15:00 — 6 commitsWed 16:00 — 8 commitsWed 17:00 — 8 commitsWed 18:00 — 10 commitsWed 19:00 — 9 commitsWed 20:00 — 4 commitsWed 21:00 — 8 commitsWed 22:00 — 6 commitsWed 23:00 — 8 commitsThu 0:00 — 14 commitsThu 1:00 — 1 commitsThu 2:00 — 0 commitsThu 3:00 — 0 commitsThu 4:00 — 0 commitsThu 5:00 — 0 commitsThu 6:00 — 0 commitsThu 7:00 — 2 commitsThu 8:00 — 3 commitsThu 9:00 — 3 commitsThu 10:00 — 1 commitsThu 11:00 — 4 commitsThu 12:00 — 4 commitsThu 13:00 — 9 commitsThu 14:00 — 16 commitsThu 15:00 — 14 commitsThu 16:00 — 9 commitsThu 17:00 — 14 commitsThu 18:00 — 10 commitsThu 19:00 — 6 commitsThu 20:00 — 7 commitsThu 21:00 — 3 commitsThu 22:00 — 6 commitsThu 23:00 — 10 commitsFri 0:00 — 2 commitsFri 1:00 — 2 commitsFri 2:00 — 9 commitsFri 3:00 — 14 commitsFri 4:00 — 0 commitsFri 5:00 — 6 commitsFri 6:00 — 5 commitsFri 7:00 — 2 commitsFri 8:00 — 0 commitsFri 9:00 — 0 commitsFri 10:00 — 1 commitsFri 11:00 — 4 commitsFri 12:00 — 3 commitsFri 13:00 — 5 commitsFri 14:00 — 9 commitsFri 15:00 — 8 commitsFri 16:00 — 10 commitsFri 17:00 — 17 commitsFri 18:00 — 4 commitsFri 19:00 — 10 commitsFri 20:00 — 6 commitsFri 21:00 — 6 commitsFri 22:00 — 8 commitsFri 23:00 — 15 commitsSat 0:00 — 10 commitsSat 1:00 — 8 commitsSat 2:00 — 5 commitsSat 3:00 — 0 commitsSat 4:00 — 0 commitsSat 5:00 — 0 commitsSat 6:00 — 1 commitsSat 7:00 — 0 commitsSat 8:00 — 0 commitsSat 9:00 — 0 commitsSat 10:00 — 4 commitsSat 11:00 — 10 commitsSat 12:00 — 11 commitsSat 13:00 — 5 commitsSat 14:00 — 7 commitsSat 15:00 — 9 commitsSat 16:00 — 11 commitsSat 17:00 — 7 commitsSat 18:00 — 13 commitsSat 19:00 — 20 commitsSat 20:00 — 15 commitsSat 21:00 — 3 commitsSat 22:00 — 26 commitsSat 23:00 — 15 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.
  • public-apis/public-apis

    A collective list of free APIs

    454.9K stars · Python

  • freeCodeCamp/freeCodeCamp

    freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

    453.6K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    385.5K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript