Show HN: LudvigEditor – A lightweight Python alternative to Electron editors
3 points
7 hours ago
| 1 comment
| github.com
| HN
Show HN: LudvigEditor – A lightweight Python alternative to Electron editors

A code editor built on Python 3.14 + PyQt6 + QtWebEngine. It uses Monaco Editor (the same engine as VS Code) without Electron.

Key features: built-in Git GUI, extension system (Python/JS), integrated terminal, support for 20+ languages.

Technical Focus: Seeking feedback on integrating PyQt6 with QtWebEngine for creating native desktop applications with web components. Licensed under GPLv3.

Code: https://github.com/Ludvig2457Ultra/LudvigEditor

ludvig2457
7 hours ago
[-]
Author here. This project started as an experiment to see if we could build a fully-featured desktop code editor using Python and PyQt6 while avoiding Electron.

The most challenging and interesting part has been creating a robust bridge between the Python backend and the Monaco Editor (JavaScript) running inside QtWebEngine. I'm particularly interested in discussing the architecture choices, performance considerations, and any pitfalls others have encountered with similar native/webview hybrid approaches.

The code is GPLv3, and there are several "good first issue" tasks marked for anyone who wants to dive in.

reply