v2.1.0 — Security-First Evolution

Vril.js

The Security-First
React Framework

Post-quantum cryptography, zero-trust membrane, crypto agility, and breakthrough browser hardening — woven into every layer. Zero dependencies. 22 modules. 200+ exports.

0 Dependencies0 Modules0 Exports Full PQC
Developer Experience

Security by Default, Not by Config

Zero-config security. Intuitive APIs. Full TypeScript. Every cryptographic operation uses the Web Crypto API — no polyfills, no dependencies.

1import{createVrilApp}from'vril';
2
3constapp=createVrilApp({
4security:{
5trustedTypes:true,
6apiMembrane:true,
7blockedAPIs:['WebTransport'],
8csp:{
9defaultSrc:["'self'"],
10objectSrc:["'none'"],
11frameSrc:["'none'"],
12},
13headers:{
14strictTransportSecurity:
15'max-age=63072000; preload',
16crossOriginEmbedderPolicy:
17'credentialless',
18},
19},
20crypto:{
21pqcEnabled:true,
22hybridMode:true,
23kdfIterations:600_000,
24},
25});
Live · Zero dependencies · Web Crypto API
Features

22 Modules. One Mission.

Security isn't a feature — it's the foundation. Every module in Vril.js is built with cryptographic integrity and zero-trust principles from the first line.

Post-Quantum Cryptography

ML-KEM-768 (FIPS 203) and ML-DSA-65 (FIPS 204) with hybrid key exchange. Quantum-resistant by default.

Hybrid Key Exchange

X25519 + ML-KEM-768 hybrid KEM. Classical + post-quantum security in every handshake. Belt and suspenders.

Crypto Agility

NIST 2035 migration paths built in. Algorithm registry, versioning, and automated migration — zero downtime.

ΩVault Encryption

AES-256-GCM + PBKDF2-SHA-512 at 600K iterations. Zero-knowledge client-side encryption with visual KDF progress.

ΩSignal Reactivity

Fine-grained reactive primitives — signal, computed, effect, batch, untrack — with auto dependency tracking. Zero deps.

Zero-Trust Membrane

Trusted Types, API membrane blocking, DOM XSS prevention. Installed at document-start before any app code runs.

Secure SSR

Streaming SSR with SHA-256 integrity validation. Selective hydration. RSC deserialization with type allowlisting.

Edge Runtime

Edge KV, Geo, and Security primitives. Bot detection, IP allowlist/blocklist, edge rate limiting. Multi-CDN.

Build Security

20-point security audit. SBOM generation (CycloneDX). SRI multi-hash. Sigstore signing. Build integrity verification.

Plugin Architecture

Dependency-aware plugin registry. Integrity verification. Permission sandboxing. Lifecycle hooks and middleware chain.

Type-Safe API Routes

Zero-dep schema validation. Rate limiting. CSRF protection. Versioning. Composable middleware chain.

RBAC & Auth Primitives

Session management with HMAC-SHA-256. JWT-like tokens via Web Crypto. PBKDF2 password hashing. Hierarchical RBAC.

Security Architecture

Five Layers of Zero-Trust

From browser hardening to build integrity, every layer is enforced by default. No opt-in required. No configuration needed.

L5

Build-Time Integrity

SRI Multi-HashSBOM (CycloneDX)Sigstore Signing
L4

Application Security

CSRF ProtectionXSS ShieldRoute Guards
L3

Cryptographic Layer

PQC (ML-KEM/ML-DSA)Hybrid KEMΩVaultAgility Registry
L2

Transport Security

HSTS PreloadCSP Level 3Permissions-Policy
L1

Browser Hardening

COOP/COEP/CORPTrusted TypesAPI Membrane
Comparison

Why Vril.js?

No other framework ships with post-quantum cryptography, zero-trust security, and crypto agility built in.

FeatureNext.jsRemixAstroVril.js
PQC Support
Crypto Agility
Zero-Trust Membrane
Built-in Encryption
Hybrid KEM
SSR Integrity Validation
Build Security Audit
Edge Runtime Security
Crypto Algorithm Registry
SBOM Generation
Module Ecosystem

22 Modules. Zero Dependencies.

Every module is hand-crafted with zero external dependencies. All crypto uses the Web Crypto API. All streaming uses Web Streams.

Core

4
core
config
plugin
types

Security

7
security
pqc
hybrid
vault
agility
hardening
audit

Data

4
signals
state
hooks
cache

Server

5
server
build
router
auth
api

Platform

6
ssr
streaming
edge
head
diagnostics
utils
Getting Started

Deploy in 60 Seconds

One command. Zero config. Every security feature enabled by default. From zero to production-grade.

1

Install

$ npx create-vril-app@latest
2

Configure

Security defaults applied. PQC, CSP, HSTS, Trusted Types — all enabled.
3

Build

$ vril build --secure
terminal
# Create a new Vril.js project
$ npx create-vril-app@latest my-secure-app
✓ Security defaults applied
✓ PQC enabled (ML-KEM-768 + X25519)
✓ CSP Level 3 + Trusted Types
✓ HSTS Preload configured
$ cd my-secure-app && vril dev
▸ Ready on http://localhost:3000
▸ Security audit: 20/20 checks passed
▸ SBOM generated: sbom.cyclonedx.json