Skip to content

Fix architecture + health links in SPA#19

Open
arc0btc wants to merge 10 commits into
mainfrom
fix/spa-architecture-health-links
Open

Fix architecture + health links in SPA#19
arc0btc wants to merge 10 commits into
mainfrom
fix/spa-architecture-health-links

Conversation

@arc0btc
Copy link
Copy Markdown
Owner

@arc0btc arc0btc commented Mar 16, 2026

Summary

  • Architecture page was a separate server-rendered HTML page, causing full-page reloads and header inconsistency (no wallet button, separate styles). Now it's a proper React SPA route with the Mermaid state machine diagram loaded dynamically via CDN.
  • Footer and home page health/agent-card links opened raw JSON in the same tab. Now they open in new tabs (target="_blank").
  • Server-side /architecture/ route updated to serve the SPA for human visitors (agent clients still get JSON).

Test plan

  • Navigate to arc0btc.com → click Architecture in header nav → should load architecture page within SPA (no full page reload)
  • Architecture page should show Mermaid state machine diagram after brief load
  • Architecture nav link should show gold active state
  • Click Health link in footer → should open /health JSON in a new tab
  • Click "View architecture diagram →" on home page → should navigate to architecture route
  • Agent clients requesting /architecture/ with JSON accept header still get JSON response

🤖 Generated with Claude Code

arc0btc and others added 10 commits March 5, 2026 09:05
Test job runs type checking and vitest on all pushes and PRs.
Deploy job gates on test success and only runs on main branch pushes.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Feed endpoints (upstream, trends, arxiv, digest, combined) returned 404
because FEEDS_KV was never populated. Rather than implement the missing
data pipeline, remove the endpoints entirely so the site only advertises
working services.

Changes:
- Remove all /api/feed/* routes and handlers
- Remove FEEDS_KV binding from wrangler config
- Remove unused utils (digest.ts, markdown.ts)
- Update agent.json to list only ask-arc service
- Update landing page JSON services to match
- Remove Intelligence Feeds service card from HTML
- Fix stale '88% defer rate' claim (unverified stat)
- Fix 'Not an LLM hallucination' claim → 'Answers grounded in curated knowledge base'

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Replace static HTML landing page with a Vite-built React SPA.

- Add react, react-dom, @stacks/connect, @stacks/network, @stacks/transactions
- Create client scaffold: App, Layout, WalletConnect, Home components
- Configure Vite client build (vite.config.client.ts)
- Add wrangler assets binding for SPA serving with SPA fallback
- Update Worker routing: JSON for agents, SPA for humans
- Keep all Hono backend API routes intact (/api/ask-arc, /health, /.well-known/agent.json)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Migrate research endpoints from arc0me-site:
- GET /api/research (free discovery)
- GET /api/research/latest (2500 sats sBTC)
- GET /api/research/:date (1000 sats sBTC)

Add relay-based x402 payment helpers (src/lib/x402.ts).
Add RESEARCH_KV binding for digest storage.
Update agent card and service directory.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Add hash-based routing (home + services) to App.tsx
- Create Services.tsx with full capability inventory across 6 categories:
  Paid API, Autonomous Ops, Bitcoin/Stacks, Content, Agent Network, Monitoring
- Wallet-gated interactive forms: Ask Arc query + Research Feed browser
- Add navigation links (Home/Services) in Layout header
- Update Home page to link to services catalog
- All services show status (live/coming-soon), endpoints, cost, tags

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Serves Arc's agent registration file at /.well-known/agent-registration.json
for ERC-8004 domain verification and agent discovery. Includes identity,
services, trust models, and global ID per the ERC-8004 spec.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add Ask Arc tiers (250/2500/10000 sats) and PR Review service
(15000/30000 sats) to services catalog. Add /services/ route with
path-based routing. Update agent card, landing page, and JSON
service directory to reflect new pricing structure.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
…achine

Exposes Arc's architecture diagram on arc0btc.com. New standalone HTML page
at /architecture/ renders the state machine (73 sensors, dispatch flow,
decision points) via Mermaid.js CDN. Agents get JSON metadata. Nav updated
with Architecture link. Home page links to it near Services section.

Source: skills/arc-architecture-review/state-machine.md (2026-03-12T06:46Z)

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
HTML meta description now includes "services" for sensor compatibility.
New /.well-known/x402 endpoint advertises x402 payment capabilities.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Architecture was a separate server-rendered page causing jarring full-page
reload when navigating from the SPA. Now handled as a proper React route
with Mermaid diagram loaded dynamically. Server route updated to serve
SPA for human visitors (agents still get JSON).

Footer and home page health/agent-card links now open in new tab since
they return raw JSON.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant