Recent

Author Topic: Lightweight HTML/CSS rendering engine written in pure Free Pascal  (Read 5915 times)

dsiders

  • Hero Member
  • *****
  • Posts: 1594
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #15 on: March 17, 2026, 03:23:55 pm »
In that case, qt6 only, I'm not willing to change bindings for Qt5 since it is EOL, but anyway, QSvgRenderer can be added into it's own unit, so won't kill current lazarus users so they must rebuild C bindings. In a few years when distros update bindings then such unit can be merged to the qt62.pas

QSvgRenderer would certainly be useful for Shell controls too.

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 210
    • http://www.lazarus.freepascal.org
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #16 on: March 17, 2026, 04:18:36 pm »
Impressive!

I just implemented flex and grid layout for Fresnel, so I know how much work and trouble it is. Please make Pixie open source, so Pixie and Fresnel can learn from each other. The main difference is that Fresnel uses components as elements, editable in the Lazarus designer.



Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1353
  • Professional amateur ;-P
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #17 on: March 17, 2026, 06:03:09 pm »
Hey Wallaby,

I'm considering open-sourcing it and wanted to see if there's interest in the community first.

Please, PLEASE, PLEASE open source this !!!

I've been looking forward for something better than TFrameView for so long that I kinda lost hope. Then YOU come along and present what looks like a very, VERY professional looking piece of software that is just bloody AWESOME!!!!!!!

Thank you so, so very much in case you do decide to open source it!!

Cheers,
Gus

kirchfritz

  • Jr. Member
  • **
  • Posts: 71
  • WIN11 LAZ 2.2.4 FPC 3.2.2
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #18 on: March 17, 2026, 07:47:06 pm »
Please open source it!

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #19 on: March 17, 2026, 10:33:21 pm »
Would there be interest in seeing this released as open source?

+1

It looks impressive. Well done.

JD
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

speter

  • Hero Member
  • *****
  • Posts: 522
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #20 on: March 17, 2026, 10:58:50 pm »
Quote
Would there be interest in seeing this released as open source?
Yes please. I think it is a safe bet that there would be lots of interest.

cheers
S.
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

szlbz

  • Jr. Member
  • **
  • Posts: 52
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #21 on: March 17, 2026, 11:57:05 pm »
It would be even better if it could be open sourced

egsuh

  • Hero Member
  • *****
  • Posts: 1775
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #22 on: March 18, 2026, 05:23:59 am »
I love this.

But doesn't HTML/CSS rendering engine convert HTML/CSS to Lazarus LFM files?

As many are saying THtmlViewer is not sufficient, I'd like to recommend TWebView4Delphi to simply display web pages within Lazarus application. The most important thing is that this requires only one file, webview2loader.dll, to distribute. It can display all recent web pages.


Wallaby

  • Guest
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #23 on: March 18, 2026, 07:08:37 am »
Thanks! To clarify — Pixie has nothing to do with LFM or converting HTML to Lazarus forms. It's a rendering engine: you give it HTML, it parses, lays out, and paints the result directly onto a canvas. The output is pixels on screen, not Lazarus components.

Regarding WebView2 — it's a solid option if you need a full browser, but it solves a different problem:

Cross-platform. WebView2 is Windows-only. Pixie runs identically on Windows, Linux, and macOS from a single codebase.

Zero dependencies. Even "just one DLL" is still a dependency — and WebView2 also requires the Evergreen Runtime on the target machine. Pixie compiles into your executable. Nothing to ship, nothing to version-check.

No out-of-process complexity. WebView2 runs Chromium in a separate process, bringing IPC overhead, a user data folder, async message passing, and a whole class of bugs outside your control — Edge updates, runtime mismatches, sandbox issues, enterprise GPOs blocking it, antivirus flagging the broker process. Pixie renders in-process, in your app's paint cycle.

Lightweight. An embedded browser pulls in a JS engine, networking stack, and media pipeline to display what's often just styled text and tables. Pixie does that at a fraction of the footprint.

Native integration. Pixie renders via Direct2D/Cairo/CoreGraphics, so you get proper DPI scaling and theme integration without the embedded-foreign-window issues (focus, z-order, transparency, resize flicker).

If you need to load arbitrary websites with JavaScript — use a WebView. If you want HTML/CSS as a lightweight way to render rich content in a native app, that's what Pixie is for.

440bx

  • Hero Member
  • *****
  • Posts: 6345
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #24 on: March 18, 2026, 07:18:23 am »
If you want HTML/CSS as a lightweight way to render rich content in a native app, that's what Pixie is for.
Absolutely no doubt that for HTML/CSS only rendering it is a significantly superior solution than any other that implements a full browser.  Not to mention its "no dependencies" and portability.

Aside from that, so far, unsurprisingly, it seems unanimous that making it open source would be a very welcome move.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

Wallaby

  • Guest
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #25 on: March 18, 2026, 07:20:57 am »
Cool, I'll publish it shortly! Just need to clean it up a little, add a demo and organise the files. Stay tuned :-)

440bx

  • Hero Member
  • *****
  • Posts: 6345
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #26 on: March 18, 2026, 07:24:35 am »
Cool, I'll publish it shortly! Just need to clean it up a little, add a demo and organise the files. Stay tuned :-)
Sounds great! :)

I'm sure I'm not the only one who is going to be very pleased.  Great news, thank you!.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

egsuh

  • Hero Member
  • *****
  • Posts: 1775
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #27 on: March 18, 2026, 07:29:08 am »
Quote
Thanks! To clarify — Pixie has nothing to do with LFM or converting HTML to Lazarus forms. It's a rendering engine: you give it HTML, it parses, lays out, and paints the result directly onto a canvas. The output is pixels on screen, not Lazarus components.

I see. I misunderstood. This is a great tool anyway.

440bx

  • Hero Member
  • *****
  • Posts: 6345
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #28 on: March 18, 2026, 08:06:00 am »
@Wallaby,

Just a suggestion... now that you've decided to make Pixie open source, I believe hosting the source code at the SoftPerfect site (instead of github or some other repo), would provide greater exposure to SoftPerfect's products and free utilities.

On a different note, your company has a number of interesting products.  I think the utility that redirects a browser's cache to a RAM disk is a particularly good idea.  Browsers are IMO the most performance damaging apps. They eventually use gigabytes of disk space in hundreds of directories, they never clean up after themselves.   Because of that, I wrote a utility to get rid of the browser's cache (chrome only, because that's what I use) and other temp files that are always left laying around.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

Wallaby

  • Guest
Re: Lightweight HTML/CSS rendering engine written in pure Free Pascal
« Reply #29 on: March 18, 2026, 08:18:55 am »
Thanks for the suggestion! I think GitHub is the gold standard for open source though — it makes it much easier for everyone to submit issues, pull requests, and contribute. Hosting it elsewhere would be convenient for me but inconvenient for everyone else, and that's the wrong trade-off for an open-source project.

I'd rather use GitHub and just add a couple of links to my website, which you are of course welcome to browse and maybe even pick up some tools if you find them useful :)

And yes, the RAM Disk + browser cache combo works really well — browsers are notorious for thrashing the disk with gigabytes of temp files across hundreds of directories. Redirecting that to a RAM disk keeps things fast and clean without any manual maintenance.

 

TinyPortal © 2005-2018