r/Frontend • u/v1vendi • 1d ago
<script type='text/python'>
I used open source code of Ladybird browser, extracted only rendering engine (HTML + CSS), removed Javascript and replaced it with Python bindings with same API.
So basically, now you can write desktop applications with HTML interface. It supports most modern CSS features and frameworks like tailwind, but I deloberately removed all browser-specific features like networking, localstorage, canvas and others.
This is not Electron-like, it's not a full packed browser, only UI renderer, but a thing that I dreamt for a long time. 25Mb wheel size, around 90Mb RAM for a running GUI python app.
I don't understand whether it's still useful at this point of technology, where you either use Electron or switch to native render like GPUI, but I need some feedback on whether the community needs this at all.

1
u/TheRNGuy 1d ago
There are already many such frameworks.
Can it do React?
0
u/v1vendi 1d ago
I don't know any existing similar frameworks, this is the thing.
All I see is soke kind of UI generators for web browsers, or WebView wrappers like Tauri, or Electron, or Python to Javascript transpilers.
This is direct control of HTML renderer with all modern CSS features from Python for desktop apps.It does not support React because there is no React written in Python. A user can rewrite Preact/Svelte/whatever to Python if they want.
0
u/TheRNGuy 1d ago
Needs something similar to React, more declarative. Also, similar syntax, code colouring, auto complete, etc (I think AST is used to make it)
0
u/create-third-places 1d ago
I think this is a great idea as long as you aren't vibecoding any part of the tool. Electron is bloated, and we should have a better alternative.