Installation
Add Takumi to your project in any JS runtime.
One package, every runtime. Install it the way you'd install anything else.
bun add takumi-jsnpm install takumi-jspnpm add takumi-jsyarn add takumi-jsRuntime quick reference
| Runtime | Import |
|---|---|
| Node.js | import { Renderer } from "takumi-js/node" |
| Bun | import { Renderer } from "takumi-js/node" |
| Cloudflare Workers / Edge | import { Renderer } from "takumi-js/wasm" |
| Browser | import { Renderer } from "takumi-js/wasm" |
| Any (auto-detect) | import { render } from "takumi-js" |
Most projects use the root import {render} from "takumi-js" and let Takumi pick the right
runtime. Reach for the explicit Renderer only when you want to reuse it across calls or load
fonts up front.
Edit on GitHub
Last updated on