How alogicsays/bluejury works
BLUEJURY is a web and Android marine decision-support product. Fishers explore or select a zone, submit trip inputs for assessment, and review an explainable recommendation and route; live alternatives use GPS and remaining fuel, while saved trips and accounts remain on-device. The backend’s sampled analysis service loads marine evidence, invokes juror assessments, and negotiates a result. README capabilities are included, but several frontend and API connections are inferred from product documentation rather than sampled implementation; uncertain wiring is omitted.
Main entry points: mvp.py Analysis and negotiation · layout.tsx Web application · routes.py HTTP API · live-trip.tsx Live trip
Components 25
Fisher experience
- Web application
apps/web/app/layout.tsx - Route planning
apps/web/components/plan-workspace.tsx - Zone assessment
apps/web/components/map-workspace.tsx - Live trip
apps/web/components/live-trip.tsx - Android wrapper
apps/web/android/app/src/main/java/com/bluejury/app/MainActivity.java
Decision engine
- HTTP API
services/api/src/bluejury/api/routes.py - Analysis and negotiation
services/api/src/bluejury/services/mvp.py - Catch juror
services/api/src/bluejury/jurors/catch.py - Safety juror
services/api/src/bluejury/jurors/safety.py - Fuel juror
services/api/src/bluejury/jurors/fuel.py - Ecology juror
services/api/src/bluejury/jurors/ecology.py - Border juror
services/api/src/bluejury/jurors/border.py - Case service
services/api/src/bluejury/services/cases.py - Case repository
services/api/src/bluejury/repositories/cases.py - Case database
services/api/src/bluejury/db.py
Marine evidence
- Marine data providers
- Marine regions adapter
services/api/src/bluejury/adapters/marine_regions.py - Protected-area adapters
services/api/src/bluejury/adapters/protected_planet.py - Local protected areas
services/api/src/bluejury/adapters/protected_planet_local.py - Biodiversity context
services/api/src/bluejury/adapters/wii_biodiversity_context.py
Local state
- Local accounts
apps/web/lib/local-auth.ts - Offline trips
apps/web/lib/offline-trip-store.ts - Device storage
Other components
- Fisher
- Device GPS
Connections 28
- Fisher → Web application: uses
- Web application → Route planning: offers planning
- Web application → Zone assessment: offers assessment
- Web application → Live trip: offers trip checks
- Android wrapper → Web application: hosts app
- Route planning → HTTP API: requests analysis
- Zone assessment → HTTP API: requests assessment
- Live trip → Device GPS: reads position
- Live trip → HTTP API: checks alternatives
- HTTP API → Analysis and negotiation: invokes analysis
- Analysis and negotiation → Catch juror: evaluates catch
- Analysis and negotiation → Safety juror: evaluates safety
- Analysis and negotiation → Fuel juror: evaluates fuel
- Analysis and negotiation → Ecology juror: evaluates ecology
- Analysis and negotiation → Border juror: evaluates borders
- Analysis and negotiation → Marine regions adapter: loads boundaries
- Marine regions adapter → Marine data providers: reads reference data
- Analysis and negotiation → Protected-area adapters: loads fallback data
- Analysis and negotiation → Local protected areas: loads local data
- Analysis and negotiation → Biodiversity context: loads context
- Protected-area adapters → Marine data providers: requests provider data
- HTTP API → Case service: handles case routes
- Case service → Case repository: persists cases
- Case repository → Case database: reads and writes
- Fisher → Local accounts: signs in locally
- Local accounts → Device storage: stores account and session
- Fisher → Offline trips: saves trips
- Offline trips → Device storage: stores trip data