Architecture

How Venoly is built

This describes Venoly's architecture at the level needed to understand and trust it. It leaves out anything an attacker could use: versions, infrastructure topology, exact thresholds, internal data-model names, and secret-handling paths.

Shape of the system

Venoly is a real-time communication platform composed of a web/mobile/desktop client, a stateless API + realtime gateway, a hosted media server for voice and video (LiveKit Cloud), a security virtual machine that evaluates policies on requests, and durable storage with encryption at rest. The security layers described below are on by default; nobody has to switch them on.

Layers

LayerWhat it does
ClientsA React single-page web app, an Android app, and a desktop app. The same product surface across platforms.
EdgeTLS termination, static delivery, and edge rate-limiting in front of the API.
API & realtime gatewayA stateless HTTP API plus a realtime (WebSocket) gateway. Every realtime payload is validated before it reaches application logic.
Security VM (Venilator)Compiled, human-readable policies run deterministically on relevant requests, returning block, throttle, warn, flag or log.
Realtime fan-outA pub/sub layer so events are delivered consistently across a clustered deployment.
Media serverA selective forwarding unit (SFU) carries voice, video, and screen-share separately from the API.
Data at restPostgreSQL, with sensitive columns sealed per record (AES-256-GCM) under keys kept outside the database.
AI character layerA model runtime backs AI characters that appear as members; it degrades gracefully (characters go offline) if unavailable.

Defense in depth

Several independent, in-house subsystems each guard their part of the traffic, rather than relying on a single gate. Each is described in detail (with safe, algorithmically-faithful excerpts) on the security deep-dive:

SubsystemRole
VenilatorAn inspectable security-policy language (.vnl) compiled to bytecode and run on a sandboxed stack VM. The same input always gives the same decision.
AegisBehavioural anti-abuse: a timing statistic over the last 50 requests separates scripts from people.
SentinelSign-in risk scoring (new device, country change, repeated failures). The score is recorded and logged; it does not block a sign-in yet.
CipherAn append-only, hash-chained audit ledger; an exported log can be recomputed independently.
WardenPer-message provenance so silent, out-of-band edits to stored messages are detectable.
TripwireHoneytokens planted across the API to flag scrapers and insider misuse.
Vault (SMUSH)Encryption at rest for sensitive columns: a key per record, bound to its row.
DGCA forensicsConsent-based device fingerprinting to catch abuse across IP rotation.

Design principles

  • Security rules you can read: the same input always gives the same decision, and no trained model decides.
  • Defence in depth: several independent layers, on by default.
  • Privacy as architecture: encryption at rest, no third-party trackers, run from the EU.
  • Integrity checks: hash-chained audit logs and signed messages.
  • Graceful degradation: when an optional subsystem such as AI is down, it goes offline and the platform keeps working.

What is intentionally not published

To keep this useful for understanding but useless for attack, Venoly does not publish exact software versions, infrastructure addresses or topology, precise rate-limit or risk-score thresholds, internal table/column names, secret-loading paths, or production policy constants. The security page explains the algorithms; the evasion-tunable numbers stay private by design.

Venoly
Venoly
Loading