Introduction
#
What is PgletPglet ("piglet") is a rich user interface (UI) framework for scripts and programs written in any language. Python, Bash, PowerShell and Node.js are already supported and other languages can be easily added via Pglet protocol.
Pglet renders web UI, so you can easily build web apps with your favorite language. Knowledge of HTML/CSS/JavaScript is not required as you build UI with controls. Pglet controls are built with Fluent UI React to ensure your programs look cool and professional.
#
Hello, world!- Python
- Bash
- PowerShell
- Node.js
Install pglet
module:
Create hello.py
with the following contents:
Run hello.py
with Python 3 and in a new browser window you'll get:

Here is a local page served by an instance of Pglet server started in the background on your computer.
Now let's bring that page to a web, so others can see it!
Add web=True
to pglet.page
call:
Download script with helper Pglet functions:
Create hello.sh
with the following contents:
Run sh hello.sh
and in a new browser window you'll get:

Here is a local page served by an instance of Pglet server started in the background on your computer.
Now let's bring that page to a web, so others can see it!
Add PGLET_WEB=true
before pglet_page
call:
Install pglet
module:
Create hello.ps1
with the following contents:
Run hello.ps1
in a PowerShell session and in a new browser window you'll get:

Here is a local page served by an instance of Pglet server started in the background on your computer.
Now let's bring that page to a web, so others can see it!
Add -Web
parameter to Connect-PgletPage
call:
Install pglet
module:
Create hello.js
with the following contents:
Run node hello.js
and in a new browser window you'll get:

Here is a local page served by an instance of Pglet server started in the background on your computer.
Now let's bring that page to a web, so others can see it!
Add { web: true }
option to pglet.page
call:
This time the page will be created on Pglet hosted service.
#
TutorialsWant to learn how to build the real app? Jump to a tutorial for your language: