Antra

Security linter that catches data leaking across trust boundaries in Next.js

Project Overview

About This Project

Antra is a static analysis security linter for React Server Components and the Next.js App Router. It finds the exact point where a value crosses a trust boundary without validation, using a schema snapshot of your data layer so it knows which fields are sensitive. Published on npm as @ferhattahar/antra-next.

The Challenge

In Next.js, data moves from the server to the browser in many places, and one unchecked value is enough to leak something private.

The Result

Finds where server data reaches the client without a check in Next.js code. Runs locally, in CI or on staged files, and reports as SARIF.

What it took

What broke
Early versions missed files, so values that crossed between modules were never traced.
Known limit
Cross-file tracing follows up to three imports to the boundary a value crosses.

Key Features

  • Trust Boundary Detection
  • Schema Aware Scanning
  • Findings with Severity Levels
  • Baselines and Suppressions
  • Watch Mode and Auto Fix
  • Full CLI with Docs Site

Technologies

TypeScript

Node.js

CLI

Static Analysis

Next.js

React Server Components

npm

Details

Status

Live

Type

Web Application

Role

Creator

Timeline

Sep 2026 - Oct 2026

Walkthrough

antra — 1
antra — 2
antra — 3
antra — 4
antra — 5
antra — 6

More work

All projects