Technical specification

Exact calculation, AI with rules, and security from the network edge.

Studios33's infrastructure tackles the three problems every vertical AI product faces: accuracy, governance of what the model says, and predictable cost per user.

01

Holística Aplicada in production

The real traffic and inference flow behind holisticaaplicada.com and api.holisticaaplicada.com.

 [ Therapists and clients · web and mobile ]
                        │
                        ▼
 ┌──────────────────────────────────────────────────────────────────┐
 │  CLOUDFLARE EDGE                                                 │
 │  • Anycast DNS, TLS Full (Strict), HSTS, HTTP/2 and HTTP/3       │
 │  • Turnstile on sign-up and sign-in · WAF and DDoS protection    │
 └───────────────────────┬──────────────────────────────────────────┘
                         │ HTTPS · origin certificate
                         ▼
 ┌──────────────────────────────────────────────────────────────────┐
 │  NGINX · one vhost per domain                                    │
 │  holisticaaplicada.com ─► web (:3000)   api.* ─► API (:8000)     │
 └───────────────┬──────────────────────────────────┬───────────────┘
                 ▼                                  ▼
 ┌───────────────────────────────┐  ┌───────────────────────────────┐
 │  FRONTEND · Next.js 16        │  │  BACKEND · Django REST        │
 │  React 19 · nonce-based CSP   │  │  Passkeys (WebAuthn / FIDO2)  │
 │  Therapist console & portal   │  │  Swiss Ephemeris (C)          │
 └───────────────────────────────┘  └──────┬─────────────────┬──────┘
                                           ▼                 ▼
                       ┌────────────────────────┐ ┌────────────────────────┐
                       │  POSTGRESQL            │ │  LLM ROUTING           │
                       │  41 instruments        │ │  MiMo → Groq →         │
                       │  sealed workspaces     │ │  Gemini → OpenAI       │
                       │  process memory        │ │  cost metered in EUR   │
                       └────────────────────────┘ └────────────────────────┘
Each service runs in its own container; traffic only switches over once health checks pass.
02

Pillars

Four architecture decisions that repeat across the whole portfolio.

Governed AI (SWM)

  • Traceable consent before the copilot is switched on or a reading is sealed.
  • Calculation first: ephemerides, paths and scores are computed in code and passed in as fixed context.
  • Guardrails: a validator checks the model's output and blocks answers that break the guidelines.

Routing and measured cost

  • Failover: if a provider fails or slows down, the router moves to the next one without interrupting the user.
  • Metering: every request logs tokens, provider and cost in EUR, so subscriptions can include AI credit.
  • Process memory: sealed sessions store vectors so patterns can be recalled over time.

Security and sign-in

  • Phishing-resistant passkeys, alongside Google and Telegram sign-in.
  • Turnstile against automated abuse on public entry points.
  • Per-request nonce CSP with locked-down connection origins.

Verified deployment

  • Isolated containers with health checks before they take traffic.
  • Checks on deploy: migrations, ephemeris files and critical test suites run before release.
  • Privacy by design: credentials, clinical profiles and telemetry kept apart.
03

Verifiable evidence: YoVote.si

The same principle applied to electoral transparency: instead of asking people to trust a database, anyone can cryptographically verify what is published.

Transparency log

  • Append-only Merkle tree with signed C2SP checkpoints.
  • Proofs of inclusion for every tally sheet and of consistency between checkpoints.
  • Two independent verifiers, in Go and Node.js.

Edge that follows electoral law

  • LOREG art. 69.7: the gateway controls poll publication during the legal blackout window.
  • Data locked by SHA-256 and archived.
  • No votes: individual votes or intentions are never recorded.

Full YoVote.si architecture