Sunset is a web app for experimenting with font subsetting.
- Bun
- hb_subset (from HarfBuzz)
- woff2
- 7zz
Make sure every CLI listed above is available on the PATH of the server process.
bun installThis will install dependencies for every workspace in the repo.
- 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).
Server-side font subsetting tests live under pkgs/server/test. Run them with:
bun test pkgs/server/testYou can build a container image of the server using the provided Dockerfile:
cd pkgs/server
docker build -t sunset-server .