Skip to content

azrdn/sunset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sunset

Sunset is a web app for experimenting with font subsetting.

Requirements (Non Docker Installation)

  • Bun
  • hb_subset (from HarfBuzz)
  • woff2
  • 7zz

Make sure every CLI listed above is available on the PATH of the server process.

Installation

bun install

This will install dependencies for every workspace in the repo.

Local development

  • Run both the server and client: bun run dev
  • Server/client only: bun run -F <server | client> dev

The server listens on http://localhost:4321 by default. You can adjust the maximum accepted request size by setting the MAX_SIZE environment variable (bytes).

Testing

Server-side font subsetting tests live under pkgs/server/test. Run them with:

bun test pkgs/server/test

Docker

You can build a container image of the server using the provided Dockerfile:

cd pkgs/server
docker build -t sunset-server .

About

A tool to subset your fonts (wrapper of hb-subset)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •