Vanilla JS
You can use TegakiEngine directly with plain JavaScript or TypeScript — no framework needed.
Installation
Section titled “Installation”npm install tegaki pnpm add tegaki yarn add tegaki bun add tegaki Basic example
Section titled “Basic example”The engine creates all DOM elements inside the container automatically.
Updating options
Section titled “Updating options”Call update() to change text, font, time, or effects at any time:
Controlled time
Section titled “Controlled time”Pass a number to time and update it on each frame:
Drag the slider to scrub through the animation
Effects
Section titled “Effects”Cleanup
Section titled “Cleanup”Call destroy() when you’re done to remove event listeners and stop the animation loop:
Font registration
Section titled “Font registration”Register bundles globally so you can reference them by name:
Pre-rendering (SSR)
Section titled “Pre-rendering (SSR)”Use TegakiEngine.renderElements() to produce the element tree on the server, then adopt it on the client:
This is what all framework adapters use internally.