betto_onnxrt
ONNX Runtime for Dart — build-time binary via native-assets hook, generalised OnnxSession API, and model-download infrastructure.
0.1.0-dev.1
bettongia/onnxrt
What this package is like to depend on
Last release 2 months ago
17 Jun 2026
Too new to tell
only 1 dated releases
Unknown
no stable releases
Nothing withdrawn
no release was ever pulled
2 months old
1 releases · first in 2026
1 release in the last 12 months
see the full history below
Release timeline
1 releases · Jun 2026 to Jun 2026Releases
latest 1-
0.1.0-dev.117 Jun 2026 pre-releaseRelease notes
Open source →Initial development release.
- Native-assets build hook (
hook/build.dart) that downloads and stages the ONNX Runtime prebuilt binary (v1.22.0) for macOS, Linux, Windows, Android, and iOS. OnnxRuntime— opens the staged ORT library and initialises theOrtApivtable.OnnxSession— generalised FFI inference session supporting arbitrary named inputs and outputs; exposes output tensor shape and element type.OnnxTensor— typed multi-dimensional array with named factories forfloat32,float64,int32,int64, anduint8element types.SessionOptions— thread-pool sizing for intra-op and inter-op parallelism.ModelDownloader— SHA-256 verified, crash-safe download of ONNX model files described by aModelSpec.AllowlistProvider— interface for gating which modelsModelDownloaderis permitted to fetch.- Added
example/magika/— a standalone Dart CLI tool that detects file types using Google's Magika v3.3 ONNX model. Demonstrates end-to-end use ofOnnxRuntime,OnnxSession, andModelDownloaderwith a real-world model. Output mirrors the Python Magika--jsonformat. Run withdart run bin/magika.dart <file>or compile withdart build clifrom insideexample/magika/.
- Native-assets build hook (