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
25•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•43m 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•29m ago
My mistake. Now it works (on linux).
avryhof•42m 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•33m ago
My apologies. I added the missing file.
avryhof•8m 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•40m ago
I adore anything that avoids using a browser. <3
kubb•17m ago
I thought the data structure part is solved:

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

fractallyte•12m 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•11m 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•10m 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"

Abstraction is the only thing that has ever scaled

https://toto.tech/docs/abstraction
1•afunk•58s ago•0 comments

The acyclic e-graph: Cranelift's mid-end optimizer

https://cfallin.org/blog/2026/04/09/aegraph/
1•fanf2•1m ago•0 comments

Open Source card game cuttle.cards has its world championship Saturday at 1pm ET

1•aleph_one•5m ago•0 comments

Claude Mythos: 'It's a PR Scam' – Ed Zitron [video]

https://www.youtube.com/watch?v=RojN74P1lDI
1•xbmcuser•7m ago•0 comments

Apollo 8, Artemis 1 and 2 Orbit Comparison [video]

https://www.youtube.com/watch?v=PNQ7MoL7erI
1•nixass•8m ago•0 comments

Building C/C++ libraries for HarmonyOS with vcpkg

https://www.qt.io/blog/building-libraries-for-harmonyos-with-vcpkg
1•molinwow•8m ago•0 comments

ESA Launches 7 New Missions to Supercharge Space Data Transfer

https://www.universetoday.com/articles/esa-launches-7-new-missions-to-supercharge-space-data-tran...
1•rbanffy•11m ago•0 comments

Microsoft says Windows 11's bugs are all "resolved"

https://www.windowscentral.com/microsoft/windows-11/microsoft-says-windows-11-bugs-are-resolved
4•tencentshill•14m ago•0 comments

Show HN: I built a tool to bootstrap VLESS and REALITY over SSH (with rollback)

1•insany•14m ago•0 comments

Show HN: Django app for email-based learning platforms

https://github.com/AvaCodeSolutions/django-email-learning
2•payamnj•14m ago•0 comments

Scanners are too late for AI-driven actions

1•pinfloyd•15m ago•0 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...
7•joeax•18m ago•1 comments

AIs diagnose people with obviously fake eye disease "bixonimania"

https://twitter.com/HedgieMarkets/status/2042430442448548273
2•josephcsible•19m ago•0 comments

Anti-Distillation for Employee Skills

https://github.com/leilei926524-tech/anti-distill
2•mooreds•19m ago•0 comments

From Coal Tip to Clean Energy: Turning UK Coal Mines into Renewable Powerhouses

https://bylinetimes.com/2026/04/09/from-coal-tip-to-clean-energy-the-uk-projects-turning-former-m...
2•DamonHD•21m ago•0 comments

Lemlist Outage Postmortem

https://lempire.notion.site/lemlist-Outage-Apr-8-9-Customer-Impact-Report-33ddfb675ef480e39627ecf...
2•warent•22m ago•0 comments

Nono – Runtime safety infrastructure for AI agents

https://nono.sh
2•jossclimb•23m ago•0 comments

Time Brings Order to the Universe

https://nautil.us/time-brings-order-to-the-universe-1279584
2•rbanffy•23m ago•0 comments

Plans to possibly retire the big-endian PowerPC/POWER platforms

https://chimera-linux.org/news/2026/03/retiring-powerpc.html
2•PaulHoule•26m ago•0 comments

We're running out of benchmarks to upper bound AI capabilities

https://www.lesswrong.com/posts/gfkJp8Mr9sBm83Rcz/we-re-actually-running-out-of-benchmarks-to-upp...
4•gmays•26m ago•0 comments

Molotov cocktail thrown at home of OpenAI chief executive Sam Altman

https://www.ft.com/content/46ec2fa5-834d-4e49-81ef-6fb736b7e81d
6•fuzzfactor•27m ago•0 comments

Coming Home May Be the Most Dangerous Part of Artemis II

https://www.nytimes.com/2026/04/09/science/nasa-artemis-ii-earth-return-heat-shield.html
4•bookofjoe•27m ago•1 comments

EU AI Act compliance layer for Claude Managed Agents (MCP, open source)

https://docs.geiant.com/integrations/claude-managed-agents/
2•camilo_ayerbe•28m ago•0 comments

Artemis II Flight Day 10: Crew Completes Final Burn Before Splashdown

https://www.nasa.gov/blogs/missions/2026/04/10/artemis-ii-flight-day-10-crew-completes-final-burn...
4•thinkingemote•28m ago•0 comments

Phone's Deal with the Devil [video]

https://www.youtube.com/watch?v=NG-lLt5X3Rs
2•pinkmuffinere•28m ago•0 comments

We mapped 153 gaps in science using 5 parallel AI research agents

https://github.com/fainir/science-gaps
2•fainir•29m ago•0 comments

The Gigawatt Delusion: Why Measuring AI in Power Capacity Is a Category Error

https://aiafterhours.substack.com/p/the-gigawatt-delusion-why-silicon
2•shwetankk•30m ago•0 comments

AgentLint: Real-time guardrails for Claude Code (open source)

https://github.com/mauhpr/agentlint
3•maupr92•31m ago•0 comments

Exploring the Power of the Internet Gopher (1993)

https://archive.org/details/uiucnet69293univ
2•ecliptik•32m ago•0 comments

A long-term memory system that turns agent trajectories into reusable guidelines

https://huggingface.co/blog/ibm-research/altk-evolve
2•allthingsapi•32m ago•1 comments