Install @echoranked/tracker

Report crawler hits from your server in a few lines.

@echoranked/tracker is a small open-source package (MIT) that reports AI crawler requests to EchoRanked. It never blocks or slows the response.

bun add @echoranked/tracker

Next.js#

import { withEchoRanked } from "@echoranked/tracker/next";

export default withEchoRanked({
  key: process.env.ECHORANKED_KEY!, // erk_live_…
});

export const config = { matcher: "/((?!_next|favicon.ico).*)" };

Note — Middleware runs before the response exists, so it can't report status codes. Use a fetch-handler adapter if you want 404s tracked.

Related