Gitpedia

Wha spell simulator

A fan-made browser-based Witch Hat Atelier spell simulator.

From ytnrvdf·Updated May 30, 2026·View on GitHub·

A fan-made browser-based spell drawing simulator inspired by *[Witch Hat Atelier](https://en.wikipedia.org/wiki/Witch_Hat_Atelier)*. The project is written primarily in JavaScript, distributed under the MIT License license, first published in 2026. Key topics include: witch-hat-atelier.

Witch Hat Atelier Spell Simulator

A fan-made browser-based spell drawing simulator inspired by Witch Hat Atelier.

<div align="center"> <img src="./assets/demo.gif" width="720"/> <p>Try here: <a href="https://ytnrvdf.github.io/wha-spell-simulator">https://ytnrvdf.github.io/wha-spell-simulator</a></p> </div>

Fan Project Notice

This is an unofficial fan-made project for learning, experimentation, and appreciation. It is not affiliated with, endorsed by, or sponsored by the official creators, publishers, licensors, or production partners of Witch Hat Atelier.

Witch Hat Atelier and related names, artwork, symbols, and trademarks belong to their respective rights holders. The sigils, signs, spell terminology, and visual effects in this project are partial fan references and interactive interpretations, not official assets or canonical rules.

What It Does

The app turns a freehand spell diagram into parser output, compiled spell behavior, and animated canvas effects.

  • Lets you draw spell diagrams on a paper-like canvas.
  • Detects one enclosing ring and distinguishes prepared versus active spells.
  • Recognizes dictionary-backed primary sigils for fire, water, wind, earth, and light.
  • Recognizes signs that modify direction, levitation, convergence, force, spread, focus, range, duration, and stability.
  • Produces parser diagnostics, GlyphAST, and SpellIR output for inspection.
  • Renders animated element effects from the compiled spell behavior.
  • Shows sample spell layouts in the Dictionary panel as drawing references.
  • Includes reference tools for making, viewing, and testing stroke templates, plus a spell effect lab for visual and animation tuning.

Current Limitations

  • The app supports one enclosing spell ring at a time. Multiple rings are detected as unsupported.
  • The current compiler expects one primary sigil. Multiple primary sigils are detected as unsupported.
  • Recognition is based on local stroke templates, so it works best with clean, deliberate drawings.
  • The recognizer is not perfect. Some valid-looking drawings may fail to match, and some rough drawings may need to be redrawn more clearly.
  • The dictionaries only cover a small fan-made subset of sigils, signs, and observed spell ideas.
  • The visual effects are interpretive canvas animations, not a faithful reproduction of manga or anime effects.
  • Raster images can be used as visual references, but the app cannot recover true stroke order from an image.
  • Closed but invalid diagrams may show diagnostics, but they do not fall back to another element.
  • This is a browser prototype, not a production drawing engine or general symbol recognizer.

Run Locally

Install dependencies:

sh
npm install

Start the Vite dev server:

sh
npm start

Then open:

txt
http://127.0.0.1:5173/

Reference Tools

These tools are available from the app:

txt
/tools/strokeTemplateMaker.html /tools/strokeTemplateViewer.html /tools/sigilSignDetectorLab.html /tools/spellEffectLab.html

Tests

Run the Node test suite:

sh
npm test

Documentation

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from ytnrvdf/wha-spell-simulator via the GitHub API.Last fetched: 5/30/2026