Ride your bike. Collaborative, Social, Privacy friendly https://trails.cool
  • TypeScript 92.4%
  • HTML 3.1%
  • Shell 2.1%
  • HCL 0.8%
  • JavaScript 0.8%
  • Other 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Renovate 187bacbdb3
All checks were successful
CD Staging / Tear Down PR Preview (push) Has been skipped
CD Apps / Build & Push Docker Images (push) Successful in 31m53s
CD Apps / Build & Push Docker Images-1 (push) Successful in 32m37s
CD Staging / Build & Push Docker Images (push) Successful in 2m15s
CD Staging / Build & Push Docker Images-1 (push) Successful in 1m58s
CI / Security Scan (push) Successful in 46s
CD Staging / Deploy PR Preview (push) Has been skipped
CI / Dockerfile Package Check (push) Successful in 15s
CI / Visual Tests (push) Successful in 2m57s
CI / Journal Image Smoke Test (push) Successful in 6m44s
CD Apps / Deploy Apps (push) Successful in 2m36s
CD Staging / Deploy Staging (push) Successful in 24s
CI / Checks (push) Successful in 29m41s
CI / E2E Tests (push) Successful in 3m53s
chore(deps): Update production (non-major) to v19.3.0 (#156)
2026-09-14 03:37:54 +00:00
.agents/skills chore(deps): Update development 2026-09-11 09:05:05 +00:00
.claude chore(deps): Update development 2026-09-11 09:05:05 +00:00
.design-sync feat(ui): emit a standalone stylesheet and sync the DS to Claude Design 2026-09-13 10:48:29 +02:00
.forgejo/workflows fix(ci): pass the Sentry token as a secret-file, not a literal string 2026-09-11 14:09:37 +02:00
.github ci: replace Dependabot with self-hosted Renovate 2026-07-26 13:08:39 +02:00
apps chore(deps): Update dependency @types/react to ~19.3.0 (#155) 2026-09-14 01:20:36 +00:00
docker/brouter fix: restore three PRs that #66's merge silently reverted, and take openspec 1.10 2026-08-24 14:46:01 +02:00
docs fix: stop the flagship disk filling with re-downloadable POI dumps 2026-08-18 15:36:43 +02:00
e2e fix(e2e): mock must emit the highway classes the coloring spec asserts 2026-07-27 08:29:25 +02:00
infrastructure Move the Hetzner token into secrets.terraform.env 2026-09-07 10:32:12 +02:00
openspec docs(openspec): reconcile mobile specs with what shipped 2026-09-12 17:34:22 +02:00
packages feat(ui): emit a standalone stylesheet and sync the DS to Claude Design 2026-09-13 10:48:29 +02:00
scripts fix(dev): seed the mobile OAuth client so dev sign-in works 2026-09-12 02:23:45 +02:00
.dockerignore feat(journal): two-instance federation harness + trails↔trails Accept fix (§11) 2026-06-07 13:36:35 +02:00
.env.development.example Local dev stack improvements 2026-05-17 23:12:22 +02:00
.gitignore feat(ui): emit a standalone stylesheet and sync the DS to Claude Design 2026-09-13 10:48:29 +02:00
.gitleaks.toml Fix .gitleaks.toml config syntax 2026-03-25 11:59:26 +01:00
.mcp.json Add Sentry MCP server config, ignore worktrees 2026-03-25 07:43:58 +00:00
.prettierrc Complete monorepo toolchain setup (tasks 1.1-1.7) 2026-03-22 12:12:57 +01:00
.sops.yaml Encrypt tofu state natively, retiring the SOPS re-encrypt step 2026-09-06 11:39:32 +02:00
CLAUDE.md Encrypt tofu state natively, retiring the SOPS re-encrypt step 2026-09-06 11:39:32 +02:00
CONTEXT.md Atomic GPX save: validate + persist row + geometry in one transaction 2026-05-10 15:02:56 +02:00
CONTRIBUTING.md docs: describe how contribution actually works 2026-07-27 23:15:04 +02:00
docker-compose.dev.yml refactor(infra): mount config dirs not single files; reload on deploy 2026-06-09 13:10:35 +02:00
eslint.config.js fix(mobile): adopt the UIKit scene lifecycle so iOS 27 can launch 2026-09-12 10:54:07 +02:00
FEDERATION.md feat(journal): federation protocol doc + delivery observability 2026-07-13 23:11:43 +02:00
LICENSE Initial monorepo setup with architecture plan 2026-03-22 11:29:33 +01:00
package.json chore(deps): Update pnpm to v12.4.1 (#154) 2026-09-14 01:16:19 +00:00
playwright.config.ts ci(forgejo): regenerate visual baselines for the pinned Playwright image 2026-07-25 19:52:55 +02:00
pnpm-lock.yaml chore(deps): Update production (non-major) to v19.3.0 (#156) 2026-09-14 03:37:54 +00:00
pnpm-workspace.yaml chore(deps): Update production (non-major) to v19.3.0 (#156) 2026-09-14 03:37:54 +00:00
README.md docs: describe how contribution actually works 2026-07-27 23:15:04 +02:00
renovate.json5 renovate: split testing tooling into vitest and playwright groups 2026-09-07 11:39:46 +02:00
SECURITY.md docs: describe how contribution actually works 2026-07-27 23:15:04 +02:00
tsconfig.base.json Fix CI typecheck: disable noUncheckedSideEffectImports 2026-04-13 00:10:36 +02:00
turbo.json Standardize monorepo pipeline: test, lint, typecheck across all workspaces 2026-04-13 00:00:43 +02:00
vitest.config.ts test: centralize vitest testTimeout so packages can't inherit the 5s default 2026-08-18 16:59:56 +02:00
vitest.setup.ts Add testing strategy: Vitest for unit tests, Playwright for E2E 2026-03-22 12:36:09 +01:00
vitest.shared.ts Complete the vitest 5 upgrade and port maxForks to maxWorkers 2026-09-07 14:43:05 +02:00

trails.cool

Collaborative route planning and federated activity sharing for outdoor enthusiasts.

Planner — Plan routes together in real-time. Share a link, invite friends, edit waypoints collaboratively. Powered by BRouter for intelligent routing with elevation awareness.

Journal — Track your adventures. Import activities from Garmin, Strava, or Wahoo. Share routes and rides with friends. Self-host your own instance and federate with others via ActivityPub.

Status

Early development. See the architecture plan and project philosophy.

Project Structure

This is a TypeScript monorepo using pnpm workspaces and Turborepo.

apps/
  planner/        Collaborative route editor (React Router 7 + Yjs + Leaflet)
  journal/        Activity social platform  (React Router 7 + Fedify + PostGIS)

packages/
  types/          Shared TypeScript interfaces
  ui/             Shared React components (Tailwind)
  map/            Leaflet map wrappers
  gpx/            GPX parsing and generation
  i18n/           Internationalization (English + German)

Getting Started

Prerequisites: Node.js 20+, pnpm, Docker

# Clone
git clone https://git.ullrich.is/trails-cool/trails.git
cd trails

# Install dependencies
pnpm install

# Start development (apps only, no database or routing)
pnpm dev

# Start full stack (PostgreSQL + BRouter + apps)
pnpm dev:full

Full Local Dev Setup

pnpm dev:full starts everything needed to test the Planner end-to-end:

  1. PostgreSQL + PostGIS on port 5432 (via Docker)
  2. BRouter routing engine on port 17777 (via Docker)
  3. Database schema pushed automatically via Drizzle
  4. BRouter segment downloaded for Berlin area (~124MB, cached)
  5. Journal on http://localhost:3000
  6. Planner on http://localhost:3001

Other useful commands:

pnpm dev:services     # Start Docker services only (DB + BRouter)
pnpm db:push          # Push database schema changes
pnpm db:studio        # Open Drizzle Studio (DB browser)

Development Tools

This project uses AI-assisted, spec-driven development. See docs/tooling.md for details.

Tool Purpose
cmux Native macOS terminal for running multiple AI coding sessions
Claude Code AI coding assistant (primary development tool)
GitHub Copilot AI coding assistant
Crit Browser-based inline code review
OpenSpec Spec-driven development workflow

Self-Hosting

The Journal is designed to be self-hosted. A single Docker Compose file gets you running:

curl -O https://git.ullrich.is/trails-cool/trails/raw/branch/main/infrastructure/docker-compose.yml
docker compose up -d

See docs/architecture.md for details on self-hosting configuration.

Federation

The Journal federates over ActivityPub. The wire protocol — actor discovery, object/activity types with JSON examples, addressing, signatures, deduplication, delivery retry, and moderation — is documented in FEDERATION.md, which is precise enough for another implementation to interoperate against.

Philosophy

  • Privacy by design — The Planner collects zero user data
  • Data ownership — Export everything, self-host, no lock-in
  • Open source — MIT licensed, built on open standards
  • Simplicity — Start simple, add complexity only when needed

Read more: docs/philosophy.md

Contributing

Human contributions are welcome. This project is built with AI-assisted development (Claude Code + OpenSpec), but we value human judgment, design taste, and community input.

One thing to know up front: the project is developed on a self-hosted Forgejo instance with registration disabled, so you can't fork and open a pull request unprompted. The repository is publicly readable and cloneable, and there are two straightforward ways in — request an account, or email a patch.

See CONTRIBUTING.md for both, plus what CI expects and which changes are non-goals.

License

MIT