by c-smile · 7y ago · 0 comments
I am thinking of making Sciter as UI module for NodeJs.
1. Strip down version of Sciter - only HTML/CSS/Graphics modules. It will use JavaScript of NodeJs (either V8 or Chackra).
2. That version will be Open Source in the same way as NodeJs itself.
The goals are:
1. To provide more optimal alternative to Electron - faster and far less resource consuming.
2. Modular and reusable implementation. Example: Sciter contains my own Graphics C++ library that wraps various backends: Direct2D/Write, CoreGraphics, Skia, Cairo, GDI+. Such Graphics module library alone can be useful in other projects. Same is for HTML/CSS modules.
Not sure if all that is interesting for someone. If it is - please let me know.
As of PDF generation: Skia backend is capable of PDF generation but that functionality is not exposed to script yet.
Another option: Windows supports PDF print drivers so you can just print on it to get PDF.
I will say open source or not is not an issue for most. Few look at source and rare modify it. I just want an easy API.
Check minimal integration sample: https://github.com/c-smile/sciter-sdk/blob/master/demos/mini...