chrome_ai 0.0.10+1 copy "chrome_ai: ^0.0.10+1" to clipboard
chrome_ai: ^0.0.10+1 copied to clipboard

Platformweb

Support for chrome AI in Flutter. This package is a wrapper for the Chrome AI API. It provides a simple way to use the Chrome AI API in Flutter.

12
likes
125/ 160
pub points
23
downloads

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

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

Passed check 10/10 points: Provide a valid pubspec.yaml

Failed check 0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 3 links are insecure.

README.md:13:5

   ╷
13 │ <li><a href="chrome://flags/#prompt-api-for-gemini-nano">chrome://flags/#prompt-api-for-gemini-nano</a>: <code>Enabled</code></li>
   │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Use https URLs instead.

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

2 out of 62 API elements (3.2 %) 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: chrome_ai, chrome_ai.AIModelAvailability, chrome_ai.AIPrompt, chrome_ai.AIPrompt.AIPrompt.new, chrome_ai.AIPrompt.content.

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 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Web

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
Package not compatible with platform iOS

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
Package not compatible with platform Windows

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
Package not compatible with platform Linux

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util
Package not compatible with platform macOS

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:chrome_ai/chrome_ai.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util

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.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: 'package:js/js.dart' is deprecated and shouldn't be used. Use dart:js_interop instead.

lib/chrome_ai.dart:3:1

  ╷
3 │ import 'package:js/js.dart';
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/chrome_ai.dart

INFO: 'package:js/js_util.dart' is deprecated and shouldn't be used. Use dart:js_interop instead.

lib/chrome_ai.dart:4:1

  ╷
4 │ import 'package:js/js_util.dart';
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/chrome_ai.dart

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

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

Package Constraint Compatible Latest Notes
js ^0.7.1 0.7.2 0.7.2 Discontinued
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
vector_math - 2.1.4 2.2.0

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

The package has one or more discontinued direct dependencies.

Discontinued packages are no longer maintained, and can end up being a liability.

Consider migrating away from these dependencies:

  • js.

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.21, Flutter 3.32.4, Dart 3.8.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
12
likes
125
points
23
downloads

Publisher

verified publisherjunelee.fun

Weekly Downloads

Support for chrome AI in Flutter. This package is a wrapper for the Chrome AI API. It provides a simple way to use the Chrome AI API in Flutter.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, js

More

Packages that depend on chrome_ai