Logistics Intelligence is an open-source analytics workbench for turning operational logistics data into explainable diagnostics, forecasts, dashboards, and executive summaries. It is designed for local-first analysis of ecommerce, shipping/freight, and trucking/delivery workflows.
The product pairs a FastAPI backend with a static browser UI and an Ollama-backed analysis assistant. It can profile uploaded datasets, infer operational targets, generate dashboard bundles, run forecast and driver analysis, and answer follow-up questions against the current analysis context.
- Upload operational CSV data and infer useful business targets.
- Build schema and semantic matches for logistics metrics.
- Generate dashboard-ready summaries, charts, and narrative reports.
- Run local or Ollama-compatible LLM analysis without requiring a paid LLM provider by default.
- Package analysis artifacts for demos, pilots, and repeatable internal workflows.
frontend/ Static HTML/CSS/JS application
src/backend/ FastAPI runtime, API contracts, stores, reporting, LLM orchestration
src/core/ Pipeline, registry, cost policy, target selection, dataset utilities
src/features/ Feature engineering and domain-specific feature helpers
tools/ CLI entry points, audits, training, packaging, and verification scripts
config/ Industry router manifests, schemas, and semantic configuration
tests/ Backend and end-to-end regression tests
docs/ Setup notes and release checklists
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
PYTHONPATH=. python tools/check_cost_policy.py
PYTHONPATH=. python tools/run_backend.py --host 0.0.0.0 --port 8000In a second terminal:
python -m http.server 8080 --directory frontendOpen http://localhost:8080. The frontend targets http://localhost:8000 by default when served from port 8080.
cp .env.example .env
docker compose --profile app up -d --buildRuntime endpoints:
- Backend API:
http://localhost:8000 - Frontend UI:
http://localhost:8080
Optional infrastructure services are available with:
docker compose --profile infra up -dThe default runtime is Ollama-compatible:
LLM_RUNTIME_PROVIDER=ollamaOLLAMA_BASE_URL=http://localhost:11434for local Ollama, or a compatible hosted endpoint.OLLAMA_MODEL=gpt-oss:120bby default.OLLAMA_API_KEYis optional and should only be set in.envor deployment secrets.
Set BACKEND_SESSION_SECRET to a long random value before exposing the backend outside local development. Set BACKEND_CORS_ORIGINS to explicit frontend origins in production.
PYTHONPATH=. python -m pytest tests/backendIf pytest is unavailable:
PYTHONPATH=. python -m unittest tests.backend.test_runtime_api -vThis repository is intended to be public, but public release requires a sanitized Git history. Deleted credentials, private notes, or customer artifacts can remain recoverable from Git history after removal from the current tree. See docs/OPEN_SOURCE_CHECKLIST.md.
Logistics Intelligence is licensed under the GNU Affero General Public License v3.0 or later. See LICENSE and NOTICE.