Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coollabsio/fonts

A privacy-friendly drop-in replacement for Google Fonts
https://github.com/coollabsio/fonts

cdn fonts google-fonts privacy

Last synced: 1 day ago
JSON representation

A privacy-friendly drop-in replacement for Google Fonts

Awesome Lists containing this project

README

        

# A privacy-friendly drop-in replacement for Google Fonts

I wrote it in an hour, so please report bugs [here](https://github.com/coollabsio/fonts/issues/new).
Several improvements could be made here and there, so do not hesitate to [contact me](https://docs.coollabs.io/contact). if you have any suggestions.

## Why?

There have been several GDPR issues popping up lately with Google & Google CDN. We don't know what they are doing with user details, such as IP address, browser agent, etc.

So I decided to create a similar service just without logging ANYTHING.

## How to use?

### Fonts
Change the domain name from `fonts.googleapis.com` to `api.fonts.coollabs.io` in your `` tag; that's it!

Example:

Original `` content:
```html

```

Replaced `` content:
```html

```

Or with `@import`:

From:
```css

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

```

To:
```css

@import url('https://api.fonts.coollabs.io/css2?family=Roboto&display=swap');

```

Supports css2 [API endpoint](https://developers.google.com/fonts/docs/css2) and css [API endpoint](https://developers.google.com/fonts/docs/getting_started) as well.

### Icons

Currently, [Material Icons](https://fonts.google.com/icons) is supported.

Original `` content:
```html

```

Replaced `` content:
```html

```

## Stack
- The API is a simple HTTP server (written in Node.js/[Fastify](https://fastify.io)), that is open-sourced and does not log anything, hosted with a [coolify](https://coolify.io) instance on a [Hetzner](https://hetzner.com) server.
- Fonts are served from [BunnyCDN](https://bunny.net), which has an option to disable logging on their side completely.