<div align="center">
# ๐ OpenBare
### A decentralized, censorship-resistant web proxy network
[](https://nodejs.org/)
[](https://workers.cloudflare.com/)
**Deploy your own node in 30 seconds** โข **Use community nodes** โข **Browse freely**
[Quick Start](#-quick-start) โข [Deploy Your Node](#-deploy-your-own-node) โข [Documentation](#-documentation) โข [Contributing](#-contributing)
</div>
---
## โจ 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`](./registry)) and point `registryUrl` at it, or skip discovery and list nodes
> explicitly as shown below.
```javascript
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
```bash
# 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 โ](#cloudflare-workers) | Global edge, WebSocket support, free tier |
| **Render** | [render.com](https://render.com) | Persistent servers, easy setup |
| **Fly.io** | [fly.io](https://fly.io) | Global, WebSocket support |
| **Self-hosted** | [Docker โ](#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:
```bash
cd edge
npm install
npx wrangler login
npx wrangler deploy
```
You'll get a URL like: `https://openbare-edge.YOUR_SUBDOMAIN.workers.dev`
**Live Example:** `https://openbare.xyz`
### Docker
No prebuilt image is published yet, so build it from `server/Dockerfile`:
```bash
docker build -t openbare ./server
docker run -d \
-p 8080:8080 \
-e NODE_ID=my-node \
-e REGION=us-east \
-e NODE_URL=https://your-public-url.example \
openbare
```
`NODE_URL` is required when `NODE_ENV=production` (the image default); the server refuses
to start without it.
### Manual Deployment
```bash
cd server
npm install
npm start
```
See [Self-Hosting Guide](docs/SELF-HOSTING.md) for detailed instructions.
---
## ๐ฆ Components
| Package | Description | Location |
|---------|-------------|----------|
| **@openbare/server** | Node.js bare server with metrics | [`/server`](./server) |
| **@openbare/client** | Client library with failover | [`/client`](./client) |
| **@openbare/edge** | Cloudflare Workers server | [`/edge`](./edge) |
| **@openbare/registry** | Node discovery service | [`/registry`](./registry) |
---
## ๐ง Configuration
### Environment Variables
```bash
# Node Identification
NODE_ID=my-bare-node # Unique node ID
REGION=us-east # Geographic region
NODE_URL=https://example.com # Public URL
# Rate Limiting
RATE_LIMIT_MAX=100 # Requests per minute
RATE_LIMIT_WINDOW_MS=60000 # Window size
# Registry (Optional)
REGISTRY_URL=http://localhost:3000 # your own registry; no public one is hosted
# Logging
LOG_LEVEL=info # trace/debug/info/warn/error
```
See [`.env.example`](./server/.env.example) for all options.
---
## ๐ API Endpoints
Every OpenBare node exposes these endpoints:
| Endpoint | Method | Description |
|----------|--------|-------------|
| `/` | GET | Server info and status |
| `/bare/` | * | Bare Server protocol |
| `/health` | GET | Health check (for load balancers) |
| `/status` | GET | Detailed metrics |
| `/info` | GET | Node information |
### Example Response: `GET /`
```json
{
"status": "ok",
"name": "OpenBare Server",
"version": "1.0.0",
"node_id": "us-east-abc123",
"region": "us-east",
"uptime_seconds": 86400,
"requests_served": 150000,
"healthy": true,
"bare_endpoint": "/bare/"
}
```
---
## ๐ Documentation
- [**Architecture**](docs/ARCHITECTURE.md) - How OpenBare works
- [**Self-Hosting**](docs/SELF-HOSTING.md) - Deployment guide
- [**API Reference**](docs/API.md) - Full API documentation
- [**Client Usage**](client/README.md) - Client library guide
---
## ๐ค Contributing
We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
### Development Setup
```bash
# Clone the repo
git clone https://github.com/nirholas/openbare.git
cd openbare
# Install all workspace dependencies
npm install
# Start server in dev mode
npm run dev:server
# Run tests
npm test
```
### Areas for Contribution
- ๐ Run a public node
- ๐ Report bugs
- ๐ก Suggest features
- ๐ Improve documentation
- ๐ง Submit PRs
---
## ๐ Security
OpenBare is designed with security in mind:
- **Rate limiting** prevents abuse
- **Helmet.js** sets security headers
- **No logging** of proxied content
- **Registry validation** prevents malicious nodes
Report security issues to: security@openbare.dev
---
## ๐ License
Proprietary - Copyright 2026 nirholas. All rights reserved. See the [LICENSE](LICENSE) file for the full terms.
---
## ๐ Acknowledgments
- [TompHTTP](https://github.com/tomphttp) - Bare Server protocol
- [Ultraviolet](https://github.com/titaniumnetwork-dev/Ultraviolet) - Web proxy framework
- [Titanium Network](https://titaniumnetwork.org/) - Proxy community
---
<div align="center">
**[โฌ Back to Top](#-openbare)**
Made with โค๏ธ by the OpenBare community
</div>
## Documentation
Full documentation site: **https://nirholas.github.io/openbare/**
- [Getting started](docs/getting-started.md) covers install and first run.
- [Examples](docs/examples.md) has copy-paste snippets.
## Star History
[](https://www.star-history.com/#nirholas/openbare&Date)
<!-- three.ws:growth -->
## Support the project
If openbare saves you time, **[star it on GitHub](https://github.com/nirholas/openbare)**. Stars are how other developers and AI agents find the repositories worth trusting, and they cost you one click.
Know someone who would use it? [Post on X](https://twitter.com/intent/tweet?text=openbare%3A%20Decentralized%20web%20proxy%20network%20designed%20for%20censorship%20resistance%2C%20high%20availability&url=https%3A%2F%2Fgithub.com%2Fnirholas%2Fopenbare) ยท [Share on Bluesky](https://bsky.app/intent/compose?text=openbare%3A%20Decentralized%20web%20proxy%20network%20designed%20for%20censorship%20resistance%2C%20high%20availability%20https%3A%2F%2Fgithub.com%2Fnirholas%2Fopenbare) ยท [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Fnirholas%2Fopenbare) ยท [Submit to Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fgithub.com%2Fnirholas%2Fopenbare&t=openbare%3A%20Decentralized%20web%20proxy%20network%20designed%20for%20censorship%20resistance%2C%20high%20availability) ยท [Share on Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fgithub.com%2Fnirholas%2Fopenbare&title=openbare%3A%20Decentralized%20web%20proxy%20network%20designed%20for%20censorship%20resistance%2C%20high%20availability)
## Built for AI agents too
Coding agents and LLM tooling can read this repo directly: [AGENTS.md](./AGENTS.md), [llms.txt](./llms.txt), [llms-full.txt](./llms-full.txt). Point an agent at `https://github.com/nirholas/openbare` and it has the context it needs.
## More from the same author
- [All repositories by nirholas](https://github.com/nirholas/nirholas#readme): the full catalog, grouped by topic
- [three.ws](https://three.ws): the platform for 3D AI agents with Solana wallets, a skill marketplace and x402 payments
- Questions or ideas: [open an issue](https://github.com/nirholas/openbare/issues) or [start a discussion](https://github.com/nirholas/openbare/discussions)
## Contributors
[](https://github.com/nirholas/openbare/graphs/contributors)
<!-- /three.ws:growth -->
<!-- nirholas:watermark -->
---
<p align="center">
Built by <a href="https://github.com/nirholas"><b>nirholas</b></a> ยท <a href="https://x.com/nichxbt">@nichxbt</a> ยท <a href="https://github.com/nirholas">github.com/nirholas</a>
</p>
<!-- /nirholas:watermark -->