> 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/napi

Node.js native addon (napi-rs) implementation of the Gukhanmun
hanja-to-hangul converter.

Provides the same `{@link load}` / `{@link Gukhanmun}` contract as
`@gukhanmun/wasm` but uses a precompiled native addon for maximum
throughput.  Node.js 20+ is required.  The native addon binary
(`gukhanmun_napi.node`) must be present in the package directory; build it
locally with `mise run napi-build`.

The `load()` factory is asynchronous for API uniformity with the WASM
backend, but the native addon is synchronously ready—dictionary data is
the only async part.

## Example

```ts
import { load } from "@gukhanmun/napi";
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_napi.GukhanmunError.md)

## Interfaces

- [CustomPunctuationProfile](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.CustomPunctuationProfile.md)
- [DelimiterStyle](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.DelimiterStyle.md)
- [DictionaryEntry](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.DictionaryEntry.md)
- [Directives](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.Directives.md)
- [FileDictionarySource](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.FileDictionarySource.md)
- [Gukhanmun](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.Gukhanmun.md)
- [GukhanmunFactory](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.GukhanmunFactory.md)
- [GukhanmunOptions](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.GukhanmunOptions.md)
- [HtmlOptions](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.HtmlOptions.md)
- [LoadedDictionary](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.LoadedDictionary.md)
- [MapDictionarySource](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.MapDictionarySource.md)
- [ResolvedPunctuationProfile](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.ResolvedPunctuationProfile.md)
- [StopStyle](https://canary.gukhanmun.org/api/js/interfaces/_gukhanmun_napi.StopStyle.md)

## Type Aliases

- [AnnotationGranularity](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.AnnotationGranularity.md)
- [ContextWindow](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.ContextWindow.md)
- [DictionarySource](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.DictionarySource.md)
- [ErrorCode](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.ErrorCode.md)
- [Format](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.Format.md)
- [GukhanmunLoadOptions](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.GukhanmunLoadOptions.md)
- [HanjaVariantSet](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.HanjaVariantSet.md)
- [HomophoneDetection](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.HomophoneDetection.md)
- [MediaType](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.MediaType.md)
- [NumeralStrategy](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.NumeralStrategy.md)
- [OriginalGloss](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.OriginalGloss.md)
- [Preset](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.Preset.md)
- [PunctuationPreset](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.PunctuationPreset.md)
- [Recovery](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.Recovery.md)
- [RenderMode](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.RenderMode.md)
- [Segmentation](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.Segmentation.md)
- [SourcePolicy](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.SourcePolicy.md)
- [SourceRole](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.SourceRole.md)
- [SpaceAfter](https://canary.gukhanmun.org/api/js/types/_gukhanmun_napi.SpaceAfter.md)

## Functions

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