How lagnadeep-samal/pocket_walk works
Pocket Walk is a local-first walk-planning web app: the user chooses a walk, receives species clues, puts the phone away during a timed walk, then records finds and gets a journal entry and grass ratio. Its core stages are field-guide retrieval, optional local-LLM text generation, walk-mode tracking, and post-walk reflection. The sampled Python source shows retrieval, Ollama calls, and HTTP routing; README statements support the browser workflow and local-only state. The browser implementation was not sampled, so its internal wiring is not detailed.
Main entry points: app.py HTTP API · index.html Pocket Walk UI · guide.json Field guide
Components 11
Planning and knowledge
- Field guide
guide.json - BM25 retrieval
app.py - Walk planner
app.py
Local service and AI
- HTTP API
app.py - Ollama model
Walk experience
- Pocket Walk UI
index.html - Walk mode timer
index.html - Browser walk state
index.html
After the walk
- Trail journal
app.py - Grass ratio
index.html
Other components
- Walker
Connections 14
- Walker → Pocket Walk UI: uses
README.md - Pocket Walk UI → HTTP API: requests plans
README.md - HTTP API → Walk planner: routes plan
app.py - Walk planner → BM25 retrieval: selects species
app.py - BM25 retrieval → Field guide: searches notes
app.py - Walk planner → Ollama model: requests clues
app.py - HTTP API → Ollama model: checks status
app.py - Pocket Walk UI → Walk mode timer: starts walk
README.md - Walk mode timer → Browser walk state: stores timing
README.md - Pocket Walk UI → HTTP API: submits finds
README.md - HTTP API → Trail journal: routes journal
app.py - Trail journal → Ollama model: requests entry
app.py - Browser walk state → Grass ratio: tracks screen and walk time
README.md - Walker → Pocket Walk UI: logs discoveries
README.md