MCPcopy Index your code
hub / github.com/antfu/handle

github.com/antfu/handle @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
55 symbols 151 edges 47 files 0 documented · 0% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

汉兜 Handle

A Chinese Hanzi variation of Wordle. 汉字 Wordle.

handle.antfu.me

请勿剧透!PLEASE DO NOT SPOIL

Note 汉兜的答案库至 2023 年 2 月 28 日为止将不再更新;后序的题目将从过往一年的题目中随机抽取。仓库以 MIT 协议开放,在注明原始仓库与作者的条件下,欢迎 Fork 与修改。感谢大家的对汉兜的支持与喜爱。

Development Setup

  • Insall Node.js >=v16 and pnpm
  • Run pnpm install
  • Run pnpm dev and visit http://localhost:4444

成语勘误

成语数据库储存于

二者互不包含。

如遇到成语缺失或发音错误,请编辑 ./src/data/new.txt 文件,一行一词,完成后执行 pnpm run update 命令,脚本会自动抓取 汉典 的数据更新成语数据库。如遇汉典中也缺失的成语,其会留存在 new.txt 中,需要手动判断与添加。

Tech Stack

License

MIT License © 2021-PRESENT Anthony Fu

Extension points exported contracts — how you extend this code

Report (Interface)
(no doc)
shared.ts
GlobalComponents (Interface)
(no doc)
components.d.ts
ParsedPinyin (Interface)
(no doc)
packages/tools/src/types.ts
ParsedChar (Interface)
(no doc)
src/logic/types.ts
MatchResult (Interface)
(no doc)
src/logic/types.ts
TriesMeta (Interface)
(no doc)
src/logic/types.ts

Core symbols most depended-on inside this repo

prepare
called by 15
src/answers/list.ts
seedShuffle
called by 13
src/answers/utils.ts
numberToHanzi
called by 13
src/logic/utils.ts
toSimplified
called by 7
packages/tools/src/convert.ts
parseWord
called by 7
src/logic/utils.ts
parsePinyin
called by 6
packages/tools/src/pinyin/parse.ts
parseChar
called by 6
src/logic/utils.ts
filterNonChineseChars
called by 5
packages/tools/src/hanzi/filter.ts

Shape

Function 49
Interface 6

Languages

TypeScript100%

Modules by API surface

src/logic/utils.ts9 symbols
src/storage.ts6 symbols
tools/update.ts5 symbols
src/state.ts3 symbols
src/logic/types.ts3 symbols
packages/tools/src/shuangpin/constants.ts3 symbols
src/logic/idioms.ts2 symbols
src/logic/check.ts2 symbols
packages/tools/src/zhuyin/convert.ts2 symbols
packages/tools/src/pinyin/styles.ts2 symbols
packages/tools/src/convert.ts2 symbols
tools/zdict.ts1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add handle \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact