惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
The GitHub Blog
The GitHub Blog
月光博客
月光博客
T
Tailwind CSS Blog
小众软件
小众软件
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
B
Blog RSS Feed
博客园 - 司徒正美
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 聂微东
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
博客园 - Franky
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The Web Admin Is a Window, Not a Second Source of Truth
Manuel Bruña · 2026-06-21 · via DEV Community

The Web Admin Is a Window, Not a Second Source of Truth

APX has a web admin panel, but that does not make the browser the center of the system.

The design is stricter than that: the daemon owns the state, and the web UI is only a local client.

That split sounds small. It is not. It decides where truth lives, how much can drift, and whether the project still makes sense after a refresh, a restart, or a tool switch.

The rule

APC is the portable context layer. APX is the daily-use runtime and tooling layer.

Inside that split, the web admin belongs firmly to APX. It exists to let you inspect and operate the runtime without leaving the browser, but it does not get its own copy of project truth.

The docs make that clear:

  • the daemon is a local HTTP server on 127.0.0.1:7430
  • every surface talks to the daemon over HTTP
  • the web admin is served by the daemon itself
  • the browser fetches a bearer token from GET /admin/web-token on loopback
  • the daemon serves the built UI from src/interfaces/web/dist

So the browser is not a peer database. It is just one more surface.

Why this matters

If a web panel becomes a second source of truth, it starts to rot fast.

Two copies of state means two ways to disagree:

  • CLI writes one thing, UI caches another
  • browser session edits a config, daemon still trusts old state
  • a reload shows one project, but another tab keeps stale data
  • a “fix” in the UI never reaches the runtime that actually runs agents

APX avoids that by keeping the browser thin. The UI asks the daemon. The daemon asks the core. The core reads or writes the real backing store.

That chain is boring on purpose. Boring is good here.

What the browser should do

A good local panel should do three things well:

  1. Show the live state.
  2. Send a small action.
  3. Revalidate after the action.

That is enough.

For APX, the panel is meant to browse projects, agents, routines, sessions, MCPs, and settings from one place. But it should still feel like a view onto the system, not a fork of the system.

That is why the implementation stays local-first:

  • dev mode runs Vite on :7431 and proxies to the daemon on :7430
  • production serves the built app from the daemon
  • same origin keeps auth and routing simple
  • the browser never needs direct repo write access just to render a screen

The win is not visual polish. The win is that every action still resolves through one backend.

Practical example

Say you open the web admin and edit a project setting.

If the panel owned state, it would need its own store, its own save path, its own conflict handling, and its own recovery rules.

APX does not take that tax.

The panel submits the change to the daemon. The daemon updates the runtime or project store. The next render reads the same source of truth the CLI would read. One system, many surfaces.

That also means the UI can disappear without harming the project. You can close the browser, lose the tab, or move to another machine. The important state remains where it belongs: in the daemon for runtime data, and in .apc/ for portable project context.

The deeper reason

APC exists because context should travel with the project.

APX exists because that context needs a runtime that can act on it.

The web admin fits that second half. It is useful because it is local, not because it is special.

So the right mental model is simple:

  • APC: what the project is
  • APX: how the project runs today
  • Web admin: one window into that runtime

If you keep that boundary clean, the stack stays replaceable. The browser stays optional. The daemon stays authoritative. And the project stays portable.