dmi_read 0.1.0

  • Installing
  • Versions
  • 39

DMI Read

A Dart library for reading .dmi spritesheet files used by the BYOND platform.

This library does not depend on dart:io, and thus can be used both in browser and the VM.

Current version has been tested against dmis generated by BYOND version 510.1347.


BYOND is a proprietary game engine and platform, allowing creation of 2D tile-based multiplayer games through its Dream Maker component.

In BYOND game sources, sprites are kept in .dmi files. .dmi files are sprite sheets in a PNG file with a zTXt chunk containing metadata which describes the frames in the sprite sheet. An image viewer or editor will generally be able to open the whole sprite sheet, however, figuring out where the individual sprites are, and how they are grouped requires parsing the attached .dmi metadata.


Print the names of every state in foo.dmi:

DmiSheet sheet = new DmiSheet.fromBytes(
    await new File('foo.dmi').readAsBytes());
sheet.states.forEach((state) {

For a slightly longer example, see dmi_read_example.dart.


dmi_read is free software licensed under the ISC license. See the LICENSE file for details.

Bug reports and pull requests can be filed at



Initial release.

Use this package as a library

1. Depend on it

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

  dmi_read: "^0.1.0"

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:dmi_read/dmi_read.dart';
Version Uploaded Documentation Archive
0.1.0 Dec 18, 2016 Go to the documentation of dmi_read 0.1.0 Download dmi_read 0.1.0 archive


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

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


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


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:dmi_read/dmi_read.dart.


  • Package is getting outdated.

    The package was released 78 weeks ago.

  • 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.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 7 hints.

    Run dartfmt to format lib/src/description_parser.dart.

    Run dartfmt to format lib/src/dmi_sheet.dart.

    Similar analysis of the following files failed:

    • lib/src/exceptions.dart (hint)
    • lib/src/png_reader.dart (hint)
  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.0 <2.0.0
archive ^1.0.27 1.0.33 2.0.0
image ^1.1.26 1.1.33 2.0.4
string_scanner ^1.0.1 1.0.2
Transitive dependencies
args 1.4.3
browser 0.10.0+3
charcode 1.1.1
collection 1.14.10
convert 2.0.1
crypto 2.0.5
matcher 0.12.3
path 1.6.1
petitparser 1.7.6
source_span 1.4.0
stack_trace 1.9.2
typed_data 1.1.5
xml 3.0.0
Dev dependencies
test >=0.12.0