Every tool, with a receipt.

The full tech stack, layer by layer, each tool tied to the system that uses it: React, TypeScript, Go, Python, PostgreSQL, Redis, llama.cpp, Algorand, PostGIS and more.

Interface: What people touch

  • React (JñānaSetu, ViduraNīti, VarunaSetu): JñānaSetu dashboard and chat widget; the ViduraNīti web app; the VarunaSetu operations dashboard.
  • Vite (JñānaSetu, ViduraNīti, VarunaSetu): Separate Vite builds for the JñānaSetu dashboard and widget, and the VarunaSetu dashboard.
  • TypeScript (JñānaSetu, ViduraNīti, VarunaSetu): Typed front ends end to end.
  • TanStack Query (ViduraNīti): Server-state cache and invalidation. Never the authority for payments.
  • IndexedDB (ViduraNīti): Persistent client cache for speed, never trusted for authorization.
  • Next.js (toolkit): In my toolkit for full-stack front ends; not part of these systems.
  • Tailwind CSS (toolkit): In my toolkit; not part of these systems.

Services: Where the logic lives

  • Go (JñānaSetu, VarunaSetu): The JñānaSetu modular API, plus VarunaSetu’s verification core, backend service and ledger.
  • Python (JñānaSetu, ViduraNīti, Flasio, VarunaSetu): The embedding worker, the ViduraNīti backend, Flasio itself, and VarunaSetu’s allocation research.
  • FastAPI (JñānaSetu, ViduraNīti): ViduraNīti backend (ten domains) and the JñānaSetu embedding worker.
  • Flasio framework (Flasio): My own async-first ASGI framework, published on PyPI.
  • ASGI · Uvicorn (Flasio): The contract Flasio implements: app(scope, receive, send).
  • REST APIs (JñānaSetu, ViduraNīti, Flasio, VarunaSetu): Versioned JSON APIs with explicit error envelopes.
  • WebSockets (ViduraNīti): Live approval and payment status updates.
  • Django (toolkit): In my toolkit; not part of these systems.
  • Flask (toolkit): In my toolkit, and the API style Flasio keeps familiar.

Data: What the system remembers

  • PostgreSQL (JñānaSetu, ViduraNīti, VarunaSetu): JñānaSetu tenancy and chunks; ViduraNīti source of truth for money; VarunaSetu telemetry and ledger.
  • pgvector (JñānaSetu): HNSW search over 384-dimension embeddings, filtered by tenant.
  • Supabase (JñānaSetu, ViduraNīti, VarunaSetu): Managed Postgres, Auth and private Storage; a configurable database host for VarunaSetu.
  • Redis (ViduraNīti): Cache and job queue only, never the financial source of truth.
  • asyncpg · aiosqlite (Flasio): Optional Flasio database services with startup-managed pools.
  • PostGIS (VarunaSetu): Spatial schemas for devices and cells in PostgreSQL.
  • H3 spatial index (VarunaSetu): Uber H3 cells group neighbouring devices for peer checks and map layers.
  • MongoDB (toolkit): In my toolkit; not part of these systems.
  • Neo4j Aura (toolkit): In my toolkit; not part of these systems.

Intelligence: Where the models run

  • llama.cpp (JñānaSetu): Self-hosted inference server on a private network.
  • Qwen3-4B (JñānaSetu): Local GGUF model (Q4_K_M) that writes grounded answers.
  • MiniLM-L6-v2 (JñānaSetu): sentence-transformers embeddings, 384 dimensions, run locally.
  • RAG (JñānaSetu): Retrieval-augmented answers with verified sources and an honest fallback.
  • ML anomaly scoring (ViduraNīti): Scores spend requests and escalates risky ones to a human.
  • NetworkX (VarunaSetu): Graph-based water allocation models and research scripts.
  • Groq (optional) (ViduraNīti): Task interpretation only, never a financial authority.

Trust & money: What keeps it honest

  • JWT (JñānaSetu, Flasio): Supabase JWTs in JñānaSetu; token helpers in Flasio.
  • Row-level security (JñānaSetu): Tenant isolation enforced in the database.
  • Idempotency keys (ViduraNīti, VarunaSetu): Retries and duplicates can never move money twice (ViduraNīti); durable idempotency in the VarunaSetu API.
  • x402 (ViduraNīti): The mandatory HTTP 402 payment path for every spend.
  • Algorand (ViduraNīti): Settlement. A payment is SETTLED only after confirmation is verified.
  • SHA-256 hash chain (VarunaSetu): Every accepted event is chained, so history can be checked for tampering.
  • Ed25519 (VarunaSetu): Signed ledger checkpoints and signed telemetry.
  • HTTPS / TLS (JñānaSetu): TLS at the proxy; internal services are never public.
  • OAuth 2.0 (Flasio): OAuth2 option for the Flasio email service.

Runtime: How it ships and stays visible

  • Docker Compose (JñānaSetu, VarunaSetu): JñānaSetu API, widget, dashboard, embeddings and LLM as containers; Compose profiles for VarunaSetu.
  • Prometheus (JñānaSetu): Scrapes an authenticated metrics endpoint.
  • Grafana (JñānaSetu): Dashboards and alerts over those metrics.
  • OpenTelemetry (JñānaSetu): Optional OTLP traces from the Go API.
  • Cloudinary (ViduraNīti, Flasio): Reports and invoices (ViduraNīti); upload helper (Flasio).
  • PyPI (Flasio): Flasio is published and installable with pip.
  • Git · GitHub (JñānaSetu, ViduraNīti, Flasio, VarunaSetu): All four systems are open on GitHub.
  • Linux (toolkit): In my toolkit; not part of these systems.