Add daily Japanese kanji learning to any website with a single line of code. Free, lightweight, zero dependencies.
Copy this one line into your HTML — that's it:
<script src="https://kanjiflash.pages.dev/widget/kanji-widget.js"></script> The widget appears wherever you place the script tag. No CSS to import, no init code, no API keys. It just works.
A new kanji appears every day, automatically selected from 101 JLPT N5 kanji.
Add data- attributes to the script tag to customize:
| Attribute | Values | Default | Description |
|---|---|---|---|
data-theme | dark / light | dark | Widget color scheme |
data-size | compact / normal / large | normal | Widget size preset |
data-id | Any string | Auto-generated | Container element ID |
<!-- Light theme for light-background sites -->
<script src="https://kanjiflash.pages.dev/widget/kanji-widget.js" data-theme="light"></script> <!-- Compact widget for sidebars -->
<script src="https://kanjiflash.pages.dev/widget/kanji-widget.js" data-size="compact"></script> <!-- Large widget with light theme -->
<script src="https://kanjiflash.pages.dev/widget/kanji-widget.js" data-theme="light" data-size="large"></script> Yes, 100% free. MIT licensed. No tracking, no cookies, no API keys, no usage limits. Use it on as many sites as you want.
Only to load the script file itself from our CDN (Cloudflare Pages). After that, everything runs locally — all 101 kanji are embedded in the script. No API calls, no analytics, no tracking pixels.
Yes! The daily kanji is deterministic based on UTC date. Everyone sees the same kanji on the same day, regardless of timezone or website.
Absolutely. The MIT license allows use in personal, educational, and commercial projects. Attribution (the "Powered by Kanji Flash" link) is appreciated but not required.
All 101 JLPT N5 kanji — the complete beginner-level set. Each kanji includes on'yomi (Chinese reading), kun'yomi (Japanese reading), English meaning, and an example word.