{"_id":"@automann/maple-mono-cn","_rev":"3-d46a35bcde51af24a3a42fc02d3ced81","name":"@automann/maple-mono-cn","dist-tags":{"latest":"7.9.2"},"versions":{"7.9.0":{"name":"@automann/maple-mono-cn","version":"7.9.0","keywords":["font","webfont","chinese","cjk","unicode-range","maple-mono"],"license":"OFL-1.1","_id":"@automann/maple-mono-cn@7.9.0","maintainers":[{"name":"automann","email":"testbuy.ai@gmail.com"}],"homepage":"https://github.com/automann/maple-mono-cn#readme","bugs":{"url":"https://github.com/automann/maple-mono-cn/issues"},"bin":{"maple-mono-cn-copy":"bin/copy.mjs"},"dist":{"shasum":"ab07a142027c09c63663e373aa206f4410b7bbac","tarball":"https://registry.npmjs.org/@automann/maple-mono-cn/-/maple-mono-cn-7.9.0.tgz","fileCount":248,"integrity":"sha512-VMOvtijIVWfdbE995ZIZPo5KzczR+nWfhwx06bW1TnmL0/tl2J4+FCrMCcKZ0ySmg4pYlVxsjLkwv+ppjg79Bw==","signatures":[{"sig":"MEUCIQCTDXHLZhBPJw+GtbwERIei/uNO+nK2m+9Kxz6F4ahSBQIgPl5gJf+pFxHdbQsU6iZHsnjU47dhQ6LsOs+Ti4CGH90=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9774033},"pnpm":{"ignoredBuiltDependencies":["cn-font-split","koffi","protobufjs"]},"type":"module","style":"./dist/regular.css","engines":{"node":">=20"},"exports":{".":"./dist/regular.css","./og":"./dist/og/MapleMono-Regular.ttf","./regular.css":"./dist/regular.css","./package.json":"./package.json","./og/MapleMono-Regular.ttf":"./dist/og/MapleMono-Regular.ttf"},"gitHead":"fc14c534b939a6de2d552954bc21818bcfbdb4cb","scripts":{"test":"node --test tests/*.test.mjs","build":"node scripts/build.mjs","check":"pnpm run test && npm pack --dry-run --ignore-scripts","clean":"node scripts/clean.mjs","prepack":"pnpm run test"},"_npmUser":{"name":"automann","email":"testbuy.ai@gmail.com"},"repository":{"url":"git+https://github.com/automann/maple-mono-cn.git","type":"git"},"_npmVersion":"11.12.1","description":"Unofficial, reproducible webfont packaging of Maple Mono CN Regular","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"24.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.2","devDependencies":{"fontkit":"2.0.4","extract-zip":"2.0.1","cn-font-split":"7.4.3"},"_npmOperationalInternal":{"tmp":"tmp/maple-mono-cn_7.9.0_1784092081616_0.24408009452544754","host":"s3://npm-registry-packages-npm-production"}},"7.9.1":{"name":"@automann/maple-mono-cn","version":"7.9.1","keywords":["font","webfont","chinese","cjk","unicode-range","maple-mono"],"license":"OFL-1.1","_id":"@automann/maple-mono-cn@7.9.1","maintainers":[{"name":"automann","email":"testbuy.ai@gmail.com"}],"homepage":"https://github.com/automann/maple-mono-cn#readme","bugs":{"url":"https://github.com/automann/maple-mono-cn/issues"},"bin":{"maple-mono-cn-copy":"bin/copy.mjs"},"dist":{"shasum":"3b57fcda50153f800bca1176dd5ba640d042dcd7","tarball":"https://registry.npmjs.org/@automann/maple-mono-cn/-/maple-mono-cn-7.9.1.tgz","fileCount":1192,"integrity":"sha512-4YssXcvJThISsOWMkAiDEG/W2gF4PYKuQTxNJSzjOZq/FBrNiZzrHWPJQY8zwwwzXTvmF4w7+VLYexUnj8/MOA==","signatures":[{"sig":"MEQCIBGW0W80xA32JGRHaMg0ygiXbuB36NhwQ7QEYtg/ioDxAiBYAsFRyDyEl0rr1hcV9ZYKfYdkFhr/kbvzkpQSffa+sA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47023960},"pnpm":{"ignoredBuiltDependencies":["cn-font-split","koffi","protobufjs"]},"type":"module","style":"./dist/regular.css","engines":{"node":">=20"},"exports":{".":"./dist/regular.css","./og":"./dist/og/MapleMono-Regular.ttf","./100.css":"./dist/thin.css","./200.css":"./dist/extra-light.css","./300.css":"./dist/light.css","./400.css":"./dist/regular.css","./500.css":"./dist/medium.css","./thin.css":"./dist/thin.css","./light.css":"./dist/light.css","./medium.css":"./dist/medium.css","./regular.css":"./dist/regular.css","./package.json":"./package.json","./extra-light.css":"./dist/extra-light.css","./og/MapleMono-Regular.ttf":"./dist/og/MapleMono-Regular.ttf"},"gitHead":"83b0b7e8bd76cdb2219b4df344efd6fdaa2eb0a7","scripts":{"test":"node --test tests/*.test.mjs","build":"node scripts/build.mjs","check":"pnpm run test && npm pack --dry-run --ignore-scripts","clean":"node scripts/clean.mjs","prepack":"pnpm run test"},"_npmUser":{"name":"automann","email":"testbuy.ai@gmail.com"},"repository":{"url":"git+https://github.com/automann/maple-mono-cn.git","type":"git"},"_npmVersion":"11.12.1","description":"Unofficial, reproducible webfont packaging of Maple Mono CN","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"24.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.2","devDependencies":{"fontkit":"2.0.4","extract-zip":"2.0.1","cn-font-split":"7.4.3"},"_npmOperationalInternal":{"tmp":"tmp/maple-mono-cn_7.9.1_1784191242010_0.6340924008659514","host":"s3://npm-registry-packages-npm-production"}},"7.9.2":{"name":"@automann/maple-mono-cn","version":"7.9.2","description":"Unofficial, reproducible webfont packaging of Maple Mono CN","license":"OFL-1.1","type":"module","style":"./dist/regular.css","bin":{"maple-mono-cn-copy":"bin/copy.mjs"},"exports":{".":"./dist/regular.css","./thin.css":"./dist/thin.css","./100.css":"./dist/thin.css","./extra-light.css":"./dist/extra-light.css","./200.css":"./dist/extra-light.css","./light.css":"./dist/light.css","./300.css":"./dist/light.css","./regular.css":"./dist/regular.css","./400.css":"./dist/regular.css","./medium.css":"./dist/medium.css","./500.css":"./dist/medium.css","./og":"./dist/og/MapleMono-Regular.ttf","./og-cn":{"types":"./dist/og-cn.d.ts","default":"./dist/og-cn.mjs"},"./og-cn-font":"./dist/og/MapleMono-CN-Regular.ttf","./og/MapleMono-Regular.ttf":"./dist/og/MapleMono-Regular.ttf","./package.json":"./package.json"},"sideEffects":["**/*.css"],"scripts":{"build":"node scripts/build.mjs","clean":"node scripts/clean.mjs","test":"node --test tests/*.test.mjs","check":"pnpm run test && npm pack --dry-run --ignore-scripts","prepack":"pnpm run test"},"engines":{"node":">=20"},"packageManager":"pnpm@10.12.2","pnpm":{"ignoredBuiltDependencies":["cn-font-split","koffi","protobufjs"]},"repository":{"type":"git","url":"git+https://github.com/automann/maple-mono-cn.git"},"bugs":{"url":"https://github.com/automann/maple-mono-cn/issues"},"homepage":"https://github.com/automann/maple-mono-cn#readme","publishConfig":{"access":"public"},"keywords":["font","webfont","chinese","cjk","unicode-range","maple-mono"],"devDependencies":{"cn-font-split":"7.4.3","extract-zip":"2.0.1","fontkit":"2.0.4"},"gitHead":"f4c4d91343255f265b6125d68d5666463e2889c0","_id":"@automann/maple-mono-cn@7.9.2","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-eEq6Hv5ftprDyxSHgiA/kJsz1bYkP+DIVI/To6TBOX8WXhLIWpeYG/WXiZvGTucT82JtTqHZezyqfDcwFx5jdw==","shasum":"20fe5f90e2a12cfdc1e79cfb1dc32ba6592b2150","tarball":"https://registry.npmjs.org/@automann/maple-mono-cn/-/maple-mono-cn-7.9.2.tgz","fileCount":1195,"unpackedSize":65534647,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD4z2XL7WwXKNKMv+TiFdykSffrdib+xnD75AZWWT35AQIgPlAxd491wramN1EqpJGc91Kq2ek0wSJvMAByXp/GtrA="}]},"_npmUser":{"name":"automann","email":"testbuy.ai@gmail.com"},"directories":{},"maintainers":[{"name":"automann","email":"testbuy.ai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/maple-mono-cn_7.9.2_1784206769105_0.27288171401171835"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T05:08:01.521Z","modified":"2026-07-16T12:59:30.037Z","7.9.0":"2026-07-15T05:08:01.942Z","7.9.1":"2026-07-16T08:40:42.791Z","7.9.2":"2026-07-16T12:59:29.893Z"},"bugs":{"url":"https://github.com/automann/maple-mono-cn/issues"},"license":"OFL-1.1","homepage":"https://github.com/automann/maple-mono-cn#readme","keywords":["font","webfont","chinese","cjk","unicode-range","maple-mono"],"repository":{"type":"git","url":"git+https://github.com/automann/maple-mono-cn.git"},"description":"Unofficial, reproducible webfont packaging of Maple Mono CN","maintainers":[{"name":"automann","email":"testbuy.ai@gmail.com"}],"readme":"# @automann/maple-mono-cn\n\nUnofficial, reproducible webfont packaging of\n[Maple Mono CN](https://github.com/subframe7536/maple-font). This package is not affiliated with or\nendorsed by the Maple Mono project.\n\nThe package tracks Maple Mono 7.9 and contains five upright static weights:\n\n| Weight | CSS entry |\n| --- | --- |\n| Thin 100 | `@automann/maple-mono-cn/thin.css` |\n| ExtraLight 200 | `@automann/maple-mono-cn/extra-light.css` |\n| Light 300 | `@automann/maple-mono-cn/light.css` |\n| Regular 400 | `@automann/maple-mono-cn/regular.css` |\n| Medium 500 | `@automann/maple-mono-cn/medium.css` |\n\nThe package contains:\n\n- complete Maple Mono CN character coverage, split into WOFF2 files selected by `unicode-range`;\n- one official non-CN `MapleMono-Regular.ttf` for build-time OG image renderers such as Satori;\n- one complete CN Regular font exposed through a cached Node loader for build-time OG rendering;\n- no Nerd Font glyphs;\n- no runtime CDN dependency.\n\n## Install\n\n```sh\npnpm add @automann/maple-mono-cn\n```\n\nImport the browser font once from your global stylesheet:\n\n```css\n@import \"@automann/maple-mono-cn/regular.css\";\n\n:root {\n  --font-mono: \"Maple Mono CN\", ui-monospace, monospace;\n}\n```\n\nThe package root also resolves to Regular 400. Numeric aliases (`100.css`, `200.css`, `300.css`,\n`400.css`, and `500.css`) are\navailable for tooling that selects fonts by weight. Import only the weights the site uses: each CSS\nentry references a separate WOFF2 directory, so importing Regular does not bundle the other four\nweights.\n\nThe browser downloads only the WOFF2 ranges needed by the text on the current page. Do not preload\nthe complete font set.\n\nFor an OG image renderer:\n\n```ts\nimport MapleMono from \"@automann/maple-mono-cn/og\";\n```\n\nFor complete Chinese glyph coverage, use the Node-only loader instead of importing the large TTF\ninto a JavaScript build chunk:\n\n```ts\nimport { loadMapleMonoCnRegular } from \"@automann/maple-mono-cn/og-cn\";\n\nconst mapleMonoCn = await loadMapleMonoCnRegular();\n```\n\nThe loader reads and caches the official CN Regular font on first use. It is intended for static\nbuilds and other Node.js renderers, not browser bundles.\n\n## Giscus and other iframes\n\nCSS loaded inside a third-party iframe cannot resolve an npm package at runtime. Copy `dist/` to a\npublic directory during your application build:\n\n```sh\npnpm exec maple-mono-cn-copy public/fonts/maple-mono-cn\n```\n\nThen reference `/fonts/maple-mono-cn/regular.css` by URL from the iframe theme. The command copies\nonly Regular 400, its WOFF2 files, and the OFL text by default; relative font URLs remain\nself-hosted. Select additional weights explicitly when needed:\n\n```sh\npnpm exec maple-mono-cn-copy public/fonts/maple-mono-cn --weights 300,400,500\n```\n\n## Rebuild\n\nRequires Node.js 20 or newer, pnpm, and network access for the first build:\n\n```sh\npnpm install\npnpm build\npnpm test\n```\n\nThe build downloads the two official Maple Mono 7.9 archives, verifies their pinned SHA-256 hashes,\nextracts the five required upright fonts, and regenerates `dist/`. Downloads are cached under\n`.cache/upstream/` and are not published.\n\n## License\n\nThe fonts and derived webfont files are distributed under the SIL Open Font License 1.1. See\n[LICENSE](./LICENSE) and [FONTLOG.md](./FONTLOG.md). Maple Mono is copyright the Maple Mono Project\nAuthors. The package is free and must not be represented as an official upstream release.\n","readmeFilename":"README.md"}