npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hangul-trie

v0.1.2

Published

한글을 지원하는 Compressed Trie 자료구조

Readme

hangul-trie

다양한 문자열을 효율적으로 저장하고 검색할 수 있는 Compressed Trie 자료구조입니다.

특히 한글의 경우 초성, 중성, 종성 단위로 분해하여 저장하므로 한글 환경에서 더욱 세밀한 검색과 자동완성을 지원합니다.

본 라이브러리는 es-hangul의 한글 처리 기능을 바탕으로 제작되었습니다.

install

npm i hangul-trie

Usage

Trie 자료구조 인스턴스를 생성하여 사용합니다.

import { Trie } from "hangul-trie";

const trie = new Trie();

문자열을 삽입하거나 제거할 수 있습니다.

trie.insert('오리');
console.log(trie.has('오리')); // true

trie.remove('오리');
console.log(trie.has('오리')); // false

현재 Trie에 삽입되어 있는 문자열 정보를 확인할 수 있습니다.

trie.insert('duck');
trie.insert('오리');

console.log(trie.size); // 2
console.log(trie.getAll()); // ['duck', '오리'];

특정 문자열로부터 완성될 수 있는 문자열들을 확인할 수 있습니다.

trie.insert('오리');
trie.insert('올리브');
trie.insert('옳은');

console.log(trie.autocomplete('올')); // ['오리', '올리브', '옳은']

License

MIT License

Copyright (c) 2026 Donghyeon Lee