bear 0.4.1

Bear #

A simple web framework in Dart

Features #

  • GET, POST, PATCH, PUT, DELETE Http methods
  • Variable parameters
  • Middlewares

Usage #

final bear = Bear();

bear.get("/", (BearContext c) {
    ..write("Bear rocks!")


Documentation #

Roadmap #

0.4 #

  • [x] Total rewrite

0.3 #

  • [x] Static files support

0.2 #

  • [x] MimeTypes
  • [x] Middlewares

0.1 #

  • [x] variable parameters

Contact #

In French or in English

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  bear: ^0.4.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get


3. Import it

Now in your Dart code, you can use:

import 'package:bear/bear.dart';
Code health derived from static analysis. [more]
Weighted score of the above. [more]
Learn more about scoring.


  • Dart: 2.4.0
  • pana: 0.12.19


Detected platforms: Flutter, other

Primary library: package:bear/bear.dart with components: io.

Health suggestions

Fix lib/src/bear.dart. (-1.49 points)

Analysis of lib/src/bear.dart reported 3 hints:

line 109 col 63: Use = to separate a named parameter from its default value.

line 124 col 26: Use = to separate a named parameter from its default value.

line 124 col 45: Use = to separate a named parameter from its default value.

Format lib/bear.dart.

Run dartfmt to format lib/bear.dart.

Format lib/src/context/bear_context.dart.

Run dartfmt to format lib/src/context/bear_context.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/middleware/bear_middleware.dart (Run dartfmt to format lib/src/middleware/bear_middleware.dart.)
  • lib/src/middleware/bear_middlewares.dart (Run dartfmt to format lib/src/middleware/bear_middlewares.dart.)
  • lib/src/router/bear_route.dart (Run dartfmt to format lib/src/router/bear_route.dart.)

Maintenance issues and suggestions

Provide a file named (-20 points)


Use constrained dependencies. (-20 points)

The pubspec.yaml contains 2 dependencies without version constraints. Specify version ranges for the following dependencies: mime, path.

The package description is too short. (-20 points)


Maintain an example. (-10 points)


Common filename patterns include main.dart, example.dart, and bear.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
mime any 0.9.6+3
path any 1.6.4
Dev dependencies
http any
test any