nip47 0.5.1+2 copy "nip47: ^0.5.1+2" to clipboard
nip47: ^0.5.1+2 copied to clipboard

This package implements the Nostr Wallet Connect protocol as described in the NIP-47.

140/ 160
pub points
10
downloads

We analyzed this package 4 hours ago, and awarded it 140 pub points (of a possible 160):

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

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

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.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

342 out of 969 API elements (35.3 %) have documentation comments.

Some symbols that are missing documentation: nip47.$$RequestsTableAnnotationComposer, nip47.$$RequestsTableAnnotationComposer.$$RequestsTableAnnotationComposer.new, nip47.$$RequestsTableAnnotationComposer.clientPubkey, nip47.$$RequestsTableAnnotationComposer.createdAt, nip47.$$RequestsTableAnnotationComposer.expiresAt.

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:nip47/nip47.dart that imports:
  • package:nip47/src/data/repositories/repositories.dart that imports:
  • package:nip47/src/data/repositories/wallet_connection_repository_impl.dart that imports:
  • package:nip47/src/data/mappers/wallet_connection_mapper.dart that imports:
  • package:nip47/src/database/database.dart that imports:
  • package:drift/native.dart that imports:
  • package:drift/src/sqlite3/database_tracker.dart that imports:
  • package:sqlite3/sqlite3.dart that imports:
  • package:sqlite3/src/ffi/api.dart that imports:
  • package:sqlite3/src/ffi/implementation.dart that imports:
  • package:sqlite3/src/ffi/memory.dart that imports:
  • package:sqlite3/src/ffi/generated/shared.dart that imports:
  • dart:ffi

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:nip47/nip47.dart that imports:
  • package:nip47/src/data/repositories/repositories.dart that imports:
  • package:nip47/src/data/repositories/wallet_connection_repository_impl.dart that imports:
  • package:nip47/src/data/mappers/wallet_connection_mapper.dart that imports:
  • package:nip47/src/database/database.dart that imports:
  • package:drift/native.dart that imports:
  • package:drift/src/sqlite3/database_tracker.dart that imports:
  • package:sqlite3/sqlite3.dart that imports:
  • package:sqlite3/src/ffi/api.dart that imports:
  • package:sqlite3/src/ffi/implementation.dart that imports:
  • package:sqlite3/src/ffi/memory.dart that imports:
  • package:sqlite3/src/ffi/generated/shared.dart that imports:
  • dart:ffi

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.

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

Found 31 issues. Showing the first 2:

/tmp/pana_IESKFC/lib/src/data/data_sources/local_request_data_source.dart doesn't match the Dart formatter.

To format your files run: dart format .

/tmp/pana_IESKFC/lib/src/data/data_sources/local_response_data_source.dart doesn't match the Dart formatter.

To format your files run: dart format .

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
bolt11_decoder ^1.0.2 1.0.2 1.0.2
dartstr_utils ^0.0.2 0.0.2 0.0.2
decimal ^2.3.3 2.3.3 3.2.4
drift ^2.26.1 2.28.2 2.28.2
freezed_annotation ^3.0.0 3.1.0 3.1.0
intl ^0.20.2 0.20.2 0.20.2
json_annotation ^4.9.0 4.9.0 4.9.0
nip01 ^0.3.0+1 0.3.0+1 0.3.0+1
nip04 ^0.2.0 0.2.0 0.2.0
sqlite3 ^2.7.5 2.9.1 2.9.1
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
bech32 - 0.2.2 0.2.2
bip340 - 0.3.0 0.3.1
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
ffi - 2.1.4 2.1.4
fixnum - 1.1.1 1.1.1
js - 0.7.2 0.7.2 Discontinued
meta - 1.17.0 1.17.0
path - 1.9.1 1.9.1
pointycastle - 3.9.1 4.0.0
rational - 2.2.3 2.2.3
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
synchronized - 3.4.0 3.4.0
typed_data - 1.4.0 1.4.0
web - 1.1.1 1.1.1
web_socket - 1.0.1 1.0.1
web_socket_channel - 3.0.3 3.0.3

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

The constraint `^2.3.3` on decimal does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions decimal 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, Dart 3.9.3.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
140
points
10
downloads

Publisher

verified publisherkumuly.dev

Weekly Downloads

This package implements the Nostr Wallet Connect protocol as described in the NIP-47.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bolt11_decoder, dartstr_utils, decimal, drift, freezed_annotation, intl, json_annotation, nip01, nip04, sqlite3

More

Packages that depend on nip47