dartmonit 0.0.6

  • README.md
  • Installing
  • Versions
  • 43


Monitor Dart scripts, and run them on startup. This is very early in the development stages, so expect some changes.

Running dartmonit as a daemon is currently only supported on Linux and Windows.


For Unix/Linux variants:

pub global activate dartmonit

On Windows, you need to clone this repository, and add bin/dartmonit.bat to your PATH. The reason for this is that having dartmonit saved on your filesystem allows the install command to install the included Windows service, written in C#, and compiled to an .exe.

git clone https://github.com/thosakwe/dartmonit.git
SET PATH="<dartmonit-root>\bin";%PATH%

See here for a look at how to set environment variables system-wide.

To add a script to /etc/init.d:

sudo dartmonit env "PATH=$PATH" install


dartmonit is essentially an HTTP server, which runs as a daemon and exposes a simple API.

Most of the CLI commands query a running API.

To manually start the server (not as a daemon):

dartmonit start
dartmonit start --port 2245

2245 is the default port.

Now, you can run it as a service:

sudo service dartmonit start
sudo /etc/init.d/dartmonit start

You may have better luck with the /etc/init.d variant, rather than service.


Usage: dartmonit <command> [arguments]

Global options:
-h, --help    Print this usage information.

Available commands:
  help        Display help information for dartmonit.
  install     Configures dartmonit to run at startup.
  kill        Halts the execution of a given command.
  remove      Removes a command from the list of processes to execute.
  run         Spawns a child process at the given absolute path.
  start       Starts the dartmonit HTTP server.
  status      Fetches the status of a given process.
  stop        Instructs an active dartmonit server to shut down.
  uninstall   Uninstalls the dartmonit daemon.

Run "dartmonit help <command>" for more information about a command.


TODO: API documentation

1. Depend on it

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

  dartmonit: "^0.0.6"

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 packages get. Check the docs for your editor to learn more.

Version Uploaded Documentation Archive
0.0.6 Jul 22, 2017 Go to the documentation of dartmonit 0.0.6 Download dartmonit 0.0.6 archive
0.0.5 Jul 22, 2017 Go to the documentation of dartmonit 0.0.5 Download dartmonit 0.0.5 archive
0.0.4 Jul 22, 2017 Go to the documentation of dartmonit 0.0.4 Download dartmonit 0.0.4 archive
0.0.3 Jul 22, 2017 Go to the documentation of dartmonit 0.0.3 Download dartmonit 0.0.3 archive
0.0.2 Jul 21, 2017 Go to the documentation of dartmonit 0.0.2 Download dartmonit 0.0.2 archive
0.0.1 Jul 21, 2017 Go to the documentation of dartmonit 0.0.1 Download dartmonit 0.0.1 archive
0.0.0 Jul 21, 2017 Go to the documentation of dartmonit 0.0.0 Download dartmonit 0.0.0 archive


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

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
93 / 100
Reflects how tidy and up-to-date the package is. [more]
78 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in libraries.


  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 errors 11 hints.

    Strong-mode analysis of lib/src/commands/start.dart failed with the following error:

    line: 86 col: 25
    The argument type 'List' can't be assigned to the parameter type 'Iterable<Future>'.

    Strong-mode analysis of lib/src/server.dart failed with the following error:

    line: 54 col: 7
    The getter 'justBeforeStop' isn't defined for the class 'Angel'.

    Similar analysis of the following files failed:

    • lib/src/client.dart (hint)
    • lib/src/manager.dart (hint)
  • 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 API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use dartmonit.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0
angel_diagnostics ^1.0.0 1.0.2
angel_framework ^1.0.0 1.1.2
angel_security ^1.0.0 1.1.0
angel_serialize ^1.0.0-alpha 1.0.0 2.0.1
angel_validate ^1.0.0 1.0.3
args ^0.13.4 0.13.7 1.4.2
http ^0.11.3 0.11.3+16
resource ^1.0.0 1.1.0 2.1.2
Transitive dependencies
angel_http_exception 1.0.0
angel_model 1.0.0
angel_route 2.0.5
async 2.0.6
body_parser 1.1.0
charcode 1.1.1
collection 1.14.9
combinator 1.0.0-beta+7
console 2.2.4
container 0.1.2
fnx_profiler 0.9.1
http_parser 3.1.1
http_server 0.9.7
json_god 2.0.0-beta+1
logging 0.11.3+1
matcher 0.12.2
merge_map 1.0.0
meta 1.1.2
mime 0.9.6
path 1.5.1
pool 1.3.4
quiver 0.22.0 0.29.0+1
quiver_hashcode 1.0.0
random_string 0.0.1
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
tuple 1.0.1
typed_data 1.1.5
vector_math 1.4.7 2.0.6
Dev dependencies
angel_serialize_generator ^1.0.0-alpha
build_runner ^0.3.0