Documentation

Zero-Backend Static Architecture

Understanding how Duplex operates entirely inside your local browser tab securely, completely removing the concept of a middleware server from the AI equation.

The Death of the API Wrapper Middleware

Traditionally, AI chat interfaces operate as thin clients that proxy HTTP calls through a middleware server (like a massive Node.js instance) to proprietary models or a self-hosted backend. This inherently requires a database, telemetry logging, and subjects user conversational data to transit tracking. By completely omitting the "Server" from the equation, Duplex fundamentally re-architects client privacy.

  • Total elimination of man-in-the-middle sniffing opportunities on private conversations.
  • Zero-trust execution: API keys are maintained within Chromium V8 memory boundaries and never leave the DOM.
  • Latency reduction: Time-To-First-Token (TTFT) drops drastically by removing intermediate node hops routing requests.

Static File Delivery

The current application is served strictly as compiled HTML, CSS, and localized JavaScript logic. When the user loads the page, all assets are pulled directly from a CDN (Content Delivery Network). From that instance forward, offline execution of local LLMs remains totally intact.

React Static Pipeline Example (Conceptual)
import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; // All subsequent logic executes client-side without any Server-Side Routing checks. createRoot(document.getElementById("root")).render( );