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

fontsin

v1.0.1

Published

Effortless Google Fonts integration with just class names — no CDN, no hassle.

Downloads

8

Readme

NPM Version NPM Downloads

🎨 FontsIn

A simple TypeScript utility that lets you use Google Fonts via class names — no need to copy-paste <link> tags or configure @font-face rules manually.


✨ Why FontsIn?

✔ Skip Google Fonts copy-paste
✔ Use fonts directly via CSS class names
✔ Lightweight, easy to integrate
✔ Built in TypeScript for safety and DX
✔ Works seamlessly with Vite, React, Next.js, Vue, etc.
✔ Great for design systems or component libraries
✔ Custom font support coming soon!


📦 Installation

npm install fontsin

🚀 Usage

import { fonts } from 'fontsin';
<!-- In your HTML/JSX -->
<p class="robotoCondensed font-bold italic">Bold Italic Roboto Condensed</p>
<p class="montserrat font-semibold">Montserrat</p>

🧩 Available Font Classes

Use any of these classes directly in your HTML/CSS/JSX:

| Font Name | Class Name | Example Usage | |-----------------------|--------------------|----------------| | Bungee | bunge-orange | <p class="bunge-orange">Text</p> | | Roboto Condensed | robotoCondensed | <p class="robotoCondensed font-bold italic">Text</p> | | Montserrat | montserrat | <p class="montserrat font-semibold">Text</p> | | Open Sans | openSans | <p class="openSans font-light">Text</p> | | Lato | lato | <p class="lato font-bold">Text</p> | | Poppins | poppins | <p class="poppins font-medium">Text</p> | | Raleway | raleway | <p class="raleway font-extralight">Text</p> | | Nunito | nunito | <p class="nunito italic">Text</p> | | Playfair Display | playfairDisplay | <p class="playfairDisplay font-semibold italic">Text</p> | | Merriweather | merriweather | <p class="merriweather font-bold">Text</p> | | Oswald | oswald | <p class="oswald font-light">Text</p> | | Source Sans Pro | sourceSansPro | <p class="sourceSansPro font-thin">Text</p> | | Ubuntu | ubuntu | <p class="ubuntu font-bold">Text</p> | | Dancing Script | dancingScript | <p class="dancingScript">Text</p> | | Pacifico | pacifico | <p class="pacifico">Text</p> | | Josefin Sans | josefinSans | <p class="josefinSans font-light">Text</p> | | Quicksand | quicksand | <p class="quicksand font-bold">Text</p> | | Fira Sans | firaSans | <p class="firaSans font-medium">Text</p> | | Exo 2 | exo2 | <p class="exo2 font-extralight">Text</p> | | Archivo | archivo | <p class="archivo font-medium">Text</p> | | Titillium Web | titilliumWeb | <p class="titilliumWeb font-semibold">Text</p> | | Cabin | cabin | <p class="cabin font-medium">Text</p> | | Arvo | arvo | <p class="arvo font-bold">Text</p> | | Vollkorn | vollkorn | <p class="vollkorn font-semibold">Text</p> | | Abril Fatface | abrilFatface | <p class="abrilFatface">Text</p> | | Righteous | righteous | <p class="righteous">Text</p> | | Lobster | lobster | <p class="lobster">Text</p> | | Bebas Neue | bebasNeue | <p class="bebasNeue">Text</p> |


🖋️ Styling with Tailwind or Plain CSS

Use alongside Tailwind CSS utility classes for styling:

<p class="poppins text-lg font-bold italic">Bold Italic Poppins</p>
<p class="ubuntu text-sm font-light">Light Ubuntu</p>

🌐 Google Fonts Reference

All fonts are sourced via Google Fonts:


🙌 Contributing

Want to add more fonts or fix a bug?

git clone https://github.com/Srinanth/fontsin
cd fontsin
npm install

Then create a branch, make your changes, and submit a PR.


⭐ If you find this package useful, please consider dropping a star on GitHub!