Wiring LiveView Uploads to Claude Vision
Boundary-validate uploads in allow_upload before they cost tokens, then wire consume_uploaded_entries into Claude vision and PDF calls from LiveView.
We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Writing · Tag
36 posts on Elixir, page 2 of 3. Or browse the full writing index →
Boundary-validate uploads in allow_upload before they cost tokens, then wire consume_uploaded_entries into Claude vision and PDF calls from LiveView.
Four Elixir options for schema-validated LLM output, scored on maintenance, provider coverage, retry behavior, and escape hatches.
José Valim's case for Elixir as a coding-agent harness holds up on the runtime. The tax is the ecosystem around it: sandboxing, plugins, and SDKs.
ReqLLM emits token-usage telemetry; turning it into a per-customer invoice line needs an append-only ledger, integer-cent math, and idempotent writes.
The compile-time trap in config.exs, why System.fetch_env! should crash your boot, and how to actually wire Fly secrets and LLM keys through a Phoenix release.
Tenant isolation for AI SaaS in Phoenix: per-tenant API key tradeoffs, Ecto context scoping, and the pgvector bug that leaks one tenant into another.
ReqLLM already emits token cost and latency telemetry events. The real gap is a few lines wiring them into LiveDashboard and PromEx, not another SaaS bill.
The Iron Law for has_many vs belongs_to, plus when Dataloader, subqueries, or raw SQL are the honest fix, not another preload tutorial.
Elixir/Phoenix mechanics for parallel Claude Code agents: templating PORT per worktree, one Postgres DB per branch, and asset-watcher collisions nobody covers.
Together AI raised $800M at an $8.3B valuation. A since-removed job posting showed Elixir/Phoenix on the BEAM running its auth and access control.
A founder-readable case for Elixir as an AI startup's backend: what the BEAM gets right for agents, streaming, and durable jobs, and when to skip it.
Twelve Phoenix LiveView patterns that hold up in production: streams vs assigns, async mounts, PubSub gating, and the failure mode behind each one.