This document lists all third-party libraries and services used in the project,
along with their licenses, to ensure full transparency and license compliance.
Project License: MIT License
Web Application (apps/web)#
Runtime Dependencies#
Development Dependencies#
Disease Detection API (apps/disease-api)#
| Package |
Version |
License |
Purpose |
| fastapi |
0.162.2 |
MIT |
Python web framework |
| uvicorn |
0.54.0 |
BSD-3-Clause |
ASGI server |
| python-multipart |
0.0.33 |
Apache-2.0 |
File upload support |
| Pillow |
13.0.0 |
MIT-CMU |
Image processing |
| numpy |
2.4.6 |
BSD-3-Clause |
Numerical computation |
| tensorflow |
2.21.0 |
Apache-2.0 |
Machine learning inference (wheels for Linux arm64 and x86_64) |
| keras |
3.15.1 |
Apache-2.0 |
Model loading (pulled by tensorflow, pinned) |
pytest, httpx2 (requirements-dev.txt; httpx2 is the test client Starlette 1.10 requires) |
9.1.1, 2.16.0 |
MIT, BSD-3-Clause |
Disease API tests |
Tea model training (ai-models/tea, not shipped)#
Pinned in ai-models/tea/requirements.txt; used only to retrain ai-models/tea_leaf_model.keras. The MobileNetV2
ImageNet weights it downloads are credited in ai-models/ATTRIBUTION.md.
| Package |
Version |
License |
Purpose |
| tensorflow |
2.21.0 |
Apache-2.0 |
Model training (same version as the disease API) |
| keras |
3.15.1 |
Apache-2.0 |
Model definition, MobileNetV2 transfer learning |
| numpy |
2.4.6 |
BSD-3-Clause |
Numerical computation |
| Pillow |
13.0.0 |
MIT-CMU |
Image decoding and resizing (same as the disease API) |
Infrastructure Services (Docker Compose)#
| Service |
Image |
License |
Purpose |
| PostgreSQL |
postgres:16.14-bookworm (built in platform/postgres) |
PostgreSQL License (OSI) |
Relational database |
| PostGIS |
3.7.0, installed in the PostgreSQL image (PGDG) |
GPL-2.0-or-later |
Geospatial extension |
| pgvector |
0.8.7, installed in the PostgreSQL image (PGDG) |
PostgreSQL License (OSI) |
Vector similarity extension |
| Keycloak |
quay.io/keycloak/keycloak:24.0.5 |
Apache-2.0 |
Identity & Access Management |
| APISIX |
apache/apisix:3.19.0-debian |
Apache-2.0 |
API gateway |
| Hasura |
hasura/graphql-engine:v2.51.4.cli-migrations-v3 |
Apache-2.0 |
Read-only GraphQL data API |
| n8n |
n8nio/n8n:2.47.2 |
Sustainable Use License* |
Workflow automation |
| SeaweedFS |
chrislusf/seaweedfs:4.50 |
Apache-2.0 |
S3-compatible object storage (replaces MinIO); started with -volume.max=100 so more than one bucket fits |
| ClamAV |
clamav/clamav-debian:1.4.6 |
GPL-2.0 |
Antivirus daemon (network service, not linked) |
| Python |
python:3.12.15-slim-bookworm |
PSF |
Base image of dxos-scanner, dxos-dataops, dxos-cli and the mini-apps hello, tea-tour, leaf-purchase, tea-shop, farm-supply, custom-books and htx-dashboard, and of ai-models/tea training (not a Compose service) |
| Mosquitto |
eclipse-mosquitto:2.1.2-alpine |
EPL-2.0 |
MQTT broker (network service, not linked) |
| Ollama |
ollama/ollama:0.40.15 |
MIT |
Local LLM runtime (network service, no host port) |
| qwen2.5:0.5b |
pulled by ollama-init, pinned by digest ID |
Apache-2.0 |
Default in-house LLM (model weights, not bundled in any image) |
| Piper TTS |
rhasspy/wyoming-piper:2.5.2 |
MIT |
Text-to-Speech engine |
| whisper.cpp server |
ghcr.io/ggml-org/whisper.cpp:main-bd9e1a12352fa57e448bdea6a0649aa9c24c64aa (built 2026-11-10, linux/amd64 only) |
MIT |
Speech-to-text for Telegram voice messages (dxos-stt, no host port; the image also runs stt-init) |
| Whisper ggml models |
ggml-small.bin (default), ggml-base.bin, ggml-medium.bin from ggerganov/whisper.cpp at commit 5359861c739e955e79d9a303bcbc70fb988958b1, downloaded by stt-init and checked by SHA-256 |
MIT |
Speech-recognition model weights (not bundled in any image) |
| Mattermost |
mattermost/mattermost-team-edition:12.1.0 |
MIT (Team Edition) |
Team communication |
| Package |
Version |
License |
Purpose |
| minio |
7.2.20 |
Apache-2.0 |
S3 client |
| psycopg[binary] |
3.3.6 |
LGPL-3.0 |
PostgreSQL driver (dynamically linked, unmodified) |
| pytest |
9.1.1 |
MIT |
Unit tests (dev only) |
| Package |
Version |
License |
Purpose |
| paho-mqtt |
2.2.0 |
EPL-2.0 OR BSD-3-Clause |
MQTT client |
| duckdb |
2.0.0 |
MIT |
Parquet writer and cold-lake query engine |
| minio |
7.2.20 |
Apache-2.0 |
S3 client |
| psycopg[binary] |
3.3.6 |
LGPL-3.0 |
PostgreSQL driver (dynamically linked, unmodified) |
| pytest |
9.1.1 |
MIT |
Unit tests (dev only) |
| Package |
Version |
License |
Purpose |
| PyYAML |
6.0.3 |
MIT |
Reads app.yaml manifests |
| jsonschema |
4.26.0 |
MIT |
Validates manifests against platform/apps/manifest.schema.json |
| psycopg[binary] |
3.3.6 |
LGPL-3.0 |
PostgreSQL driver for platform.installed_apps and each app's schema, role and migrations (dynamically linked, unmodified) |
| pytest |
9.1.1 |
MIT |
Unit tests (dev only) |
Mini-app hello (miniapps/hello)#
Python standard library only (http.server, unittest); no third-party package.
Mini-app tea-tour (miniapps/tea-tour)#
| Package |
Version |
License |
Purpose |
| fastapi |
0.162.2 |
MIT |
Web framework (same as the disease API) |
| uvicorn |
0.54.0 |
BSD-3-Clause |
ASGI server |
| python-multipart |
0.0.33 |
Apache-2.0 |
HTML form parsing |
| Jinja2 |
3.1.6 |
BSD-3-Clause |
HTML templates (autoescaped) |
| psycopg[binary] |
3.3.6 |
LGPL-3.0 |
PostgreSQL driver for schema app_tea_tour (dynamically linked, unmodified) |
pytest, httpx2 (requirements-dev.txt, with the CLI's requirements for its test Postgres) |
9.1.1, 2.16.0 |
MIT, BSD-3-Clause |
Unit tests (dev only) |
Mini-apps leaf-purchase, tea-shop and farm-supply (miniapps/<id>)#
No new package: each app's requirements.txt and requirements-dev.txt are identical to tea-tour's (the packages and pins in the table above), and each stores its data in its own schema (app_leaf_purchase, app_tea_shop, app_farm_supply).
Project site (site/)#
| Component |
Version |
License |
Purpose |
Be Vietnam Pro font (latin and vietnamese subsets, weights 400, 600, 700), self-hosted in site/assets/fonts as woff2 |
5.3.0 (@fontsource/be-vietnam-pro) |
OFL-1.1 |
Page typeface; licence text in site/assets/fonts/OFL-1.1.txt |
The site has no JavaScript dependency, no build toolchain and no external requests at run time.
Only the documentation generator uses a package. It is installed by .github/workflows/pages.yml and for local builds.
| Component |
Version |
License |
Purpose |
| Python-Markdown |
3.7 |
BSD-3-Clause |
Converts the repository's Markdown documents to HTML pages of the project site |
Python 3.12 (PSF) runs the scripts. The site's icons and diagrams are drawn in SVG by the project; no icon library is used.
Mobile app (apps/hub-mobile, Flutter 3.41.7 / Dart 3.11.5)#
All versions are pinned exactly in pubspec.yaml; pubspec.lock pins the transitive packages (installed with flutter pub get --enforce-lockfile). No Google Play services, Firebase, Maps SDK or analytics.
Runtime Dependencies#
| Package |
Version |
License |
Purpose |
Flutter SDK (build toolchain, flutter package) |
3.41.7 |
BSD-3-Clause |
UI framework |
| go_router |
17.5.0 |
BSD-3-Clause |
Role-based routing and redirects |
| provider |
6.1.5+1 |
MIT |
State management (session, cart, orders) |
| shared_preferences |
2.5.6 |
BSD-3-Clause |
Cart, orders and tickets kept on the device |
| qr_flutter |
4.1.0 |
BSD-3-Clause |
VietQR payment code and ticket QR (pulls qr 3.0.3, BSD-3-Clause) |
| flutter_appauth |
12.1.0 |
BSD-3-Clause |
Keycloak sign-in: OIDC authorization code flow with PKCE in the system browser. Wraps the native AppAuth libraries: AppAuth-Android 0.11.1 (Apache-2.0; depends only on androidx.annotation, androidx.appcompat, androidx.browser) and AppAuth-iOS (Apache-2.0). No Google Play services. Pulls flutter_appauth_platform_interface 12.1.0 (BSD-3-Clause) |
| flutter_secure_storage |
11.2.0 |
BSD-3-Clause |
Refresh and access tokens in Android Keystore (AES key managed with Tink tink-android 1.23.0, Apache-2.0, no Play services) and the iOS Keychain. Pulls flutter_secure_storage_darwin 0.4.3, _linux 3.0.3, _platform_interface 2.1.1, _web 2.1.1 and _windows 4.2.2 (BSD-3-Clause) |
| image_picker |
1.1.2 |
BSD-3-Clause |
Camera and gallery pickers for the leaf photo (disease scan). Uses the system camera app (no camera permission on Android) and the iOS picker; no Google Play services. Pulls image_picker_android 0.8.13+17, _ios 0.8.13+10, _for_web 3.1.1, _linux 0.2.2, _macos 0.2.2+1, _windows 0.2.2, _platform_interface 2.11.2, cross_file 0.3.5+5, file_selector_linux 0.9.4+1, _macos 0.9.5+1, _windows 0.9.3+6, _platform_interface 2.7.0, flutter_plugin_android_lifecycle 2.0.35 (all BSD-3-Clause, Flutter authors) and mime 2.1.0 (BSD-3-Clause, Dart project authors) |
| camera |
0.12.0+2 |
BSD-3-Clause |
Live camera preview and shutter for the leaf scan on phones (the browser demo uses web instead). Uses CameraX on Android (AndroidX, no Google Play services) and AVFoundation on iOS. Pulls camera_android_camerax 0.7.2, camera_avfoundation 0.10.3+1, camera_platform_interface 2.15.0, camera_web 0.3.6 (BSD-3-Clause, Flutter authors) and stream_transform 2.1.2 (BSD-3-Clause, Dart project authors) |
| video_player |
2.11.1 |
BSD-3-Clause |
Plays the short videos ("Video ngắn") on the account pages: bundled demo clips and clips picked from the gallery. Uses ExoPlayer (AndroidX Media3) on Android, AVPlayer on iOS and the browser's <video> on web; no Google Play services. Pulls video_player_android 2.9.5, video_player_avfoundation 2.12.1, video_player_web 2.4.0, video_player_platform_interface 6.9.0 (BSD-3-Clause, Flutter authors), html 0.15.7 and csslib 1.0.2 (BSD-3-Clause, Dart project authors) |
| web |
1.1.1 |
BSD-3-Clause |
Browser APIs for the leaf scan in the web demo (getUserMedia, canvas); already a transitive package, now pinned as a direct one (Dart project authors) |
| http_parser |
4.1.2 |
BSD-3-Clause |
Media type of the leaf photo in the multipart upload; already a transitive package of http, now pinned as a direct one (Dart project authors) |
| http |
1.6.0 |
BSD-3-Clause |
HTTP client of HttpHubRepository (GraphQL calls to the core through the gateway); tests use its MockClient (pulls http_parser 4.1.2 and typed_data 1.4.0, BSD-3-Clause) |
Be Vietnam Pro font (Regular, Medium, SemiBold, Bold), bundled in apps/hub-mobile/assets/fonts |
1.002 (Google Fonts ofl/bevietnampro, fetched 2026-11-17) |
OFL-1.1 |
The sans-serif of the whole app; license text in assets/fonts/OFL.txt |
| flutter_localizations (Flutter SDK) |
3.41.7 |
BSD-3-Clause |
Vietnamese labels of the built-in widgets (the date picker of the booking screen). Pulls intl 0.20.2 (BSD-3-Clause) |
Dev Dependencies#
| Package |
Version |
License |
Purpose |
| flutter_test (Flutter SDK) |
3.41.7 |
BSD-3-Clause |
Unit and widget tests |
| flutter_lints |
6.0.0 |
BSD-3-Clause |
Lint rules for flutter analyze |
Transitive packages (all BSD-3-Clause or MIT, checked from their LICENSE files; added with flutter_secure_storage: args 2.7.0, code_assets 1.2.1, crypto 3.0.8, ffi_leak_tracker 0.1.2, hooks 2.0.2, jni 1.1.2, jni_flutter 1.0.4+1, jni_util 1.0.0, objective_c 9.5.0, package_config 3.0.0, path_provider 2.1.6, path_provider_android 2.3.1, path_provider_foundation 2.6.0, pub_semver 2.2.1, record_use 0.6.0, win32 6.4.0, yaml 3.1.4): characters, collection, ffi, file, http_parser, logging, material_color_utilities, meta, nested (MIT), path, path_provider_linux, path_provider_platform_interface, path_provider_windows, platform, plugin_platform_interface, qr, shared_preferences_android, shared_preferences_foundation, shared_preferences_linux, shared_preferences_platform_interface, shared_preferences_web, shared_preferences_windows, typed_data, vector_math, web, xdg_directories.
Mini-app htx-dashboard (miniapps/htx-dashboard)#
| Package |
Version |
License |
Purpose |
| fastapi |
0.162.2 |
MIT |
Web framework (same pin as tea-tour) |
| uvicorn |
0.54.0 |
BSD-3-Clause |
ASGI server |
| Jinja2 |
3.1.6 |
BSD-3-Clause |
HTML templates (autoescaped) |
pytest, httpx2 (requirements-dev.txt) |
9.1.1, 2.16.0 |
MIT, BSD-3-Clause |
Unit tests (dev only) |
No database driver and no form parser: the app has no database and no form that writes. It reads the core with the standard library (urllib).
* n8n License Note: n8n uses the Sustainable Use License (fair-code, source-available,
not OSI-approved). DX-AgriMarket does NOT import, link, or bundle n8n source code.
Communication is exclusively via HTTP API. n8n is an optional, replaceable component.
See ADR 0001.
| Service |
Version |
License |
Purpose |
| Anthropic Messages API |
API version 2023-06-01 |
Commercial API, opt-in |
Optional provider of one agent (ADR 0004), called over HTTPS |
| OpenAI Chat Completions API |
- |
Commercial API, opt-in |
Optional provider of one agent (ADR 0004), called over HTTPS |
No package is installed for these: the agent calls both APIs with urllib from the Python standard library. Both services are paid and off unless a manager turns them on for a cooperative; their keys come from the operator's environment only.
Installed only in the dxos-builder image (built by make builder-image), never in the core. Every tag and package below is at least two weeks old; the host loop ./dxos builder and the proxy use the Python standard library only.
| Package |
Version |
License |
Purpose |
Playwright for Python base image (mcr.microsoft.com/playwright/python) |
v1.62.0-noble |
Apache-2.0 |
Base image: Ubuntu 24.04, Python 3.12 and the browsers for the run gate |
| playwright (Python) |
1.62.0 |
Apache-2.0 |
Drives the browser in the run gate (same version as the browsers of the base image) |
| @openai/codex |
0.167.2 |
Apache-2.0 |
Coding tool codex-cli, installed when DXOS_BUILDER_TOOLS includes codex-cli (the default) |
| @anthropic-ai/claude-code |
2.1.322 |
Proprietary (Anthropic terms) |
Coding tool claude-code, installed at image build only when DXOS_BUILDER_TOOLS includes claude-code; never committed |
| PostgreSQL |
16 (Ubuntu package) |
PostgreSQL |
A throwaway server inside the gates container for the tests and the run gate |
| Node.js, npm, git (Ubuntu packages) |
distribution |
MIT, Artistic-2.0, GPL-2.0 |
Runtime of the coding tools (npm packages only); git is only for the tools |
python:3.12.15-slim-bookworm |
3.12.15 |
PSF-2.0 |
Runs the allowlist proxy (dxos-builder-proxy) |
The wheelhouse (/wheels) and the libraries a generated app may use are exactly the pins in platform/builder/allowed-requirements.txt (the union of the existing mini-apps' pins, each line with its licence). Both coding tools call their provider's paid API with the operator's own key; they are off unless a key is set.
License Compatibility#
All direct dependencies use OSI-approved licenses (MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC)
that are fully compatible with the project's MIT License.
The only non-OSI dependency is n8n (Sustainable Use License), which is used as an
external Docker service communicating via HTTP API only — no source code is imported or bundled.
This follows the same integration pattern as using any external SaaS API and does not
affect the project's MIT licensing.
Staff Desktop App (apps/staff-desktop)#
Staff Mobile App (apps/staff-mobile)#
| Package |
Version |
License |
Purpose |
| AndroidX Core KTX, Activity Compose, Lifecycle, SplashScreen |
1.19.1 / 1.13.0 / 2.11.0 / 1.2.0 |
Apache-2.0 |
Android platform support |
| Jetpack Compose BOM (ui, material3, icons-extended) |
2026.09.00 |
Apache-2.0 |
UI toolkit |
| kotlinx.serialization JSON |
1.12.0 |
Apache-2.0 |
JSON models |
| AndroidX ExifInterface |
1.4.2 |
Apache-2.0 |
Upright evidence photos |
| Android Gradle Plugin / Kotlin / Gradle wrapper (build) |
9.5.1 / 2.4.21 / 9.9.0 |
Apache-2.0 |
Build toolchain |
| Robolectric (test) |
4.17 |
MIT |
JVM UI tests |
| JUnit 4 (test) |
4.13.2 |
EPL-1.0 |
Unit tests |
Tea IoT Station (apps/tea-iot)#
| Package |
Version |
License |
Purpose |
| MQTTnet |
4.3.7.1207 |
MIT |
MQTT client publishing to the core broker |
| CommunityToolkit.Mvvm |
8.4.2 |
MIT |
MVVM base classes |
| xUnit, Microsoft.NET.Test.Sdk, coverlet (test) |
2.9.3 / 17.14.1 / 6.0.4 |
Apache-2.0 / MIT / MIT |
Unit tests |
Full lists with notes: apps/staff-desktop/DEPENDENCIES.md and apps/staff-mobile/DEPENDENCIES.md.