frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A WYSIWYG word processor in Python

https://codeberg.org/chrisecker/miniword
28•chrisecker•2h ago
Hi all,

Finding a good data structure for a word processor is a difficult problem. My notebook diaries on the problem go back 25 years when I was frustrated with using Word for my diploma thesis - it was slow and unstable at that time. I ended up getting pretty hooked on the problem.

Right now I’m taking a professional break and decided to finally use the time to push these ideas further, and build MiniWord — a WYSIWYG word processor in Python.

My goal is to have a native, non-HTML-based editor that stays simple, fast, and is hackable. So far I am focusing on getting the fundamentals right. What is working yet is:

- Real WYSIWYG editing (no HTML layer, no embedded browser) with styles, images and tables.

- Clean, simple file format (human-readable, diff-friendly, git-friendly, AI-friendly)

- Markdown support

- Support for Python-plugins

Things that I found:

- B-tree structures are perfect for holding rich text data

- A simple text-based file format is incredibly useful — you can diff documents, version them, and even process them with AI tools quite naturally

What I’d love feedback on:

- Where do you see real use cases for something like this?

- What would be missing for you to take it seriously as a tool or platform?

- What kinds of plugins or extensions would actually be worth building?

Happy about any thoughts — positive or critical. Greetings

Comments

LoganDark•1h ago
Love to see wxPython!
mttpgn•1h ago
On MacOS, I'm seeing `ModuleNotFoundError: No module named 'miniword.core.utils'` whether I run `python3 -m miniword` from src/miniword/ or from src/miniword/miniword/.
chrisecker•52m ago
My mistake. Now it works (on linux).
avryhof•1h ago
Looks like a nice project.

Looks like you missed a file, though.

ModuleNotFoundError: No module named 'miniword.core.utils'

I don't see it in my local clone of your repo, nor the repo iteslf.

chrisecker•55m ago
My apologies. I added the missing file.
avryhof•31m ago
Thanks. I got it to run on my work laptop that runs Windows. Selections don't work, and cairo spits out a bunch of errors during the screen redraws.

I'll give it a shot on my own Ubuntu laptop.

chjail-11•1h ago
I adore anything that avoids using a browser. <3
kubb•39m ago
I thought the data structure part is solved:

https://en.wikipedia.org/wiki/Rope_(data_structure)

chrisecker•22m ago
Ropes are for strings. In a word processor you need text with formatting, and structures as tables, images and math.
fractallyte•35m ago
One feature missing from almost every mainstream word processor: REVEAL CODES! (https://kb.corel.com/en/127364)

This is a famous "killer" feature from WordPerfect: the ability to view and edit the low-level formatting for a document. It's invaluable for fixing weird bugs.

However, it works only because WP uses the "text-stream" paradigm, where a document comprises a linear stream of text with formatting codes (Bold, Font, Hard Return, etc.) embedded directly at the point at which they're applied.

In contrast, Word uses the "nested containers" model (characters inside words, words inside paragraphs, paragraphs inside sections, etc.), where this feature can't be replicated.

I didn't look closely at your code, but just thought to mention this feature.

vishnuharidas•33m ago
This took me down the nostalgic memory lane of the planet-source-code days. There were hundreds of such projects in Visual Basic, Delphi, C/C++/MFC etc., and text editors and paint clones were the most popular projects.
analogpixel•33m ago
at this point, a WYSIWYG just seems like a huge step backwards from just using markdown. I love having access to my files in a standard text format this is super easy to parse, and not being locked into whatever weird format that WYSIWYG decides to store it in.

I still don't understand why people still use ~~Microsoft Word~~Copilot document writer , I think they have gotten into some weird mindset that their documents require all this weird unnecessary formatting to look "official"

httpsterio•6m ago
Markdown without formatting isn't usually the nicest to read imo. I actually appreciate a well laid out and formatted document myself.

Also wysiwyg doesn't mean it can't be back and forwards compatible with markdown, it might just mean that it's a markdown editor gui with a preview.

__d•3m ago
This is great!

Curious about the choice of toolkit: what led you to wxPython?

1D Chess

https://rowan441.github.io/1dchess/chess.html
460•burnt-resistor•5h ago•94 comments

Chimpanzees in Uganda locked in vicious 'civil war', say researchers

https://www.bbc.com/news/articles/cr71lkzv49po
86•neversaydie•1h ago•50 comments

WireGuard makes new Windows release following Microsoft signing resolution

https://lists.zx2c4.com/pipermail/wireguard/2026-April/009561.html
302•zx2c4•5h ago•93 comments

Industrial design files for Keychron keyboards and mice

https://github.com/Keychron/Keychron-Keyboards-Hardware-Design
210•stingraycharles•4h ago•65 comments

Watgo – A WebAssembly Toolkit for Go

https://eli.thegreenplace.net/2026/watgo-a-webassembly-toolkit-for-go/
40•ibobev•2h ago•3 comments

JSON Formatter Chrome Plugin Now Closed and Injecting Adware

https://github.com/callumlocke/json-formatter
67•jkl5xx•2h ago•31 comments

Helium Is Hard to Replace

https://www.construction-physics.com/p/helium-is-hard-to-replace
196•JumpCrisscross•5h ago•120 comments

Show HN: FluidCAD – Parametric CAD with JavaScript

https://fluidcad.io/
55•maouida•2h ago•14 comments

What is RISC-V and why it matters to Canonical

https://ubuntu.com/blog/risc-v-101-what-is-it-and-what-does-it-mean-for-canonical
44•fork-bomber•2d ago•10 comments

CPU-Z and HWMonitor compromised

https://www.theregister.com/2026/04/10/cpuid_site_hijacked/
191•pashadee•7h ago•78 comments

Launch HN: Twill.ai (YC S25) – Delegate to cloud agents, get back PRs

https://twill.ai
28•danoandco•4h ago•25 comments

AI assistance when contributing to the Linux kernel

https://github.com/torvalds/linux/blob/master/Documentation/process/coding-assistants.rst
73•hmokiguess•2h ago•57 comments

Bluesky April 2026 Outage Post-Mortem

https://pckt.blog/b/jcalabro/april-2026-outage-post-mortem-219ebg2
108•jcalabro•5h ago•43 comments

Bild AI (YC W25) Is Hiring a Founding Product Engineer

https://www.ycombinator.com/companies/bild-ai/jobs/dDMaxVN-founding-product-engineer
1•rooppal•4h ago

You can't trust macOS Privacy and Security settings

https://eclecticlight.co/2026/04/10/why-you-cant-trust-privacy-security/
378•zdw•5h ago•133 comments

Clojure on Fennel Part One: Persistent Data Structures

https://andreyor.st/posts/2026-04-07-clojure-on-fennel-part-one-persistent-data-structures/
104•roxolotl•3d ago•7 comments

DOJ Wants to Scrap Watergate-Era Rule That Makes Presidential Records Public

https://theintercept.com/2026/04/09/trump-documents-library-presidential-records-act/
80•tlhunter•1h ago•10 comments

A security scanner as fast as a linter – written in Rust

https://github.com/peaktwilight/foxguard
13•peaktwilight•2d ago•2 comments

Show HN: A WYSIWYG word processor in Python

https://codeberg.org/chrisecker/miniword
28•chrisecker•2h ago•14 comments

I've Seen a Thousand OpenClaw Deploys. Here's the Truth

https://blog.nishantsoni.com/p/ive-seen-a-thousand-openclaw-deploys
23•sonink•2h ago•10 comments

Combining spicy foods with mint boosts anti-inflammatory effects 100x or more

https://scitechdaily.com/this-spice-combo-could-slash-inflammation-hundreds-of-times-more-effecti...
20•joeax•41m ago•2 comments

The best seat in town

https://www.torched.la/the-best-seat-in-town/
17•NaOH•1d ago•8 comments

The difficulty of making sure your website is broken

https://letsencrypt.org/2026/04/10/test-sites.html
42•mcpherrinm•4h ago•16 comments

Mysteries of Dropbox: Testing of a Distributed Sync Service (2016) [pdf]

https://www.cis.upenn.edu/~bcpierce/papers/mysteriesofdropbox.pdf
95•JackeJR•3d ago•22 comments

FBI used iPhone notification data to retrieve deleted Signal messages

https://9to5mac.com/2026/04/09/fbi-used-iphone-notification-data-to-retrieve-deleted-signal-messa...
528•01-_-•9h ago•269 comments

DOJ Top Antitrust Litigators Exit After Ticketmaster Accord

https://www.bloomberg.com/news/articles/2026-04-08/doj-top-antitrust-litigators-exit-after-ticket...
27•1vuio0pswjnm7•1h ago•5 comments

HBO Obtains DMCA Subpoena to Unmask 'Euphoria' Spoiler Account on X

https://torrentfreak.com/hbo-obtains-dmca-subpoena-to-unmask-euphoria-spoiler-account-on-x/
75•speckx•3h ago•45 comments

A compelling title that is cryptic enough to get you to take action on it

https://ericwbailey.website/published/a-compelling-title-that-is-cryptic-enough-to-get-you-to-tak...
113•mooreds•4h ago•68 comments

Penguin 'Toxicologists' Find PFAS Chemicals in Remote Patagonia

https://www.ucdavis.edu/health/news/penguin-toxicologists-find-pfas-chemicals-remote-patagonia
134•giuliomagnifico•14h ago•63 comments

A new trick brings stability to quantum operations

https://ethz.ch/en/news-and-events/eth-news/news/2026/04/a-new-trick-brings-stability-to-quantum-...
220•joko42•17h ago•47 comments