✨ Features
- 👀 Instant Setup - Deploy to Cloudflare Workers in 30 seconds
- 🌍 Decentralized - Community-run nodes across the globe
- ⚡ Edge Performance - Cloudflare Workers for <50ms latency worldwide
- 🔄 Automatic Failover - Client seamlessly switches between nodes
- 📊 Built-in Monitoring - Health checks, metrics, and status dashboard
- 🔒 Production Ready - Rate limiting, security headers, graceful shutdown
- 🤝 UV Compatible - Works with Ultraviolet and other TompHTTP clients
🏗️ Architecture
┌─────────────────────────────────────────────────────────────────────────┐
│ YOUR APPLICATION │
│ (SperaxOS, Ultraviolet, etc.) │
└─────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────┐
│ OPENBARE CLIENT │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Server Pool │──│ Failover │──│ Discovery │ │
│ │ Manager │ │ Logic │ │ Client │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
└─────────────────────────────────────────────────────────────────────────┘
│
┌───────────────┼───────────────┐
▼ ▼ ▼
┌───────────┐ ┌───────────┐ ┌───────────┐
│ Node 1 │ │ Node 2 │ │ Node 3 │
│ (US) │ │ (EU) │ │ (Asia) │
│ Vercel │ │ Cloudflare│ │ Railway │
└───────────┘ └───────────┘ └───────────┘
│ │ │
└───────────────┼───────────────┘
▼
┌───────────────────────────────┐
│ OPENBARE REGISTRY │
│ (Optional - Node Discovery) │
└───────────────────────────────┘
🚀 Quick Start
Option 1: Point the Client at a Registry
The client can auto-discover nodes from a registry. @openbare/client is a workspace
package in this repo and is not published to npm, so import it from a clone (npm install
at the repo root links every workspace).
No public registry is currently hosted: registry.openbare.dev does not resolve while
hosting is being migrated. Run your own with npm run start:registry (see
/registry) and point registryUrl at it, or skip discovery and list nodes
explicitly as shown below.
import { OpenBareClient } from '@openbare/client';
// With your own registry (autoDiscover is off by default)
const client = new OpenBareClient({
registryUrl: 'http://localhost:3000',
autoDiscover: true
});
// Or without a registry, using an explicit node list
const direct = new OpenBareClient({
servers: ['https://openbare.xyz/bare/']
});
// Fetch any URL through the proxy network
const response = await direct.fetch('https://example.com');
Option 2: Run Locally
# Clone the repo
git clone https://github.com/nirholas/openbare.git
cd openbare
# Start the server
cd server
npm install
npm start
# Server running at http://localhost:8080
# Bare endpoint at http://localhost:8080/bare/
Option 3: Deploy Your Own (see below)
🌐 Deploy Your Own Node
Recommended: Cloudflare Workers
| Platform | Deploy | Best For |
|---|
| Cloudflare Workers ⭐ | Deploy to Workers → | Global edge, WebSocket support, free tier |
| Render | render.com | Persistent servers, easy setup |
| Fly.io | fly.io | Global, WebSocket support |
| Self-hosted | Docker → | Full control |
⚠️ Note: Vercel and Railway don't work well for proxy servers (serverless limitations / banned dependencies).
Cloudflare Workers (Recommended)
Deploy to 300+ edge locations worldwide with WebSocket support:
cd edge
npm install
npx wrangler login
npx wrangler deploy