nex-wobble-bridge-architecture
Canonical Next.js bridge for secure, real-time communication between browser UIs and local agent gateways.
- Securely proxy local agent logs to a remote Next.js dashboard
- Implement a 'fail-closed' whitelist for agent control commands
- Build a persistent two-hop WebSocket connection that beats Cloudflare timeouts
$12
· or 60 creditsSecure checkout via Stripe
Included in download
- Securely proxy local agent logs to a remote Next.js dashboard
- Implement a 'fail-closed' whitelist for agent control commands
- terminal, file_read, file_write automation included
Sample input
I need to connect my Next.js admin dashboard to my local agent gateway so I can restart agents and see their logs in real-time.
Sample output
Generating Nex Bridge Architecture: - src/app/api/bridge/action/route.ts (with agent whitelist) - src/app/api/bridge/logs/route.ts (with AbortSignal timeouts) - server/index.js (WebSocket proxy shim) - src/lib/useBridge.ts (React hook with auto-reconnect) - .env.example (Gateway config)
nex-wobble-bridge-architecture
Canonical Next.js bridge for secure, real-time communication between browser UIs and local agent gateways.
$12
· or 60 creditsSecure checkout via Stripe
Included in download
- Securely proxy local agent logs to a remote Next.js dashboard
- Implement a 'fail-closed' whitelist for agent control commands
- terminal, file_read, file_write automation included
- Instant install
Sample input
I need to connect my Next.js admin dashboard to my local agent gateway so I can restart agents and see their logs in real-time.
Sample output
Generating Nex Bridge Architecture: - src/app/api/bridge/action/route.ts (with agent whitelist) - src/app/api/bridge/logs/route.ts (with AbortSignal timeouts) - server/index.js (WebSocket proxy shim) - src/lib/useBridge.ts (React hook with auto-reconnect) - .env.example (Gateway config)
About This Skill
Architectural Bridge for Local Agent Gateways
Modern browser-based agent UIs face a common networking hurdle: connecting a public-facing Next.js frontend to a local, private agent gateway (like OpenClaw) without exposing your backend to the public internet or hitting frustrating Cloudflare WebSocket timeouts.
This skill implements the Two-Hop WebSocket Proxy architecture. It provides a robust communication layer that sits between your Next.js App Router and your local agent services. By mediating the connection through a Node.js shim, it enables real-time service status, log streaming, and action whitelisting while ensuring your Gateway remains securely on your private network.
What it does
- Two-Hop WebSocket Proxy: Proxies real-time messages from Browser to Next.js Server to Local Gateway, surviving restarts and timeouts.
- Secure Action Whitelisting: Provides API routes with hardcoded agent/action whitelists to prevent unauthorized command execution.
- Resilient Client Hook: Includes a React
useBridgehook with automated exponential backoff and connection state management. - Unified Agent API: Standardized routes for service status, log tailing, and Telegram bot passthrough with signed timeouts.
Why use this skill?
While you could try to prompt an AI to "proxy a websocket," this skill delivers a production-hardened pattern used in real agent-orchestration stacks. It handles the edge cases developers often miss: graceful degradation when the bridge is offline, explicit timeout signaling to prevent hung fetches, and a "fail-closed" security model that avoids environment variable leakage.
Use Cases
- Securely proxy local agent logs to a remote Next.js dashboard
- Implement a 'fail-closed' whitelist for agent control commands
- Build a persistent two-hop WebSocket connection that beats Cloudflare timeouts
- Route Telegram bot commands through a Next.js server to private agent backends
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/nex-wobble-bridge-architecture -o /tmp/nex-wobble-bridge-architecture.zip && unzip -o /tmp/nex-wobble-bridge-architecture.zip -d ~/.claude/skills && rm /tmp/nex-wobble-bridge-architecture.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
Allowed Hosts
File Scopes