What Changed and Why It Matters
The DazBox rebuild addresses three fundamental pain points that plague Lightning node operators: slow interfaces that hide critical issues, incomplete analytics that lead to poor routing decisions, and fee optimizers that change settings without evidence or safety nets.
Before vs After:
Previous State:
- • ~1,027 ms dashboard load time
- • 4–5 separate API calls per page
- • Fragmented analytics across tools
- • Fee changes with no audit trail
- • Undocumented API surface
Current State:
- • 350–500 ms median response time
- • Single consolidated endpoint
- • Unified analytics with 360° view
- • Shadow Mode + rollback in <30 s
- • Full OpenAPI/Swagger docs
The changelog documents every architectural decision and performance improvement made during this rebuild.
Architecture That Won't Fight You
Clean architecture isn't about following dogma—it's about building systems that make the easy things easy and the hard things possible.
Business Slices
Features grouped by domain (authentication, products, checkout, orders, profile) to keep code paths short and testable.
Strong Domain Layer
Business logic and entities live in domain/ with Zod validation. Technical details are downstream, not mixed in.
Strict Colocation
UI, hooks, tests, and types for a feature live together. Fewer context switches, fewer regressions.
Internationalization & App Router
Full i18n via Next-Intl and App Router for layout/data boundary control.

Performance: Speed You Can Feel
- •Dashboard load time: ~350–500 ms median after refactor
- •Caching: Redis Upstash + Vercel Cache aiming >80% hit rate on hot paths
- •API consolidation:
/api/user/dashboard-datatrims calls to a single fetch, cutting network overhead
How to validate on your side:
Open DevTools → Network, hard refresh, measure TTFB + contentful paint for dashboard route.
Core Engine (Phase 2): Done and Deployed
The MCP (Monetary Control Platform) now backs every "smart" decision.
LNbits Client
15+ endpoints covered for wallet ops. See the LNbits integration guide for setup details.
Auth & Security
Macaroon auth with AES-256 encryption and auto-rotation.
Decision Engine
8 weighted heuristics (centrality, liquidity, activity, etc.) produce transparent scores.
Robustness
Transaction Manager with ACID properties; Rollback Orchestrator tested for auto/manual rollback in under 30 s.
Lightning Analytics You Can Act On
Analytics are only valuable if they lead to action. DazBox surfaces the metrics that matter and makes them actionable.
360° Node Analysis
- • Total capacity distribution
- • Channel health scoring
- • Partner quality assessment
Max-Flow Probability
- • Estimate payment success across routes
- • Identify bottlenecks
- • Optimize liquidity placement
Centrality Metrics
- • Identify strategic peers
- • Measure network importance
- • Track routing potential
Financial Analysis (ROI)
- • See where fees earn
- • Track revenue per channel
- • Identify unprofitable connections
UI tools now live on dazno.de:

Fee Optimizer: Powerful, But Safe First
Safety First Philosophy
The fee optimizer never makes changes without your explicit approval. Shadow Mode is the default to prevent accidental fee churn in volatile conditions.
Shadow Mode
Recommendations only—no automatic writes—so you can compare vs. current fee table.
Learn more about Fee Optimizer →One-click Apply + Rollback
Apply changes, monitor, revert within ~30 s if metrics degrade.
Audit Trail
Every optimization linked to the heuristics and metrics that justified it.
RAG Intelligence Workflow (Explained Simply)
Retrieval-Augmented Generation combines real-time data with historical context to produce evidence-based recommendations.
Cache first
Redis check; cache hit replies in <50 ms.
Parallel fetch
Sparkseer (network metrics), LNbits (local wallet), MongoDB (history).
Local embeddings
Ollama for embeddings and draft generation to reduce latency/cost.
Context build
Vector search over guides, best practices, and prior analyses.
Strategic review
Anthropic Claude proposes up to 5 actions with justification, expected impact, difficulty, ETA, and exact CLI commands.
Why Shadow Mode?
It forces evidence-first operations and prevents accidental fee churn in volatile conditions.

API Documentation for Builders
OpenAPI/Swagger covers 98+ endpoints in 16 categories including:
Wallet Management
Balances, tx history, invoice create/pay (via LNbits).
Node Management
Multi-tenant CRUD for nodes.
Analytics
10+ endpoints including Max-Flow, centrality, ROI, and performance scoring.
Fee Optimizer
Trigger, get recommendations, apply, rollback.
Quick Glossary
Max-Flow Probability
Likelihood a payment finds sufficient capacity across available paths.
Centrality
How "connected" your node is in the network graph—a proxy for route attractiveness.
Shadow Mode
Recommendations only; no automatic writes to your node until you confirm.
FAQ
Does DazBox change my fees automatically?
Not by default. The optimizer runs in Shadow Mode until you approve.
Can I roll back instantly if an optimization underperforms?
Yes. Manual or auto rollback typically completes in under ~30 s.
Do I need LNbits?
DazBox integrates with LNbits for wallet and node ops. You can explore analytics read-only before enabling writes.
What data do you store?
Operational metrics and analysis results in MongoDB; credentials are encrypted; auth uses macaroons with rotation.
Ready to Optimize Your Lightning Node?
Experience faster dashboards, smarter analytics, and safer fee optimization with DazBox.