Jevegis
September 17, 2026 · View on GitHub
Open source. MIT licensed. Live at https://jevegis.vercel.app. SDK/CLI: https://github.com/0xArx/jevegis-sdk
Guardrails for LLM apps in one API call. Security (prompt injection, jailbreaks, credential/PII leaks, unauthorized actions, malicious code, indirect injection in retrieved documents) and Trust & Safety moderation, both powered by TypeSafe's Jev typed-judgment model: calibrated probabilities, no generated text, sub-second calls.
Architecture
src/lib/engine.ts— the whole detection engine. One declarativeCHECKSarray (each check knows how to phrase itself per target: input / output / document / content).evaluate()builds one Jev request, applies thresholds, and returns{ verdict, reasons, flags, category, severity }.src/lib/request.ts— parses{ text },{ direction },{ messages }(OpenAI-style; last message judged, rest = context),thresholds,checks.src/lib/apiAuth.ts— bearer-key auth (SHA-256 hashed), Postgres rate limit, usage logging (best-effort, never fails a scan).- Routes:
/api/v1/{scan,moderate}(authenticated, logged),/api/{scan,moderate}(unauthenticated playground for the landing demo),/api/keys(self-serve key issuance),/api/dashboard/keys(create/revoke, signed in). - Auth: Supabase magic link (
/login,/auth/callback,/auth/finish), session refresh insrc/proxy.ts. - Pages:
/landing,/docs,/get-started,/dashboard,/terms,/privacy.
Supabase
Tables: api_keys, scans, demo_hits. Apply supabase/schema.sql to a fresh project; keys go in .env.local (see .env.example).
Evals
npm run eval runs every labeled case in evals/cases.json against the live engine and reports verdict accuracy, per-flag misses, p50/p95 latency, and cost. Current: 42/42.
Run
node node_modules/next/dist/bin/next dev --port 4950
Copy .env.example to .env.local. Env: TYPESAFE_API_KEY, NEXT_PUBLIC_SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY,
optional NEXT_PUBLIC_SITE_URL.
Positioning
The 2025 acquisitions (Lakera→Check Point, Robust Intelligence→Cisco, Prompt Security→SentinelOne, Protect AI→Palo Alto) left the standalone guardrail market enterprise-only and demo-gated. Jevegis is the self-serve, published-price, probabilities-not-booleans alternative for developers shipping an LLM feature today.