> For AI agents: the complete documentation index is available at https://canary.gukhanmun.org/llms.txt, the full documentation bundle is available at https://canary.gukhanmun.org/llms-full.txt.

# Module: @gukhanmun/wasm

WebAssembly implementation of the Gukhanmun hanja-to-hangul converter.

Provides the same `{@link load}` / `{@link Gukhanmun}` contract as
`@gukhanmun/napi` but runs in any WebAssembly-capable environment—browsers,
Deno 2.0+, Node 20+, and Bun 1.0+.

The WASM module is initialised lazily on the first `load()` call and
cached for subsequent calls.  Dictionary data (FST format) must be
supplied explicitly via `{@link GukhanmunOptions.dictionaries}`.

## Example

```ts
import { load } from "@gukhanmun/wasm";
import { stdictFst } from "@gukhanmun/stdict-fst";

const g = await load({ dictionaries: [await stdictFst()] });
console.log(g.convert("漢字를 한글로"));  // "한자를 한글로"
```

## Classes

- [GukhanmunError](https://canary.gukhanmun.org/api/js/classes/_gukhanmun_wasm.GukhanmunError.md)

## Functions

- [load](https://canary.gukhanmun.org/api/js/functions/_gukhanmun_wasm.load.md)
- [loadDictionary](https://canary.gukhanmun.org/api/js/functions/_gukhanmun_wasm.loadDictionary.md)

## References

### AnnotationGranularity

Re-exports [AnnotationGranularity](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.AnnotationGranularity.md)

***

### ContextWindow

Re-exports [ContextWindow](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.ContextWindow.md)

***

### CustomPunctuationProfile

Re-exports [CustomPunctuationProfile](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.CustomPunctuationProfile.md)

***

### DelimiterStyle

Re-exports [DelimiterStyle](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.DelimiterStyle.md)

***

### DictionaryEntry

Re-exports [DictionaryEntry](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.DictionaryEntry.md)

***

### DictionarySource

Re-exports [DictionarySource](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.DictionarySource.md)

***

### Directives

Re-exports [Directives](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.Directives.md)

***

### ErrorCode

Re-exports [ErrorCode](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.ErrorCode.md)

***

### FileDictionarySource

Re-exports [FileDictionarySource](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.FileDictionarySource.md)

***

### Format

Re-exports [Format](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.Format.md)

***

### Gukhanmun

Re-exports [Gukhanmun](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.Gukhanmun.md)

***

### GukhanmunFactory

Re-exports [GukhanmunFactory](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.GukhanmunFactory.md)

***

### GukhanmunLoadOptions

Re-exports [GukhanmunLoadOptions](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.GukhanmunLoadOptions.md)

***

### GukhanmunOptions

Re-exports [GukhanmunOptions](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.GukhanmunOptions.md)

***

### HanjaVariantSet

Re-exports [HanjaVariantSet](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.HanjaVariantSet.md)

***

### HomophoneDetection

Re-exports [HomophoneDetection](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.HomophoneDetection.md)

***

### HtmlOptions

Re-exports [HtmlOptions](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.HtmlOptions.md)

***

### LoadedDictionary

Re-exports [LoadedDictionary](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.LoadedDictionary.md)

***

### MapDictionarySource

Re-exports [MapDictionarySource](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.MapDictionarySource.md)

***

### MediaType

Re-exports [MediaType](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.MediaType.md)

***

### NumeralStrategy

Re-exports [NumeralStrategy](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.NumeralStrategy.md)

***

### OriginalGloss

Re-exports [OriginalGloss](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.OriginalGloss.md)

***

### Preset

Re-exports [Preset](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.Preset.md)

***

### PunctuationPreset

Re-exports [PunctuationPreset](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.PunctuationPreset.md)

***

### Recovery

Re-exports [Recovery](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.Recovery.md)

***

### RenderMode

Re-exports [RenderMode](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.RenderMode.md)

***

### ResolvedPunctuationProfile

Re-exports [ResolvedPunctuationProfile](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.ResolvedPunctuationProfile.md)

***

### Segmentation

Re-exports [Segmentation](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.Segmentation.md)

***

### SourcePolicy

Re-exports [SourcePolicy](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.SourcePolicy.md)

***

### SourceRole

Re-exports [SourceRole](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.SourceRole.md)

***

### SpaceAfter

Re-exports [SpaceAfter](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.SpaceAfter.md)

***

### StopStyle

Re-exports [StopStyle](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.StopStyle.md)
