Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tegaki

> 前端框架
Open source

Handwriting animation for the web. Supports any font or text.

3.0K stars0 likes0 views
WebsiteGitHub

About

Handwriting animation for the web. Supports any font or text.

Tegaki

Handwriting animation for any font

Tegaki (手書き) turns any font into animated handwriting. No manual path authoring. No native dependencies. Just pick a font.


Quick Start

1. Install

bash
npm install tegaki

2. Use (React example)

typescript
import { TegakiRenderer } from 'tegaki';
import caveat from 'tegaki/fonts/caveat';

function App() {
  return (
    <TegakiRenderer font={caveat} style={{ fontSize: '48px' }}>
      Hello World
    </TegakiRenderer>
  );
}

That's it. The text draws itself stroke by stroke with natural timing.

Command Line

Don't want to wire up a component? Generate an animated handwriting SVG straight from your terminal — nothing to install:

bash
npx tegaki "Tegaki is awesome"

This writes a self-drawing, looping tegaki-is-awesome.svg — drop it into a README, a slide, or any page. Pick a font, mode, size, or color:

bash
npx tegaki "Hello World" --font tangerine --mode once -o hello.svg
npx tegaki "ABC" --stagger 80% --size 140 --color "#222"

--mode is loop (repeats forever, the default), once (draws itself a single time), or static (finished artwork). Run npx tegaki --help for every option and --list-fonts for the bundled fonts. The CLI emits SVG only — for PNG, GIF, or WebM use the interactive studio.

Framework Support

Tegaki works with all major frameworks:

typescript
import { TegakiRenderer } from 'tegaki/react';   // React
import { TegakiRenderer } from 'tegaki/svelte';  // Svelte
import { TegakiRenderer } from 'tegaki/vue';     // Vue
import { TegakiRenderer } from 'tegaki/solid';   // SolidJS
astro
---
import TegakiRenderer from 'tegaki/astro';       // Astro
---
typescript
import { TegakiEngine } from 'tegaki/core';      // Vanilla JS
import { registerTegakiElement } from 'tegaki/wc'; // Web Components

Built-in Fonts

Several handwriting fonts are bundled and ready to use:

  • Caveat — tegaki/fonts/caveat (Latin)
  • Italianno — tegaki/fonts/italianno (Latin)
  • Tangerine — tegaki/fonts/tangerine (Latin)
  • Parisienne — tegaki/fonts/parisienne (Latin)
  • Suez One — tegaki/fonts/suez-one (Hebrew + Latin)
  • Amiri — tegaki/fonts/amiri (Arabic + Latin)
  • Tillana — tegaki/fonts/tillana (Devanagari + Latin)
  • Klee One — tegaki/fonts/klee-one (Japanese: kana + Kyōiku grade 1–2 kanji + Latin)
  • Nanum Pen Script — tegaki/fonts/nanum-pen-script (Korean: Hangul syllables + jamo + Latin)
  • Atma — tegaki/fonts/atma (Bengali + Latin)

For other fonts, use the interactive studio to create a custom bundle.

Documentation

Visit gkurt.com/tegaki for full documentation:

  • Getting Started
  • Framework Guides (React, Svelte, Vue, SolidJS, Astro, Web Components, Vanilla)
  • Generating Fonts
  • API Reference

Integrations

  • Sli.dev - Create presentations using markdown. See Tegaki integration example
  • Remotion - Create videos programmatically with React. See Tegaki integration example

License

MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptanimationcalligraphycursivefont

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架