selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Chinese Webfont Project logo

Self-host Chinese Webfont Project

1.2.1

Free Chinese web font library with font splitting

ReleaseOpen SourceMIT
Updated4 months ago
LanguageJavaScript
Setup difficultyModerate
Stars
1 485
Install with NPM

What is Chinese Webfont Project?

Chinese Webfont Project (中文网字计划) is an open-source collection of free commercially-usable Chinese web fonts. It solves the challenge of large CJK character sets by using font splitting technology to break fonts into small static chunks that can be loaded on-demand via CDN. The project provides a web interface to browse fonts, get CSS links for direct use, and an online font splitter tool. Developers can add their own fonts by placing source files in the packages folder and running the build process, which automatically packages and groups fonts. The built fonts are deployed to ImageKit.io CDN with CORS enabled. The project also integrates Google Fonts lookup and provides NPM packages for build-time font optimization (cn-font-split, vite-plugin-font).

Should you self-host Chinese Webfont Project?

Chinese Webfont Project scores 52/100 on selfhost.directory (how scoring works) and ranks #10 of 15 in Asset Management. It has 1 485 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. It is MIT-licensed and written mostly in JavaScript.

Its closest alternative on selfhost.directory is Snipe-IT (77/100, 15 104 stars). It scores higher overall, so compare the two before you pick. See Chinese Webfont Project vs Snipe-IT side by side.

Features

  • Build-time font optimization
  • CSS font loading
  • Font splitting
  • Free CDN hosting
  • Google Fonts integration
  • NPM package publishing
  • Online font preview
  • Online font splitter tool

Chinese Webfont Project README

How to install Chinese Webfont Project

Install Chinese Webfont Project with NPM

npm i # 安装项目 npm run new dyh # dyh 是字体的中文拼音的第一个英文组合

完成后将会在 packages 文件夹自动模板创建一个 dyh 文件夹

然后你在 packages/dyh/fonts 文件夹中放入您的字体文件

pnpm build --single=dyh # 尝试打包文件

Requires Node.js 18+

More in Asset Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…