Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/coollabsio/fonts
- Owner: coollabsio
- License: apache-2.0
- Created: 2022-02-07T10:07:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T19:48:09.000Z (about 1 year ago)
- Last Synced: 2024-11-05T01:17:17.061Z (5 days ago)
- Topics: cdn, fonts, google-fonts, privacy
- Language: JavaScript
- Homepage: https://fonts.coollabs.io
- Size: 169 KB
- Stars: 450
- Watchers: 5
- Forks: 15
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.