Self-hosted service
raviqqe/muffet avatar
raviqqe/muffet

muffet keeps its options off the page and its HTML parser on a 2016 commit

Fast website link checker in Go

2,620 stars112 forksGoMIT

At a glance

What is it?
muffet is a Go link checker that scrapes a whole site recursively and reports broken links as text, JSON or JUnit XML. Its tree shows two HTTP client implementations, per host throttling, a daemon manager and snapshot tests, while the README documents a single command with no flags at all.
Who is it for?
muffet is a good fit when you want a link check in CI rather than a site audit, because it emits JUnit XML for a test reporter and JSON for anything you want to post process, and it throttles per host so a recursive crawl of a large site does not hammer one origin. Read the usage page before writing the command, since the README lists no options at all and the install line pulls `@latest`, which is a moving target on a project whose tags sit at v2.11.5.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • raviqqe/muffet2,620 ★ · +6
Star history
Repository2026-10-042026-11-25
raviqqe/muffet2.6k2.6k

6 Stars in the last 52 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Two HTTP client implementations behind one interface

Muffet claims two things at once, massive speed and high compatibility with web browsers, and the file names explain how it tries to hold both. There is `http_client.go` for the standard library client and `fasthttp_http_client.go` for the fasthttp implementation, with matching `http_response.go` and `fasthttp_http_response.go` types on the response side, plus `checked_http_client.go` above them and a factory for each. Which one is used is decided by argument parsing in `arguments.go` through the go-flags package. Output goes through aurora for colour with go-colorable and go-isatty deciding whether a terminal is on the other end, which is the sort of detail that separates a checker meant for a pipeline from one meant for a person watching a screen.

Throttling is keyed by host, not global

A recursive crawl of an entire site is a request generator, so what limits it matters more here than in most Go tools. The tree has `host_throttler.go` and `host_throttler_pool.go`, and the module requires go.uber.org/ratelimit, which points to a limiter per destination host rather than one global delay. That shape lets a crawl touch many hosts concurrently while still slowing down against any single one. Two other dependencies shape what gets crawled at all: temoto/robotstxt supplies a robots.txt parser and oxffaa/gopher-parse-sitemap a sitemap reader, and both sit in the same list as the crawler's own `cache.go`, so repeat visits inside one run are served from memory rather than re-fetched.

The HTML parser is pinned to a 2016 commit

Two of the direct requirements carry pseudo-versions instead of releases. The HTML parsing library is `github.com/yhat/scrape v0.0.0-20161128144610-24b7890b0945` and the sitemap reader is `github.com/oxffaa/gopher-parse-sitemap v0.0.0-20191021113419-005d2eb1def4`, both commits from before Go modules existed, so nothing in them moves unless someone updates the hash by hand. Everything around them is current: fasthttp at v1.74.0 and golang.org/x/net at v0.59.0, with brotli alongside for compressed responses. The code that uses the parser is split the way you would expect, `html_page.go`, `html_page_parser.go`, `link_finder.go`, `link_filterer.go` and `link_validator.go`, which is a find, then filter, then check pipeline rather than one function doing all three.

One command, no flags, and an install line that follows latest

The whole usage section is a single invocation with a URL and nothing else:

sh
muffet https://shady.bakery.hotland

Not one option is named on the page, even though `arguments.go` and the go-flags dependency say the binary has a real command line surface. The install line has the same problem in a different way:

sh
go install github.com/raviqqe/muffet/v2@latest

The module path carries the `/v2` suffix that Go requires for a second major version, while the tags are version v2.11.5 and down, so nothing here tells you which release you actually get. Docker and GitHub Actions usage are one link away, on a documentation site at raviqqe.github.io/muffet, separate from the project homepage at raviqqe.com/muffet. Two hosts for one small tool is not a problem, but it is the second place to look before you assume the README is complete.

Three output shapes held by snapshot tests

The features list promises text, JSON and JUnit XML output, and the JUnit shape is the one that matters for CI, since a test reporter can consume it directly. The JSON result has its own file, `json_page_result.go`, so the structure of the machine readable output is defined in code rather than assembled at print time. That output is guarded: the repository carries a `.snapshots/` directory and depends on cupaloy alongside testify, which is a snapshot testing library, and nearly every source file at the root has a matching `_test.go` sibling. A change to formatting therefore fails a test rather than quietly reshaping whatever consumes your JSON. There is a `cspell.json` at the root as well, so the prose in the docs is spell checked on its own schedule.

The container is a static binary on scratch

The Dockerfile is two stages and no more. The first pins its builder by digest, `FROM golang:1.27.1@sha256:3680233e...`, adds the whole tree at `/app` and runs `CGO_ENABLED=0 GOOS=linux go install .`. The second stage is `FROM scratch`, copies the single binary to `/muffet` and sets `ENTRYPOINT ["/muffet"]`. What lands on a host is a binary with no shell, no package manager and no certificate store, so TLS trust has to come from the program itself, and the only entry in the dependency list that could provide it is breml/rootcerts. Two smaller notes: there is no `.dockerignore` in the tree, so `ADD . /app` brings everything into the build layer, and the module declares `go 1.26.0` while the image builds with a newer toolchain.

A daemon manager that the README never mentions

`daemon_manager.go` and its test sit at the root of the repository, which means the binary contains code for running as something longer lived than a single crawl, and `cache.go` sits beside it for holding fetched state. Neither is described on the project page, which presents the tool as a one shot command with no flags and no mention of a resident process. There is a plausible reason for the silence, since the README is a pointer to a documentation site rather than a manual, but the practical consequence stands: a reader who wants a scheduled or long running checker has to find that page first, and a reader who assumes there is no daemon mode would never look. goreleaser.yaml in the tree is what produces the release binaries the badges point at.

Three months of commits sit past the newest tag

The recent releases are v2.11.5 on 2026-06-09, v2.11.4 on 2026-05-21 and v2.11.3 on 2026-04-26, a cadence of roughly one tag a month through the spring. The last push to the main branch was on 2026-09-22, so the branch has moved about three months beyond the newest published tag without a release following. The repository is not archived and the licence is MIT, and the Docker Hub badge points at a published image under the author's namespace rather than an organisation one. That gap is normal for a small tool, and it matters most for the `@latest` install line, which is exactly the instruction that will pick up unreleased commits.

Editorial conclusion

muffet is a good fit when you want a link check in CI rather than a site audit, because it emits JUnit XML for a test reporter and JSON for anything you want to post process, and it throttles per host so a recursive crawl of a large site does not hammer one origin. Read the usage page before writing the command, since the README lists no options at all and the install line pulls `@latest`, which is a moving target on a project whose tags sit at v2.11.5. For the container, remember that the final image is built from scratch with no certificate store, and check how that affects your TLS setup before deploying it as the only checker in your pipeline.

Frequently asked questions

How do you install the muffet link checker?

With `go install github.com/raviqqe/muffet/v2@latest`. The module path carries the `/v2` suffix Go requires for a second major version, while the published tags are v2.11.5 and lower. Further install options are on the page at raviqqe.github.io/muffet/install.

What does muffet actually crawl?

It scrapes and inspects all pages in a website recursively, following the links it finds. The feature list names support for different tag types, giving `a`, `img`, `link` and `script` as examples, and the tree splits the work into a finder, a filterer and a validator.

Which output formats can muffet produce?

Text, JSON and JUnit XML. The JSON result has its own file, json_page_result.go, and output changes are covered by snapshot tests stored in the .snapshots directory with cupaloy and testify.

Does muffet respect robots.txt?

The module requires temoto/robotstxt, so a robots.txt parser is compiled in, and oxffaa/gopher-parse-sitemap for sitemap discovery. The project page does not describe how either is applied during a crawl, so check the usage page before assuming disallowed paths are skipped.

What is inside the muffet Docker image?

One static binary and nothing else. A digest-pinned golang:1.27.1 builder runs `CGO_ENABLED=0 GOOS=linux go install .`, then a second stage built `FROM scratch` copies the binary to /muffet with `ENTRYPOINT ["/muffet"]`, so the final image carries no shell and no certificate store of its own.

Official sources

  1. License: MIT
  2. Project website
  3. raviqqe/muffet on GitHub
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/raviqqe-muffet.svg)](https://hysenlabs.com/projects/raviqqe-muffet)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/raviqqe-muffet.svg)](https://hysenlabs.com/projects/raviqqe-muffet)

Was this useful?