stream 3.2.3 copy "stream: ^3.2.3" to clipboard
stream: ^3.2.3 copied to clipboard

Lightweight Dart web server supporting request routing, filtering, template engine, MVC design pattern, and file-based static resources.

8
likes
110/ 160
pub points
76%
popularity

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

partial
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/rikulo/stream/issues was unreachable. Make sure that the website is reachable via HEAD requests.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

failed
Provide documentation
10 / 20trigger folding of the section

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

308 out of 362 API elements (85.1 %) have documentation comments.

Some symbols that are missing documentation: stream, stream.ErrorDetail.error, stream.ErrorDetail.stackTrace, stream.Http400.Http400.fromConnect, stream.Http401.Http401.fromConnect.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

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:stream/stream.dart that imports:
  • package:stream/plugin.dart that imports:
  • package:rikulo_commons/io.dart that imports:
  • package:rikulo_commons/convert.dart that imports:
  • dart:io
failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 290 issues. Showing the first 2:

WARNING: This function has a nullable return type of 'int?', but ends without returning a value.

lib/src/plugin/router.dart:206:8

    ╷
206 │   int? getFilterIndex(HttpConnect connect, String uri, int iFilter) {
    │        ^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/plugin/router.dart

INFO: Statements in a for should be enclosed in a block.

lib/proxy.dart:59:11

   ╷
59 │ ┌           if (Rsp.isHeaderValueValid(value))
60 │ │             _addHeader(clientRequest.headers, name, value);
61 │ │           else
62 │ └             (log ?? _logger.warning)('Ignored: invalid request header value: $name=${json.encode(value)}');
   ╵

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

failed
Support up-to-date dependencies
20 / 40trigger folding of the section

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

Package Constraint Compatible Latest
args any 2.5.0 2.5.0
charcode any 1.3.1 1.3.1
http any 1.2.1 1.2.1
logging any 1.2.0 1.2.0
path any 1.9.0 1.9.0
rikulo_commons any 6.1.0 6.1.0
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
collection - 1.18.0 1.18.0
http_parser - 4.0.2 4.0.2
meta - 1.15.0 1.15.0
mime - 1.0.5 1.0.5
source_span - 1.10.0 1.10.0
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
web - 0.5.1 0.5.1

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

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 6 errors:

  • UNDEFINED_NAMED_PARAMETER - lib/src/plugin/loader.dart:241:46 - The named parameter 'isExtension' isn't defined.
  • UNDEFINED_METHOD - lib/src/rsp_util.dart:110:23 - The method 'encodeNS' isn't defined for the type 'XmlUtil'.
  • ARGUMENT_TYPE_NOT_ASSIGNABLE - lib/src/rspc/compiler.dart:163:36 - The argument type 'String?' can't be assigned to the parameter type 'String'.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.5, Dart 3.4.1.

Check the analysis log for details.

8
likes
110
pub points
76%
popularity

Publisher

verified publisherquire.io

Lightweight Dart web server supporting request routing, filtering, template engine, MVC design pattern, and file-based static resources.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

args, charcode, http, logging, path, rikulo_commons

More

Packages that depend on stream