headless scraping, 3rd installment

Open
#350 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@bartveneman is already working on this.

Since Jul 9, 2026.

Assessment

This issue has not been assessed yet.

Description

api: get-css

summary

Setup an endpoint that does headless scraping of a url and give a detailed, actionable overview of what should be improved about your css.

Perf

  • skip downloading images and fonts
  • use sensible timeouts

Features

  • scrape css
  • analyze coverage
    • trigger hover/focus states
    • trigger dark/light modes
    • trigger reduced motion/transparency
    • etc etc
  • show high level results, link to deeper pages for deeper analysis
  • allow scraping directly from homepage
    • use view transition to result page
    • make easy to share url with coworkers

implementation

  • Connect to a 3rd party that allows to run playwright fully headless.
  • Cover the variants listed above to increase coverage
  • Run a tiny, fast crawler to scrape more and relevant pages
  • combine coverage reports in the end
  • can we do calculated result of css values that consist of one or more variables? Example: syntax website colors use a system of vars but they can be computed at runtime
  • Maybe look at visbug to see if we can use it to extract information
  • check if all referenced files (font face urls, background imgs) are used and download successfully
Dominant language
Svelte
Stars
4
Forks
0
Avg merge
2d 8h
Merged PRs (30d)
23

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from projectwallace/projectwallace.com

All issues in projectwallace/projectwallace.com

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.