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

@raineblog/mkdocs-fontkit

v1.0.2

Published

A static analysis font kit builder. Host Adobe Fonts (Typekit), Google Fonts, and custom fonts locally with single-command build and minification.

Readme

MkDocs Fontkit

Note: This project is maintained primarily for personal use. While bug reports and corrections are welcome, new feature requests may not be implemented as I have limited bandwidth for maintenance. Thank you for scanning this corner of the open source world!

MkDocs Fontkit is a high-performance, static analysis-based font builder designed for privacy-conscious and speed-optimized web projects. It enables you to self-host fonts from Adobe Fonts (Typekit) and Google Fonts without relying on client-side JS or external CDNs, and provides tools to optimize large custom font files (like partial CJK fonts) through splitting.

License Version

✨ Features

  • 🛡️ Privacy & Performance: Eliminates third-party tracking and reduces layout shifts by serving all fonts locally.
  • 🧠 Static Analysis for Typekit: Reverses Typekit's dynamic loading logic to generate stable WOFF2 URLs and CSS using Bloom filters and hash generation—no Headless Chrome (Puppeteer/Playwright) required.
  • 📦 Google Fonts Downloader: Automatically fetches CSS and font binaries from Google Fonts, rewriting paths for local usage.
  • ⚡ Smart CJK Font Splitting: Integrates cn-font-split to chunk large font files (e.g., Chinese/Japanese/Korean) into smaller pieces for faster initial load times.
  • 🎨 Custom CSS Bundling: Automatically compiles and minifies a custom.css alongside your font definitions.
  • 🚀 Production Ready: Outputs optimized fonts.min.css and fonts.css ready for immediate deployment.

🛠️ Installation

You can install this tool globally via npm or use it directly from the source.

via NPM

npm install -g @raineblog/mkdocs-fontkit

via Git (Recommended for development)

git clone https://github.com/raineblog/mkdocs-fontkit.git
cd mkdocs-fontkit
npm install

⚙️ Configuration

Create a fontkit.config.json file in the root of your project to define your font sources:

{
  "typekit": ["your-kit-id"],
  "google": [
    "Inter:[email protected]",
    "Fira+Code"
  ],
  "offline": [
    {
      "file": "source-han-serif.otf",
      "family": "Source Han Serif",
      "weight": "400",
      "style": "normal"
    }
  ]
}

Configuration Options

| Option | Type | Description | | :--- | :--- | :--- | | typekit | string[] | Array of Adobe Fonts (Typekit) Kit IDs. | | google | string[] | Array of Google Font families (supports standard API query format). | | offline | object[] | Array of local font configurations for splitting/processing. |

🚀 Usage

Run the build command to generate your font kit:

fontkit
# OR if running from source
npm run build

Output

The build process will generate a dist/ directory containing:

  • fonts.css: Complete, uncompressed CSS definitions.
  • fonts.min.css: Minified CSS for production use.
  • custom.css / custom.min.css: Processed custom styles (if present).
  • fonts/: Directory containing all downloaded and split font assets.

🤝 Contributing

This project is a personal utility that I've open-sourced in hopes it might be useful to others.

  • Bug Reports: Very welcome! If something breaks, please open an issue.
  • Pull Requests: Fixes for bugs or documentation errors are appreciated.
  • Feature Requests: Generally, I am not looking to add new features unless they align strictly with my personal use cases. This helps me keep the project maintainable.

🤖 AI Generation Disclosure

This README and recent project updates were generated by Antigravity (Google DeepMind) in collaboration with the project owner. The content has been reviewed to ensure accuracy and compliance with the project's goals.