r/PowerShell • • Feb 04 '20

Pode - PowerShell Web Server

I've been meaning to post about this on here for a while, so thought a new release would be a good time!

Pode is a cross-platform pure PowerShell Web Server - even HTTPS. There's also support for template engines in views, and even Azure Functions and AWS Lambda support.

Pode lets you build fully custom REST APIs and Websites, with support for Routing, Middleware, Sessions, CSRF, Authentication, and even Web Sockets.

You can run Pode on Windows or Linux, as a Windows/Linux service, in a Docker container, or even on a Raspberry Pi!

The latest release, v1.5.0, now adds OpenAPI and Swagger/ReDoc support.

You can find Pode on [Github] with a full list of features, and the documentation here.

I know some people frown at the idea of PowerShell as a Web Server, but for DevOps Automation and Dashboards it can be quite a useful tool to have! :)

116 Upvotes

30 comments sorted by

View all comments

Show parent comments

6

u/ipreferanothername Feb 05 '20

how does it compare, then, to powershell universal dashboard? are you familiar with that one?

4

u/Badgerati Feb 05 '20

I am aware of UD, yes. To me they're somewhat different; Pode is completely built in PowerShell with no dependencies, where as UD is built on top of Kestrel and ASP.NET Core - making it somewhat bloated.

You can accomplish pretty much the same things, just that Pode is completely free and more lightweight. Kestrel does make UD faster, and having ASP.NET does make having features like SignalR far easier; but then Pode's whole point was "how much can you actually do using nothing but powershell?".

I haven't directly used UD, but from what I've seen it's far more tailored towards Dashboards and Portals with UD styling. Pode can do the same, but is tailored to building any kind of website that can be completely customised - even a social network if you were crazy enough!

0

u/[deleted] Feb 05 '20

[deleted]

3

u/Badgerati Feb 05 '20

Except that .NET Standard comes with PowerShell, and you need to install the whole of ASP.NET Core just to use Kestrel...

This relies on only what comes with PowerShell. ASP.NET is not a part of PowerShell nor .NET Standard. So no, this doesn't have the same dependencies at all.

0

u/[deleted] Feb 05 '20

[deleted]

4

u/Badgerati Feb 05 '20

ASP.NET is a part of .NET Framework. ASP.NET Core is not a part of .NET Core, and with PowerShell 6 and 7 that's a big thing. UD requires ASP.NET Core to work, on top of what PowerShell normally comes with. Yes its module is bundled with the dlls, but that makes it far bigger.

For Pode, you install just PowerShell and it just works. No extra installs, no ASP.NET Core. No extra dlls bundled with the module.