llm_toolkit 0.0.4 copy "llm_toolkit: ^0.0.4" to clipboard
llm_toolkit: ^0.0.4 copied to clipboard

A comprehensive Flutter SDK for running Large Language Models (LLMs) locally on mobile and desktop devices. Supports multiple inference engines including Gemma (TFLite) and Llama (GGUF) with integrate [...]

110/ 160
pub points
117
downloads

We analyzed this package 2 days ago, and awarded it 110 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

26 out of 178 API elements (14.6 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: llm_toolkit, llm_toolkit.BaseModelProvider, llm_toolkit.BaseModelProvider.BaseModelProvider.new, llm_toolkit.BaseModelProvider.downloadModel, llm_toolkit.BaseModelProvider.getModelDetails.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:llm_toolkit/llm_toolkit.dart that imports:
  • package:flutter_gemma/pigeon.g.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `Linux`.

Because:

  • package:llm_toolkit/llm_toolkit.dart that imports:
  • package:flutter_gemma/pigeon.g.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `macOS`.

Because:

  • package:llm_toolkit/llm_toolkit.dart that imports:
  • package:flutter_gemma/pigeon.g.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `Web`.

Because:

  • package:llm_toolkit/llm_toolkit.dart that imports:
  • package:llm_toolkit/src/core/providers/huggingface/hf_provider.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:llm_toolkit/llm_toolkit.dart that imports:
  • package:llm_toolkit/src/core/providers/huggingface/hf_provider.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.cn/web/wasm for details.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 57 issues. Showing the first 2:

WARNING: The value of the field '_fft' isn't used.

lib/src/core/inference/tflite_asr_engine.dart:46:12

   ╷
46 │   late FFT _fft;
   │            ^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/core/inference/tflite_asr_engine.dart

WARNING: The value of the field '_melFilterBank' isn't used.

lib/src/core/inference/tflite_asr_engine.dart:47:27

   ╷
47 │   late List<List<double>> _melFilterBank;
   │                           ^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/core/inference/tflite_asr_engine.dart

Partially passed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Partially passed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
collection ^1.17.0 1.19.1 1.19.1
crypto ^3.0.3 3.0.6 3.0.6
dio ^5.8.0 5.9.0 5.9.0
fftea ^1.0.0 1.5.0+1 1.5.0+1
flutter_gemma ^0.9.0 0.9.0 0.11.3
http ^1.1.0 1.5.0 1.5.0
json_annotation ^4.8.1 4.9.0 4.9.0
llama_cpp_dart ^0.0.9 0.0.9 0.1.0
objectbox ^4.3.0 4.3.1 5.0.0
objectbox_flutter_libs ^4.3.0 4.3.1 5.0.0
path ^1.8.3 1.9.1 1.9.1
path_provider ^2.1.1 2.1.5 2.1.5
record ^6.0.0 6.1.2 6.1.2
tflite_flutter ^0.11.0 0.11.0 0.11.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
boolean_selector - 2.1.2 2.1.2
characters - 1.4.0 1.4.1
dio_web_adapter - 2.1.1 2.1.1
ffi - 2.1.4 2.1.4
file - 7.0.1 7.0.1
fixnum - 1.1.1 1.1.1
flat_buffers - 23.5.26 23.5.26
http_parser - 4.1.2 4.1.2
large_file_handler - 0.3.1 0.3.1
matcher - 0.12.17 0.12.17
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
mime - 2.0.0 2.0.0
path_provider_android - 2.2.18 2.2.18
path_provider_foundation - 2.4.2 2.4.2
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
quiver - 3.2.2 3.2.2
record_android - 1.4.3 1.4.3
record_ios - 1.1.4 1.1.4
record_linux - 1.2.1 1.2.1
record_macos - 1.1.2 1.1.2
record_platform_interface - 1.4.0 1.4.0
record_web - 1.2.0 1.2.0
record_windows - 1.0.7 1.0.7
shared_preferences - 2.5.3 2.5.3
shared_preferences_android - 2.4.14 2.4.14
shared_preferences_foundation - 2.5.4 2.5.4
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
source_span - 1.10.1 1.10.1
sprintf - 7.0.0 7.0.0
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.7 0.7.7
typed_data - 1.4.0 1.4.0
typed_isolate - 6.0.0 6.0.0
uuid - 4.5.1 4.5.1
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 4 issues. Showing the first 2:

The constraint `^0.9.0` on flutter_gemma does not support the stable version `0.10.0`.

Try running dart pub upgrade --major-versions flutter_gemma to update the constraint.

The constraint `^0.0.9` on llama_cpp_dart does not support the stable version `0.1.0`.

Try running dart pub upgrade --major-versions llama_cpp_dart to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.23, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
5
likes
110
points
117
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter SDK for running Large Language Models (LLMs) locally on mobile and desktop devices. Supports multiple inference engines including Gemma (TFLite) and Llama (GGUF) with integrated model discovery, download, and chat capabilities.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, crypto, dio, fftea, flutter, flutter_gemma, http, json_annotation, llama_cpp_dart, objectbox, objectbox_flutter_libs, path, path_provider, record, tflite_flutter

More

Packages that depend on llm_toolkit