PackageTrack
Sign in Get early access

chalkdart

Console/Logging text coloring and styling library for Dart. 'Terminal string styling done right' The default mode uses ANSI codes to style the text for Console/Terminal display. HTML mode can be activated so that all text is colored and styled using HTML so ChalkDart can be use for sending colored/styled logs to the Server for viewing from a browser as well.

3.1.0 51K downloads/mo #1453 most downloaded on pub.dev timmaffett/chalkdart

What this package is like to depend on

Last release 6 months ago

15 Feb 2026

Release timing varies

gaps range from 2 weeks to 13 months

Nearly every release is documented

notes for 26 of 26 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

26 releases · first in 2022

2 releases in the last 12 months

see the full history below

Release timeline

26 releases · May 2022 to Feb 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 26
  1. 3.1.0 15 Feb 2026
    Release notes
    • Performance optimization release — significant speed improvements across all major code paths.
    • String Extension Getters — 7-10x faster (base16 and X11/CSS colors)
    • X11/CSS String Extension Getters — 3-4x faster via list-based cache
    • Chalk Getter Chains — 4-6x faster
    • ANSI SGR Code Generation — cached
    • Multi-line Text Processing — 4-6x faster
    • Hex Color Parsing — 13x faster
    • Added PERF_RECOMMENDATIONS_AND_IMPROVEMENTS.md with practical performance guidance for library users
    • Added comprehensive performance benchmark suite under test/perf_*.dart
    • Expanded test coverage from 493 to 515 tests
    Open source →
  2. 3.0.6 14 Feb 2026
    Release notes
    • setDefaultOutputMode now re-initializes the chalkstrings also
    • Move args package dependency to dev-dependencies
    • clean up dart analyze messages
    • expand dart test from 7 to 493
    Open source →
  3. 3.0.5 16 Apr 2025
    Release notes

    Corresponds to pub.dev/packages/chalkdart version 3.0.5

    Open source →
    Release notes
    • Added xterm() method as alternate way of creating ANSI/Xterm colors (instead of using ansi() or onAnsi())
    • Added export of src/chalk_x11.g.dart to package:chalkdart/chalkstrings.dart so that color extensions are available for chalk as well as the string extensions.
    • Added [AnsiStringUtils] String extension to ansiutil.dart for with [lengthWithoutAnsi] and [stripAnsi] getters so the length of a string not including hidden ansi codes can be calculated, or the codes can be removed.
    • Change to \x1B instead of \u001B for shorter strings and slightly faster parsing
    Open source →
  4. 3.0.4 25 Mar 2025
    Release notes
    • Add TLDR summary to readme
    Open source →
  5. 3.0.3 25 Mar 2025
    Release notes
    • Remove error from README about makeRGBChalk()
    Open source →
  6. 3.0.2 25 Mar 2025
    Release notes
    • Remove html_character_entities dependency and add that code locally
    Open source →
  7. 3.0.1 25 Mar 2025
    Release notes
    • Fix minor error of old ChalkWhitespaceStyle instead of ChalkWhitespaceTreatment
    • Added note about being about to use any valid white-space CSS value for [whiteSpaceTreatment]
    Open source →
  8. 3.0.0 25 Mar 2025
    Release notes
    • add support for HTML output mode with new supporting methods for Chalk and Chalk string support The intention of this is to allow the use of Chalk for loggers which may be sending output to a server/database for viewing in a browser or other html capable viewer. The viewed HTML will appear as it does in the VSCode debug console.

    New HTML Output Features:

    • Output Mode Control:

      • Chalk.setDefaultOutputMode = ChalkOutputMode.html to set default mode to html for future constructed Chalk objects
      • chalk.setOutputMode = ChalkOutputMode.html to set the output mode on an existing Chalk object
      • Use [ChalkOutputMode.ansi] to change back to ANSI mode (default unless explicitly set to html)
    • Color Scheme Support:

      • Chalk.defaultHtmlBasicANSIColorSet property for setting default color scheme
      • Chalk.setDefaultHtmlBasicANSIColorSet method for changing color scheme
      • Available schemes: [ChalkAnsiColorSet.lightBackground], [ChalkAnsiColorSet.darkBackground], [ChalkAnsiColorSet.highContrast]
    • HTML Safety Methods:

      • chalk.stripHtmlTags() - Removes HTML tags from text
      • Chalk.htmlSafeSpaces() - Preserves spaces in HTML output
      • Chalk.htmlSafeGtLt() - Converts < and > to HTML entities
      • Chalk.htmlSafeEntities() - Converts all HTML special characters to entities
    • Stylesheet Generation:

      • chalk.stylesheet() - Generates CSS styles for HTML output
      • chalk.inlineStylesheet() - Generates CSS wrapped in <style> tags
      • Customizable options for:
        • Color schemes
        • Whitespace treatment
        • Custom colors
        • Font families (10 customizable slots)
    • String Extension Methods:

      • Added stripHtmlTags for removing HTML tags
      • Added htmlSafeGtLt for safe HTML character conversion
      • Added htmlSafeSpaces for space preservation
      • Added htmlSafeEntities for entity conversion
      • Extended strip to handle HTML tags when in HTML mode
    • Example Command Line Options:

      • Added HTML output examples:
        dart run chalkdart_example.dart --html --light >testlightmode.html
        dart run chalkdart_example.dart --html --highcontrast >testhighcontrastmode.html
        dart run chalkdart_example.dart --html --dark >testdarkmode.html
        
    Open source →
  9. 2.4.0 22 Mar 2025
    Release notes

    Corresponds to pub.dev/packages/chalkdart version 2.4.0

    Open source →
    Release notes
    • add the first ever color debugging support for Flutter apps within VSCode via XCode. Chalk.xcodeSafeEsc = true; to activate XCode safe mode. (Requires the use of my "XCode Flutter Color Debugging" VSCode Extension found at https://marketplace.visualstudio.com/items?itemName=HiveRight.xcodefluttercolordebugging)
    • Update docs in README.md and change out inline base64 url images for server pngs (The inline base64 encoded url images no longer worked on pub.dev/github)
    Open source →
  10. 2.3.3 10 Mar 2025
    Release notes
    • add Wasm support, Since dart:html is not supported when compiling to Wasm, the correct alternative now is to use dart.library.js_interop to differentiate between native and web.
    • Add topics to pubspec.yaml
    Open source →
  11. 2.3.2 03 Feb 2025
    Release notes
    • Fix README.md that got swapped
    Open source →
  12. 2.3.1 03 Feb 2025
    Release notes
    • Dart format code and fix make_css_x11_methods.dart so it outputs correct dart format.
    Open source →
  13. 2.3.0 02 Feb 2025
    Release notes
    • Added support for color previews to all dart docs using Markdown images and inline SVGs. VSCode supports this.
    • Completed the dart docs for all of the string extension methods, including new color previews.
    • Always include all X11/CSS colors without having to import the _x11 variants of the chalk files.
    Open source →
  14. 2.2.1 18 Jan 2024
    Release notes
    • Dart format on source
    Open source →
  15. 2.2.0 16 Jan 2024
    Release notes
    • Extended make_css_x11_methods.dart to have capability to generate extensions to String class for all the X11/Css color methods from chalk_x11.dart
    • Added chalkstrings_x11.dart class for adding X11 Chalk methods as extensions to String class
    Open source →
  16. 2.0.9 19 Jan 2023
    Release notes
    • Added screenshots to pubspec.yaml
    Open source →
  17. 2.0.8 16 May 2022
    Release notes
    • Changed http link in readme to https
    Open source →
  18. 2.0.7 12 May 2022
    Release notes
    • More example cleanup
    Open source →
  19. 2.0.6 12 May 2022
    Release notes
    • Simplify/cleanup example
    Open source →
  20. 2.0.5 12 May 2022
    Release notes
    • There is always something. Regenerate dart docs
    Open source →
  21. 2.0.4 12 May 2022
    Release notes
    • Use png instead of svg for logo
    Open source →
  22. 2.0.3 12 May 2022
    Release notes
    • Remove html/script from README.md and regenerate dart docs
    Open source →
  23. 2.0.2 12 May 2022
    Release notes
    • Add link to readme to dart docs on timmaffett.github.io/chalkdart_docswhich have full color docs because they don't work on github/pub.dev from README.md
    Open source →
  24. 2.0.1 12 May 2022
    Release notes
    • Remove html/script sorted table from readme and docs - they don't work on github/pub.dev
    Open source →
  25. 2.0.0 12 May 2022
    Release notes
    • Initial public release of chalkdart package.
    Open source →
  26. 1.0.0 12 May 2022
    Release notes
    • Initial version, created by Tim Maffett
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive