Skip to content

Jev directory

Traffic Guard

Zero-dependency reverse-proxy traffic classifier and bot mitigator shipped as Node.js and Python packages. The in-tree engine decides in tens of microseconds, and setting TYPESAFE_API_KEY elevates the gate to jev-latest for five parallel typed questions.
Stars
1
Language
Python
Reading time
2 min
Published by
Community
Author
hemanth
Last verified
Oct 2026

hemanth/traffic-guard

User repository on GitHub

View on GitHub

Empirical, zero-dependency reverse-proxy traffic classifier and bot mitigator in <100μs

Forks
0
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.

Highlights

  • In-tree and zero-dependency at under 100 microseconds: the README benchmark reports 30 µs mean latency in JS and 20 µs in Python.
  • Five defenses: header order sequence analysis, stateless HMAC velocity tokens, a 1.2 KB HashCash proof-of-work challenge, tarpitting and canary honeypots.
  • The optional TypeSafe tier sends five parallel typed questions to jev-latest when TYPESAFE_API_KEY is set, at roughly 250 ms mean latency.
  • Both packages expose the same shape: trafficguard(req) returns a decision with shouldBlock and reasons, or should_block in Python.
  • Benchmarks are runnable: node bench/bench.mjs and python3 bench/bench.py against bench/dataset.json.

Quickstart

ts
import trafficguard from 'traffic-guard';

const decision = await trafficguard(req);

if (decision.shouldBlock) {
  return res.status(403).json({ error: 'Blocked', reasons: decision.reasons });
}

Watch out

Grounded on the truncated README and GitHub metadata reviewed 2026-10-15; the GitHub license field is empty although the README ends with MIT. All figures come from the project's own 25-case dataset in bench/dataset.json, so treat them as self-reported rather than independent.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

YouTube: Kubernetes admission control with a decision model, fail-closed.

Hacker News: SafeDep Gryph plus Jev checks for compromised coding-agent behavior.

2 pointsDetecting Compromised AI Coding Agents with Jev and GryphRead the thread on Hacker News

X: Jev and Laya on security queries

X: Testing Jev for prompt injection

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai