Skip to content

About

Mobile-first Black Forest trip companion with restaurants, hikes, activities, events, itinerary planning, maps, weather and offline access.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Black Forest Weekend

Mobile-first trip companion for a weekend in Fischerbach and the central Black Forest, covering Friday, August 21 through Sunday, August 23, 2026. The public trip origin is an approximate Fischerbach town-center point; driving times are planning ranges rather than turn-by-turn estimates.

The precise lodging address is intentionally not stored in this public repository.

The guide is designed to answer what a place is, why it is worth considering, how far away it is, how much time it needs, and what should be checked before leaving. Its six primary destinations are Today, Eat, Activities, Map, Plan, and Saved. The app includes a Wiesbaden–Heidelberg Castle–Fischerbach arrival route, dedicated meal and cuisine discovery, a drive-aware activity shortlist, a Leaflet/OpenStreetMap map, five editable itineraries with stop swapping, saved places and notes, dynamic weather, safety notices, installable PWA behavior, and an offline-capable app shell.

The bundled directory contains 63 described entries: 23 restaurants, 9 cafés, 9 hikes, 16 activities/attractions, 5 weekend events, and 1 practical home-base entry.

Privacy

This is a static GitHub Pages application with no application backend, account system, analytics, advertising, or behavioral tracking. The committed data uses only Fischerbach Home Base, an approximate town-center coordinate.

A traveler can optionally enter a more precise starting label and coordinates in Settings or ask the browser for its current location. That value:

  • is stored only in that browser profile under the app's localStorage state;
  • is never committed, synchronized, or sent to an application server;
  • can be removed with the Settings Clear control or by clearing site data; and
  • should not be entered on a shared device because browser storage is not encrypted private storage.

Favorites, notes, itinerary edits, completed stops, reservation reminders, the preferred itinerary, and the last successful weather response are also device-local. Normal third-party requests still occur when online: Open-Meteo supplies weather, OpenStreetMap supplies map tiles, Google Fonts supplies typefaces, and external directions/operator links open only when selected. None is used by this project for analytics.

Local development

Node.js 22 and npm are recommended because the Pages workflow uses Node 22. Install exactly the versions in package-lock.json:

npm ci
npm run dev

Vite prints the local URL. The production app is configured with the /black-forest/ base path, so use links generated by Vite rather than assuming it is hosted at /.

To build and inspect the production output:

npm run build
npm run preview

The generated site is written to dist/.

Validation and tests

Run the quality checks individually:

npm run lint
npm run typecheck
npm test
npm run build

The Vitest suite covers data descriptions and references, permitted badges, filters, Europe/Berlin opening-hour behavior, weather-code normalization, storage migration/recovery, core components, and the repository privacy guard.

Playwright needs its browser binaries once per development environment:

npx playwright install
npm run test:e2e

The Playwright configuration builds on the production preview at /black-forest/ and runs the core smoke suite in iPhone 13 and desktop Chrome projects. It checks all six primary navigation destinations, Eat meal/cuisine filtering, Activities discovery, map/list interaction, persisted favorites and itinerary edits, Plan stop swapping, base-path deep links, the safety notice, and the cached shell in simulated offline mode.

For a full local release check, run:

npm ci
npm run lint
npm run typecheck
npm test
npm run build
npm run test:e2e

Fix failed checks or stale data instead of weakening the assertions. In particular, tests/privacy.test.ts scans tracked and untracked project files and must continue to prove that the private lodging location is absent.

Project and data structure

The application is a strict TypeScript React/Vite project. Its principal content lives here:

src/
├── components/          Shared cards, badges, safety, settings and weather UI
├── data/
│   ├── places.ts        Food, cafés, activities, attractions and practical entries
│   ├── moreDining.ts    Additional researched restaurants and breakfast/café choices
│   ├── hikes.ts         Routes with distance, ascent, surface, parking and gear
│   ├── events.ts        Dated events and bookable mine-tour instances
│   ├── itineraries.ts   Editable Friday–Sunday plan variants
│   ├── safety.ts        Urgent and advisory notices
│   ├── sources.ts       Research-source register
│   └── index.ts         Combined entry exports and ID lookup
├── hooks/               Local trip state, online state, weather and PWA updates
├── pages/               Today, Eat, Activities, Map, Plan, Saved and place detail routes
├── services/            Dining/activity filters, opening hours, storage and weather logic
└── types/trip.ts        Place, dining, hike, itinerary, safety and confidence types

RESEARCH.md is the human-readable verification log. Source data is bundled into the JavaScript build, so descriptions, itineraries, safety information, and practical details remain available without a network connection.

Every visible entry should retain a stable unique id, meaningful multi-sentence description, concise whyGo, town, coordinates, approximate driving range, duration, trip availability, directions URL, tags, source URL, verification date, and source confidence. Add the relevant optional details—opening hours, price, booking link, accessibility, family/dog guidance, weather dependency, and watch-outs—rather than leaving travelers to interpret a name or marker. Dining records should use typed mealPeriods and cuisines metadata whenever it has been verified; the dining service has conservative inference only to keep older records usable.

src/services/dining.ts owns dining-only search, meal/cuisine facets, practical filters, sorting, and grouping. src/services/activities.ts owns activity-category selection, drive and commitment filters, shortlist filtering, and numeric sorting. Both consume the same typed Place records from src/data/, so cards, the map, details, Saved, and Plan all reference one source of truth. src/data/index.ts exposes the combined directory and ID lookup used by Plan’s replacement picker.

Primary directory routes

  • /black-forest/eat contains restaurants and cafés. Travelers can choose Breakfast, Lunch, or Dinner; narrow by cuisine; combine practical filters such as day, drive time, booking, cake, or ham; and sort by recommendation, drive, cuisine, or name.
  • /black-forest/activities contains hikes, outdoor activities, cultural attractions, and fixed weekend events. It supports search, type and drive bands, difficulty, duration, weather, and booking filters plus drive/duration and hike-specific distance/elevation sorting.
  • The heart control on an Activities card writes to the normal persisted favorites state. Show my shortlist is therefore a durable view of saved activities, not temporary page state.
  • Plan’s Swap stop control can replace a selected itinerary slot with any available food stop, hike, activity, attraction, or event. The replacement inherits the destination’s duration, drive, booking, and weather details and remains local to that browser.
  • /black-forest/explore remains a supported non-primary directory route for broad browsing and older deep links.

Updating hours, menus, events, and closures

Time-sensitive facts should be rechecked against the operator, municipality, or official tourism source before changing the app:

  1. Open the existing sourceUrl and, when relevant, the booking page or date-specific notice.
  2. Prefer the official current source over search snippets, maps listings, review sites, or older supplied research.
  3. Update verifiedAt in ISO date form (YYYY-MM-DD) and choose the honest sourceConfidence value below.
  4. Record conflicts or limitations in tripAvailability or watchOuts; do not silently choose the more convenient answer.
  5. Represent known weekly hours as lowercase day keys containing 24-hour intervals such as ['11:30-14:00', '17:30-22:00']. Use an empty array only for a confirmed closed day. Omit uncertain hours so the UI says Check current hours instead of inventing an Open now result.
  6. For a dated event, use an ISO timestamp with the local offset (for example, 2026-08-22T09:00:00+02:00) and preserve the plain-English date and booking caveats.
  7. Recheck any itinerary that references the entry, then run the full validation suite.

Never infer that a menu item is certified Black Forest ham, or that a cake has historic significance, from a generic description. The specialty badge enum and legend deliberately distinguish documented history, currently confirmed cake/ham, editorial picks, booking needs, weather dependence, and trip-weekend closures.

Adding a place, hike, or event

  1. Add a Place record to the appropriate file in src/data/ using a durable kebab-case ID.
  2. Verify the coordinates and add a Google Maps destination URL; never encode a private origin.
  3. Write a useful description of at least 100 characters plus a clear whyGo statement.
  4. Include trip-specific distance, duration, availability, practical limitations, source, confidence, and verification date.
  5. For a restaurant or café, add one or more typed mealPeriods (breakfast, lunch, dinner) and the verified cuisines facets. Describe what the menu actually supports; do not infer a national cuisine or specialty from a business name alone.
  6. For hikes, complete the nested hike object: distance, time, ascent/descent, difficulty, route type, trailhead, parking, surfaces, highlights, gear, stroller suitability, and wet-weather suitability. Do not publish exact navigation from an unverified route.
  7. For itinerary use, reference the entry by placeId; validation will fail for an unknown ID. New eligible entries automatically become available to Plan’s grouped stop-swap picker.
  8. Add or update the source record and RESEARCH.md, then run lint, type checking, unit/component tests, the production build, and relevant Playwright tests.

Do not add crowd-sourced ratings, fabricated precision, or unsupported marketing claims. Drive times remain approximate because traffic, road works, weather, and the user's private start can change them.

Images and attribution

The initial visual system uses original CSS/SVG artwork, original icons, and emoji rather than copied tourism photography. A photograph may be added only when its license or official reuse terms permit redistribution in this public repository. Do not copy arbitrary web images or hotlink an image unless the publisher explicitly supports that use.

Every photographed entry must define all of these fields:

imageUrl;
imageAlt;
imageCredit;
imageLicense;
imageSourceUrl;

Use descriptive alternative text rather than a filename, preserve the creator's required credit wording, name the exact license/version, link the source page, and keep evidence of permission in the research notes. Optimize a local copy for the web without stripping legally required attribution. The app must remain understandable and polished when an image is unavailable.

Weather

src/services/weather.ts calls the no-key Open-Meteo forecast API for the approximate Fischerbach coordinate. It requests current temperature, weather code and wind plus seven days of high/low temperature, precipitation probability, weather code, sunrise, sunset, and maximum wind using Europe/Berlin.

The most recent successful normalized response is stored in localStorage as black-forest-weather-v1 with fetch and source timestamps. When a refresh fails or the device is offline, the weather card can show that cached response and its age rather than pretending it is current. A forecast drives suggestions, not safety decisions: dry weather does not prove a trail, tower, bridge, or coaster is safe or open.

PWA and offline behavior

The manifest, icons, and Vite PWA configuration are scoped consistently to /black-forest/. The generated service worker caches the app shell and bundled trip data and prompts when a new version is ready. Open-Meteo responses are normalized and retained in browser localStorage; only a small, expiring set of previously viewed OpenStreetMap tiles uses a service-worker runtime cache. The app never bulk-downloads map tiles.

Offline users can still browse bundled places, warnings, and plans and can read/update local favorites, notes, and itineraries. The last successful weather snapshot remains available with its timestamp. New map areas, uncached tiles, live status pages, bookings, directions, and external sites still need a connection. The map's accompanying result list remains the dependable non-map fallback.

The public/404.html redirect and the route-restoration script in index.html preserve BrowserRouter deep links on GitHub Pages. Keep the Vite base, router basename, manifest start_url/scope, service-worker fallback, and 404 redirect aligned if the repository name changes.

Source confidence

Confidence describes the evidence supporting a record at verifiedAt; it is not a promise that a volatile business or trail remains unchanged.

  • official-current — an official operator, government, municipal, or tourism source directly supported the fact when checked.
  • official-needs-day-of-check — an official source was found, but hours, availability, access, weather operation, or another volatile detail must be confirmed on the visit day.
  • trusted-secondary — a credible non-official source is used because an adequate current primary source was not available.
  • traveler-supplied — retained from supplied trip research and clearly separated from independently confirmed facts.
  • unverified — useful context that could not yet be substantiated and must not be presented as certain.

When sources disagree, retain the disagreement and downgrade confidence. Entries with ambiguous hours must not appear as Open now.

Browser storage and migrations

Trip preferences are saved under black-forest-trip-state-v2. The versioned state includes favorites (also used by the Activities shortlist), place notes, preferred itinerary, swapped or otherwise edited stop lists, completed stops, reservation reminders, and the optional private starting point. src/services/storage.ts validates recoverable fields, migrates older key names, and falls back to safe defaults when storage is absent or malformed.

There is no cloud backup. Clearing site data, switching browsers/profiles, or using private-browsing storage can remove the state. Resetting a supplied itinerary affects the local copy only; it does not modify source data.

August 21–23, 2026: time-sensitive notes

The content was researched for one specific weekend and uses verifiedAt dates so later maintainers can identify stale facts. Recheck every official link and live status on August 21 before relying on it. Important corrections and known constraints include:

  • Friday arrival via Heidelberg Castle: this is a genuinely famous landmark and the most plausible match for a castle stop between Wiesbaden and Fischerbach. Leave Wiesbaden around 09:00 to target P12 Kornmarkt/Schloss near 10:30, use the lower funicular, and allow roughly 6–7 hours for the whole journey including a 2½–3 hour stop. The castle cash desk closes at 17:15 and last admission is 17:30. Recheck live traffic, funicular operation, P12 availability, and current notices before leaving Wiesbaden.

Expanded dining additions

The Eat directory adds nine restaurants and two cafés. Their sources were reviewed on August 20, but the evidence is not equally strong for every business:

  • WERK II, Mosers Blume, Blume Hausach, and Museumsrestaurant Hofengel use current operator pages.
  • Hansjakob Breakfast & Tagesbar uses the current Stadthotel Haslach breakfast/bar page.
  • Gasthaus Storchen Hellas has conflicting official hours and needs a day-of check.
  • Pizzeria Piccolo Nido has operator hours dated 2023; a current municipal listing supports the business, but not unchecked hours.
  • Sumo Sushi Haus uses a current Gewerbeverein Wolfach listing because the operator TLS site was unavailable; check hours directly.
  • Landhaus Hechtsberg has an official hours page, but current meal periods still need a day-of check.
  • Kirnbacher Hof Restaurant has an official restaurant page, but August lunch is ambiguous; it is treated conservatively as dinner-only pending confirmation.
  • Wolftalcafé im Städtle uses Wolfach’s current official tourism directory because no operator site was found; check hours on the day.

See RESEARCH.md for direct sources and the complete evidence notes.

  • Former Café Schäfer, Triberg: this is no longer an operating café. It remains an information-only card because the official Triberg account documents its notable Black Forest cake history. Do not navigate there expecting service.
  • Current Triberg cake option: Landgasthof Zur Lilie, beside the waterfall entrance, currently confirms house-made Schwarzwälder Kirschtorte. It is the practical substitute, but it does not inherit Café Schäfer's historical badge; confirm cake availability and that day's closing time.
  • Gasthaus Käppelehof: the operator's summer pause covers August 19–23, so the card is disabled and excluded from Open now and itineraries for this trip.
  • Schäck's Adler: an illness closure was announced through August 20. Telephone confirmation that it reopened is required before the drive, even with a reservation.
  • Waldsee-Terrasse: published trip-weekend service is Friday–Sunday 11:00–18:00 with the kitchen to 17:00; the announced annual summer closure begins Monday, August 24. Confirm before setting out.
  • Waidele Café Pöllath: the official branch page resolves the supplied Saturday-hours conflict as 06:15–13:00 and lists Sunday 07:00–18:00. Check on the day, especially before a late cake stop.
  • Other food checks: In Vino Veritas is closed Sunday; SimSnack Deli Café is closed Sunday; Juno's published sources conflict; Schwarzwälder Eismanufaktur's official local listings disagree, so it is excluded from Open now; several restaurant kitchen periods and bookings still need direct confirmation.
  • Segen Gottes tours: the preloaded Saturday/Sunday 11:30 and 13:30 tours have limited capacity and should be booked as timed activities. Do not assume school-holiday extra slots without seeing them in the current booking system.
  • Fischerbach Bike Event: the August 22 event and detailed schedule are supported by the current organizer flyer, but participant registration, remaining capacity, course/weather changes, and the flyer's registration-deadline typo require the live organizer page.
  • Fischerbach Dorfhock: the August 23–24 event is officially listed, but exact Sunday times and the supplied details about lunch, cake, performances, and music still need confirmation in the current Bürgerblatt.
  • Im Hinterfischerbach loop: distance and route details remain traveler-supplied because no authoritative route/GPX was found. Verify the trailhead and navigation locally; do not rely on the app as emergency navigation.
  • Weather-operated attractions: use the Sommerrodelbahn's live traffic-light status; reconfirm Hirschgrund Zipline availability and strict age/weight rules; check NECKARLINE, towers, bridges, and trails for wind, thunderstorms, closures, and current surface conditions.
  • Grube Wenzel: the official site reports a signed 2026 access detour. Allow extra time and follow the live approach instructions.
  • Forest fire restrictions: the official Ortenaukreis notice closes public fire/barbecue places in and near forests through August 31 unless lifted earlier. Plan a cold picnic—no open fire, forest fire ring, brought-in grill, or forest smoking—and recheck the authority's notice before the trip.

Opening times, prices, menus, event programs, reservation inventory, roads, trails, and weather can change after verification. The app is a personal planning guide, not emergency navigation. Obey signs and closures, retain an official route when hiking, and call 112 for fire or medical emergencies.

GitHub Pages deployment

.github/workflows/deploy-pages.yml deploys pushes to main and also supports a manual run. The workflow:

  1. checks out the repository;
  2. installs the lockfile with npm ci on Node 22;
  3. runs lint, strict type checking, and Vitest unit/component tests;
  4. creates the production Vite build;
  5. configures GitHub Pages and uploads dist/; and
  6. deploys through the official Pages action with pages: write and id-token: write permissions.

For a new repository, set Settings → Pages → Build and deployment → Source to GitHub Actions, then push main or run Test, build and deploy GitHub Pages from the Actions tab. A successful deployment should publish at https://hspector1.github.io/black-forest/. Verify the root, refreshed deep links such as /black-forest/eat and /black-forest/activities, manifest/icons, and the generated service-worker scope after every deployment.

About

Mobile-first Black Forest trip companion with restaurants, hikes, activities, events, itinerary planning, maps, weather and offline access.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages