@takumi-rs/core
v1.1.2
Published
Native Node.js bindings for the Takumi Rust image rendering engine.
Downloads
371,502
Maintainers
Readme
@takumi-rs/core
Native Node.js bindings for Takumi, an image rendering engine written in Rust.
This package ships the high-performance N-API runtime used by Takumi on Node.js environments.
Install
npm install @takumi-rs/coreUsage
import { Renderer } from "@takumi-rs/core";
const renderer = new Renderer();
const png = await renderer.render(
{
type: "Element",
tag: "div",
children: [{ type: "Text", value: "Hello from Takumi" }],
},
{
width: 1200,
height: 630,
},
);For JSX and HTML conversion helpers, use @takumi-rs/helpers.
Documentation
- Integration guide: https://takumi.kane.tw/docs/integration
- API reference: https://takumi.kane.tw/docs/api-reference
- Repository: https://github.com/kane50613/takumi
If you are looking for WebAssembly bindings, take a look at the @takumi-rs/wasm package.
License
MIT or Apache-2.0
