-
If you're interested in node-compatible canvas implementations, there are several:
* canvaskit-wasm, from the skia project. I don't think it's gpu-accelerated: https://github.com/google/skia/tree/main/modules/canvaskit/n...
* @napi-rs/canvas. This is the fastest binding: https://github.com/Brooooooklyn/canvas?tab=readme-ov-file#pe...
* node-canvas. Uses Cairo instead of Skia: https://github.com/Automattic/node-canvas
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
https://windowjs.org is a very similar concept -- it wraps Skia and exposes it as the Canvas API, but also embeds v8 for a very small runtime instead of using Node.
It was my first open-source project, released about 3 years ago.
I had plans to also expose WebGL, audio, etc and make it a viable platform for Javascript-based games on desktop.
Life and other projects happened instead, and development was discontinued. Happy to see this project also making Canvas accessible outside the browser!
-
SWIG
SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
I understand that a Skia Canvas should work with almost any programming language with just bindings [1]. I don't see anything in particular with Node.
[1] https://www.swig.org/
-
jimp
An image processing library written entirely in JavaScript for Node, with zero external or native dependencies.
How is it different from jimp?
https://jimp-dev.github.io/jimp/
Maybe there are some killer features?
-
I'm not claiming I implemented everything from scratch. Since it was a Mac OS X Cocoa app, it would just call the APIs available on that platform, like Apple's original Canvas implementation in WebKit.
Also since this was a video application running custom scripts written specifically for that host app, there wasn't a big worry about exact compatibility with any other Canvas-using code.
Anyway, here's the old code that doesn't look like there's anything interesting going on:
https://github.com/pojala/lacqit/blob/main/Lacqit/LQJSBridge...
Looks like I misremembered — it's using Cairo rather than CoreGraphics. I don't remember why that was.
-
How would you render FRED charts with e.g. headless node to generate PNG (or SVG) images for og:image , schema:image , and schema.org/thumbnailUrl so that shared URLs to FRED charts have a PNG (or SVG) image in their social share cards?
OpenGraph: https://ogp.me/
schema:thumbnailUrl: https://schema.org/thumbnailUrl
-
Impeller - Flutter’s rendering library that replaces Skia on iOS and Android - is working on a C API: https://github.com/flutter/engine/blob/main/impeller/toolkit...
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
I made something similar for node/web, not so complete, but good.
Check the docs and examples
https://github.com/pedroth/tela.js
-
canvas
High performance skia binding to Node.js. Zero system dependencies and pure npm packages without any postinstall scripts nor node-gyp. (by Brooooooklyn)
If you're interested in node-compatible canvas implementations, there are several:
* canvaskit-wasm, from the skia project. I don't think it's gpu-accelerated: https://github.com/google/skia/tree/main/modules/canvaskit/n...
* @napi-rs/canvas. This is the fastest binding: https://github.com/Brooooooklyn/canvas?tab=readme-ov-file#pe...
* node-canvas. Uses Cairo instead of Skia: https://github.com/Automattic/node-canvas
-
If you're interested in node-compatible canvas implementations, there are several:
* canvaskit-wasm, from the skia project. I don't think it's gpu-accelerated: https://github.com/google/skia/tree/main/modules/canvaskit/n...
* @napi-rs/canvas. This is the fastest binding: https://github.com/Brooooooklyn/canvas?tab=readme-ov-file#pe...
* node-canvas. Uses Cairo instead of Skia: https://github.com/Automattic/node-canvas
Related posts
-
What sort of software would a person use for data visualization? I looked up GraphQL and see how it fits, but how do I legit turn that into a nice, interactive graphic?
-
Ask HN: What do you use to create diagrams?
-
Datoviz: High-Performance GPU Scientific Visualization Library with Vulkan
-
Ask HN: Who Are Your Favorite Photography and Generative Coding Artists?
-
Art Blocks and the Future of Open Source with Blockchain