r/PowerShell • u/MadBoyEvo • 23d ago
Script Sharing ConsoleMonster - For those living in Terminal
I've something new for you today. I've rebuild my old ConsoleMonster module that used to be Spectre+Termina.GUI wrapper into completely new PowerShell/.NET library. I never really thought of bringing it back as PwshSpectreConsole was doing quite a good job, however I had a larger need for some of my new projects so here it is.
This starts with a different idea of having:
- Everyday use with 1 cmdlet when you just want to chill in terminal (Enable-ConsoleFormatting)
- Monster when you want to give your modules/libraries new ways to build TUI
PowerShell is the first-citizen here and a lot of power went into it to make daily life of living in console much nicer. It supports both PowerShell 5.1 (yes all my modules will continue to do so), and PowerShell 7.4+
- Here's the website for it: https://consolemonster.dev/ with all the demos, docs, widgets and all fancy stuff
- Here's the source code: https://github.com/EvotecIT/ConsoleMonster (MIT)
ConsoleMonster 2.X is a Codex & Claude baby. I don't code since a year now so everything I do is AI.
The website has all sort of demos: https://consolemonster.dev/demos
Each demo has PowerShell code, C# code and C# Fluent depending on what you're building and how you want it.
The library also uses my other projects to deliver charting & markdown in terminal:
- https://chartforgex.com (and sources: https://github.com/EvotecIT/ChartForgeX ) to support charts, diagrams and mermaid inside the console.
- https://officeimo.com (and sources https://github.com/EvotecIT/OfficeIMO ) for Markdown content
The module/library has really fancy features like console recordings and things that could be used in demos/websites and PowerPoint. The demos on the website are all dog-fooding so all the recordings you see there are real.
There are no external dependencies (aside my own mentioned above - opt-in) to it. It's interactive, with mouse support, thread safe and of course multi-platform. It has auto-fallbacks depending on what terminal you're usin so macos, linux, and windows all should work just fine.
I'm sure there are bugs and issues - but that's why there is Issues/PR section on GitHub. I've made sure the documentation is quite large and easy to follow, but if something is not clear or too complex let me know. We can always improve API.
Happy to hear your thoughts