"use client"; import { useState } from "react"; import Navbar from "@/components/Navbar"; import Link from "next/link"; const DOCUMENTS = [ { id: "d1", title: "Tor Circuit Selection — Deep Technical Analysis", category: "Network", pages: 24, access: "free", views: 1842, updated: "2025-03" }, { id: "d2", title: "Opsec Field Manual v4.1", category: "OPSEC", pages: 88, access: "void:10", views: 3210, updated: "2025-01" }, { id: "d3", title: "PGP Web of Trust — Trust Models Compared", category: "Crypto", pages: 32, access: "free", views: 956, updated: "2024-11" }, { id: "d4", title: "Darknet Exit Scam Patterns — Attribution Study", category: "Intel", pages: 56, access: "void:20", views: 2107, updated: "2025-04" }, { id: "d5", title: "Bitcoin Privacy: Complete Transaction Graph Analysis", category: "Crypto", pages: 44, access: "void:15", views: 1654, updated: "2025-02" }, { id: "d6", title: "Hidden Service Hardening — Production Checklist", category: "Network", pages: 18, access: "free", views: 4321, updated: "2025-04" }, { id: "d7", title: "Law Enforcement Network Forensics — Countermeasures", category: "Counter-Intel", pages: 72, access: "void:35", views: 876, updated: "2024-10" }, { id: "d8", title: "Monero Ring Signature Privacy Analysis", category: "Crypto", pages: 28, access: "void:12", views: 1123, updated: "2025-01" }, ]; const CATS = ["All", "OPSEC", "Crypto", "Network", "Intel", "Counter-Intel"]; const CAT_ICONS: Record = { OPSEC: "🛡️", Crypto: "🔐", Network: "🌐", Intel: "🔍", "Counter-Intel": "🕵️" }; export default function CodexPage() { const [cat, setCat] = useState("All"); const [search, setSearch] = useState(""); const filtered = DOCUMENTS.filter((d) => { const matchCat = cat === "All" || d.category === cat; const matchSearch = !search || d.title.toLowerCase().includes(search.toLowerCase()); return matchCat && matchSearch; }); return ( <>
{/* Header */}

the codex · encrypted document archive

THE CODEX

Curated archive of technical documents, research, and operational guides. Free entries and VOID-gated deep files.

Submit document →
{/* Stats */}
{[ { label: "Documents", value: DOCUMENTS.length }, { label: "Free access", value: DOCUMENTS.filter((d) => d.access === "free").length }, { label: "Total pages", value: DOCUMENTS.reduce((a, d) => a + d.pages, 0).toLocaleString() }, { label: "Total reads", value: DOCUMENTS.reduce((a, d) => a + d.views, 0).toLocaleString() }, ].map((s) => (

{s.value}

{s.label}

))}
{/* Filters */}
setSearch(e.target.value)} /> {CATS.map((c) => ( ))}
{/* Document list */}
{filtered.map((doc) => { const isFree = doc.access === "free"; const cost = isFree ? null : parseInt(doc.access.split(":")[1] ?? "0"); return (
{CAT_ICONS[doc.category] ?? ""} {doc.category} {isFree ? ( FREE ) : ( ✦ {cost} VOID )} {doc.pages}p · updated {doc.updated}

{doc.title}

{doc.views.toLocaleString()} reads

{isFree ? ( ) : ( Unlock with VOID → )}
); })}
{/* CTA */}

Contribute to the Codex

Submit original research and technical documents. Earn VOID credits for approved submissions.

Submit Document →
); }