Skip to main content

MonsterUI

MonsterUI is a UI framework for FastHTML for building beautiful web interfaces with minimal code. It combines the simplicity of Python with the power of Tailwind. Perfect for data scientists, ML engineers, and developers who want to quickly turn their Python code into polished web apps without the complexity of traditional UI frameworks. Follows semantic HTML patterns when possible.

MonsterUI adds the following Tailwind-based libraries Franken UI and DaisyUI to FastHTML, as well as Python's Mistletoe for Markdown, HighlightJS for code highlighting, and Katex for latex support.

Getting Started

Installation

To install this library, uses

pip install MonsterUI

Getting Started

TLDR

Run python file.py on this to start:

from fasthtml.common import *
from monsterui.all import *

# Choose a theme color (blue, green, red, etc)
hdrs = Theme.blue.headers()

# Create your app with the theme
app, rt = fast_app(hdrs=hdrs)

@rt
def index():
    socials = (('github','https://github.com/AnswerDotAI/MonsterUI'),
               ('twitter','https://twitter.com/isaac_flath/'),
               ('linkedin','https://www.linkedin.com/in/isaacflath/'))
    return Titled("Your First App",
        Card(
            H1("Welcome!"),
            P("Your first MonsterUI app", cls=TextPresets.muted_sm),
            P("I'm excited to see what you build with MonsterUI!"),
            footer=DivLAligned(*[UkIconLink(icon,href=url) for icon,url in socials])))

serve()

LLM context files

Using LLMs for development is a best practice way to get started and explore. While LLMs cannot code for you, they can be helpful assistants. You must check, refactor, test, and vet any code any LLM generates for you - but they are helpful productivity tools. Take a look inside the llms.txt file to see links to particularly useful context files!

In addition you can add /md (for markdown) to a url to get a markdown representation and /rmd for rendered markdown representation (nice for looking to see what would be put into context.

Step by Step

To get started, check out:

  1. Start by importing the modules as follows:
from fasthtml.common import *
from monsterui.all import *
  1. Instantiate the app with the MonsterUI headers
app = FastHTML(hdrs=Theme.blue.headers())

# Alternatively, using the fast_app method
app, rt = fast_app(hdrs=Theme.slate.headers())

The color option can be any of the theme options available out of the box

katex and highlightjs are not included by default. To include them set katex=True or highlightjs=True when calling .headers. (i.e. Theme.slate.headers(katex=True))*

From here, you can explore the API Reference & examples to see how to implement the components. You can also check out these demo videos to as a quick start guide:

More resources and improvements to the documentation will be added here soon!

Metadata

Release files for monsterui 1.0.48

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monsterui 1.0.48
File Size Uploaded Provenance Actions
monsterui-1.0.48.tar.gz 37.9 kB Without provenance Details for monsterui-1.0.48.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monsterui 1.0.48
File Interpreter ABI Platform Actions
monsterui-1.0.48-py3-none-any.whl Python 3 none any Details for monsterui-1.0.48-py3-none-any.whl

Total release size: 74.9 kB

Release files / monsterui-1.0.48.tar.gz

Download URL monsterui-1.0.48.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ff9d9684168fa64d573238ca5e3c3d86c98bddaeadad41ff9852399289f5ff24
BLAKE2b-256 checksum
How to use checksums
c6ecc596993a4851b1d853147a092707e1f350fdb4b97c383e765199f64f47b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / monsterui-1.0.48-py3-none-any.whl

Download URL monsterui-1.0.48-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
450bca79ae6f0f4b0a926ea0144a809fb456da06624dafee941cbad642910f13
BLAKE2b-256 checksum
How to use checksums
a2abf76c7c1c3fa90559598cdd5d8724bdd621c7749a6be7ae17a3b32708e054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for monsterui 1.0.48

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.48 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page