Core Planner experience: - Full-screen Leaflet map with OSM/OpenTopoMap/CyclOSM layers - Click to add waypoints, drag to move, right-click to delete - Waypoint sidebar with reorder, delete, route stats - Real-time Yjs sync between participants - Live cursors showing other users' mouse positions on the map Routing: - Host election via Yjs awareness (lowest client ID) - Auto-failover when host disconnects - Debounced BRouter route computation (500ms) - Route polyline display from BRouter GeoJSON - Route stats (distance, elevation gain/loss) Client-side architecture: - useYjs hook: WebSocket connection, awareness, document management - useRouting hook: host election, route computation, stats parsing - PlannerMap component: Leaflet + Yjs integration - WaypointSidebar component: list with reorder/delete - Lazy-loaded components for code splitting Remaining: elevation chart, profile selector, GPX export (tasks 6.7-6.9) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
61 lines
1.9 KiB
JSON
61 lines
1.9 KiB
JSON
{
|
|
"name": "trails.cool",
|
|
"private": true,
|
|
"description": "Collaborative route planning + federated activity sharing for outdoor enthusiasts",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"packageManager": "pnpm@10.6.5",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"dev": "turbo dev",
|
|
"build": "turbo build",
|
|
"lint": "turbo lint",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"typecheck": "turbo typecheck",
|
|
"db:push": "drizzle-kit push --config packages/db/drizzle.config.ts --force",
|
|
"db:studio": "drizzle-kit studio --config packages/db/drizzle.config.ts",
|
|
"dev:services": "docker compose -f docker-compose.dev.yml up -d",
|
|
"dev:full": "./scripts/dev.sh"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@playwright/test": "^1.58.2",
|
|
"@react-router/dev": "^7.13.1",
|
|
"@react-router/node": "^7.13.1",
|
|
"@react-router/serve": "^7.13.1",
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/geojson": "^7946.0.16",
|
|
"@types/leaflet": "^1.9.21",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"drizzle-kit": "^0.31.10",
|
|
"drizzle-orm": "^0.45.1",
|
|
"drizzle-postgis": "^1.1.1",
|
|
"eslint": "^10.1.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"i18next": "^25.10.4",
|
|
"i18next-browser-languagedetector": "^8.2.1",
|
|
"jsdom": "^29.0.1",
|
|
"leaflet": "^1.9.4",
|
|
"playwright": "^1.58.2",
|
|
"postgres": "^3.4.8",
|
|
"prettier": "^3.8.1",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-i18next": "^16.6.1",
|
|
"react-leaflet": "^5.0.0",
|
|
"react-router": "^7.13.1",
|
|
"tailwindcss": "^4.2.2",
|
|
"turbo": "^2.8.20",
|
|
"typescript-eslint": "^8.57.1",
|
|
"vite": "catalog:",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|