Mend automatically captures errors in your Next.js app, deduplicates them, and creates GitHub issues — so nothing slips through the cracks.
Mend listens for frontend errors and backend failures in your Next.js app. One component, one config file.
Errors are fingerprinted, deduplicated, and filtered. Network noise and third-party extensions are ignored.
New bugs automatically become GitHub issues with full context. Duplicates increment the count instead.
SHA-256 fingerprinting groups identical errors. Same bug = same issue.
Network errors, auth failures, browser extensions — automatically excluded.
API keys, tokens, emails, and URLs are stripped before they leave your app.
Captures window errors, unhandled rejections, and Next.js server errors.
Errors are reported instantly via sendBeacon for reliability, even during page unload.
One npm install, one CLI command, two lines of code. That's it.
$ npm install @michaeljelly/mend-nextjs
$ npx @michaeljelly/mend-cli
import { MendReporter } from '@michaeljelly/mend-nextjs'
export default function RootLayout({ children }) {
return (
<html><body>
<MendReporter apiKey={process.env.NEXT_PUBLIC_MEND_API_KEY!} />
{children}
</body></html>
)
}
export { onRequestError } from '@michaeljelly/mend-nextjs/instrumentation'
import { configureMend } from '@michaeljelly/mend-nextjs/instrumentation'
configureMend({ apiKey: process.env.NEXT_PUBLIC_MEND_API_KEY! })