- TypeScript 90.8%
- HTML 2.9%
- Shell 2.3%
- JavaScript 1.4%
- Python 1%
- Other 1.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
CI / Dockerfile Package Check (push) Successful in 6s
CI / Security Scan (push) Successful in 8s
CI / Visual Tests (push) Successful in 6s
CI / Journal Image Smoke Test (push) Successful in 7s
CI / Checks (push) Successful in 21s
CI / E2E Tests (push) Successful in 7s
Reviewed-on: #362 |
||
| .agents/skills | ||
| .claude | ||
| .design-sync | ||
| .forgejo | ||
| .github | ||
| apps | ||
| docker | ||
| docs | ||
| e2e | ||
| infrastructure | ||
| openspec | ||
| packages | ||
| scripts | ||
| .dockerignore | ||
| .env.development.example | ||
| .gitignore | ||
| .gitleaks.toml | ||
| .mcp.json | ||
| .prettierrc | ||
| .sops.yaml | ||
| CLAUDE.md | ||
| CONTEXT.md | ||
| CONTRIBUTING.md | ||
| docker-compose.dev.yml | ||
| eslint.config.js | ||
| FEDERATION.md | ||
| LICENSE | ||
| package.json | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| renovate.json5 | ||
| SECURITY.md | ||
| tsconfig.base.json | ||
| turbo.json | ||
| vitest.config.ts | ||
| vitest.setup.ts | ||
| vitest.shared.ts | ||
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:
- PostgreSQL + PostGIS on port 5432 (via Docker)
- BRouter routing engine on port 17777 (via Docker)
- Database schema pushed automatically via Drizzle
- BRouter segment downloaded for Berlin area (~124MB, cached)
- Journal on http://localhost:3000
- 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)
Location search (optional). The Planner's search box and automatic waypoint names need a Photon geocoder. Start a small one (Andorra data, ~2 MB) and point the Planner at it:
docker compose -f docker-compose.dev.yml --profile geocoder up -d photon
GEOCODER_URL=http://localhost:2322 pnpm --filter @trails-cool/planner dev
Set PHOTON_DEV_DB_URL to another country's photon-db-*-1.0-latest.tar.bz2
from https://download1.graphhopper.com/public/ before the first start to use
other data. Without GEOCODER_URL the search box is hidden.
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