# Pagerless for chi and gorilla/mux

> One middleware each. Routes are reported by their pattern, so /orders/{id} is one route.

URL: https://pagerless.dev/integrations/chi
Updated: 2026-10-22

## Set up

```bash
go get github.com/lcbasu/pagerless-go/chi@v0.2.0
```

```go
import pagerlesschi "github.com/lcbasu/pagerless-go/chi"

r.Use(middleware.Recoverer, pagerlesschi.Middleware)
```

```go
import pagerlessmux "github.com/lcbasu/pagerless-go/gorillamux"

r.Use(pagerlessmux.Middleware)
```

## What it catches

- Panics and 5xx responses, per route pattern.
- A heartbeat and a deploy marker from the core SDK.

## Questions

### Plain net/http?

Use `pagerless.Middleware(mux)` from the core module. See [the Go SDK](https://pagerless.dev/integrations/go).
