r/fastHTML

40 archived posts · Aug 2024 – Nov 2025

Random post


u/maxdatamax•

Could you clarify why most MonsterUI/FastHTML documentation focuses on toy examples rather than demonstrating real-world production implementations? While the introductory tutorials are helpful, I'm particularly interested in understanding the real world working example of MonsterUI or fastHTML.
Ideally open source.

51


u/madrasminor•

I’ve been tinkering with a new webapp template called Lego . think of it like snapping together clean, reusable blocks for rapid development. It’s built with fastHTML and MonsterUI (via Franken), blending a domain-driven approach with component-based pages, all wrapped in that slick, concise fast.ai coding style. My goal? A no-fuss, opinionated starting point for projects that still feels flexible. It’s early days and it's pretty raw still, but I’d love your feedback! I’ve got plans to beef it up with more features over the next few weeks and even use it to spin up a production site as a side project to really put it thr

31



u/tprickett•

I've been searching like crazy for documentation regarding building HTML elements within fastHTML but strangely, not finding anything. For example, I want to build a button using the Button class. About the best I can find is and example of the Button class being used, but not providing any definition of said class:

Button(
    action_text,
    cls="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors"
    )

I'm after documentation showing the possible attributes for Button (or any other element I'm trying to build) and the default order of those attributes.

30

u/gmmarcus•

Guys, I currently use Claude Code CLI / Sonnet 4.5 for coding. Too often, especially when in deep troubleshooting or when we are in the zone, we hit the session limit and i just think its wrong for Anthropic to want us to pay more, etc when the weekly limit is not yet exhausted.

I have tried gemini cli / gemini pro 2.5 but its just not there yet for whatever i had asked it to do.

I am thinking of trying Kimi K2 + Kim CLI or any other combo ( GLM 4.6 + something ).

Who is a reliable Kimi K2 provider currently with acceptable latency ? Moonshot has Kim CLI. But i am open to trying other terminal CLIs as well.

Pls share your combos.

p.s : this is for python web app development ( f

20

I have my fastHTML app which makes GET requests to routes and displays plotly charts on the UI. Can I get suggestions on writing test cases for that? Which libraries to use? I've never written unit tests for http requests.

20


u/rambleon2•

Hi, l'm new to fastHTML, how would I convert the following radio button list from Svelte:

<script>
        const categoryChange = () => {
            showImage.set(false);
            textareaContent.set('');
            isImageLoaded.set(false);
            isDisabled = true;
            isUploadDisabled = true;
            inputValue = '';
        }
        let isUploaderVisible = false; // Controls visibility of the uploader
</script>
            <div class="radio-buttons">
                <label>
                    <input
                        type="radio"
                        name="cat"
                        va
22

So I've been using FastHTML to create some little side projects and I've been loving it. As I've gone through the documentation, I'm having a hard time deciding between initializing projects with FastHTML() and fast_app(). Is there a consensus on which on is better to work with?

I only really gravitated towards FastHTML() because route definition is similar to FastAPI and Flask

20


u/tprickett•

I just discovered fastHTML and am wondering about running it locally on an Android phone. After a cursory search it looks like I can run Python on Android using Termux (a command line terminal within Android). That should allow running the Python server.

Is there a better approach to use?

20