mserve 0.2.2

  • Installing
  • Versions
  • 50


A small (micro) web server.

Build Status pub package


Start with mserve or mserve --port=80.

Features and bugs

Please file feature requests and bugs at the issue tracker.



  • updates for Dart 2



  • change the utility to be package:shelf based


  • update our deps, and some updates for Dart 2


  • improved the error message when we're unable to bind to the requested port


  • added a logging option (--log)


  • first release


  • initial version, created by Stagehand

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate mserve

2. Use it

The package has the following executables:

$ mserve

Use this package as a library

1. Depend on it

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

  mserve: ^0.2.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:mserve/mserve.dart';
Version Uploaded Documentation Archive
0.2.2 Jul 19, 2018 Go to the documentation of mserve 0.2.2 Download mserve 0.2.2 archive
0.2.1 Jun 2, 2018 Go to the documentation of mserve 0.2.1 Download mserve 0.2.1 archive
0.2.0 Jun 2, 2018 Go to the documentation of mserve 0.2.0 Download mserve 0.2.0 archive
0.1.3 Apr 17, 2018 Go to the documentation of mserve 0.1.3 Download mserve 0.1.3 archive
0.1.2 Jul 4, 2015 Go to the documentation of mserve 0.1.2 Download mserve 0.1.2 archive
0.1.1 Jun 27, 2015 Go to the documentation of mserve 0.1.1 Download mserve 0.1.1 archive
0.1.0 Jun 25, 2015 Go to the documentation of mserve 0.1.0 Download mserve 0.1.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8


Detected platforms: Flutter, other

Primary library: package:mserve/mserve.dart with components: io, isolate.


The description is too short.

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Maintain an example.

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use mserve.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.30 <3.0.0
args ^1.0.0 1.5.0
cli_util ^0.1.3 0.1.3+2
http_parser ^3.0.0 3.1.3
http_server ^0.9.0 0.9.8
intl ^0.15.6 0.15.7
mime ^0.9.6 0.9.6+2
package_config ^1.0.3 1.0.5
path ^1.5.0 1.6.2
shelf ^0.7.2 0.7.3+3
shelf_static ^0.2.0 0.2.8
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
convert 2.0.2
source_span 1.4.1
stack_trace 1.9.3
stream_channel 1.6.8
string_scanner 1.0.3
typed_data 1.1.6
Dev dependencies
test ^1.0.0