bytesynq-cli
v1.0.2
Published
Localhost forwarding CLI for ByteSynq
Readme
⚡ ByteSynq CLI
ByteSynq CLI is the official command-line companion for the ByteSynq platform. It acts as a secure, real-time reverse tunnel that intercepts third-party cloud webhooks (like Stripe, GitHub, or Shopify) and routes them directly to your local development environment—bypassing firewalls and NATs instantly.
Say goodbye to exposing your localhost to the public internet using clunky proxy tools. Catch, inspect, validate, and tunnel webhooks securely via WebSockets and Redis.
🚀 Installation
Install the CLI globally using npm:
npm install -g bytesynq-cli🛠️ Usage
To start forwarding webhooks to your local machine, you need an Endpoint ID.
- Log into your ByteSynq Dashboard.
- Create a new Endpoint (e.g.,
req_123abc). - Point your third-party API (Stripe, GitHub, etc.) to your public ByteSynq webhook URL.
- Run the CLI to catch the incoming traffic!
Forwarding to localhost
Listen for incoming webhooks and forward them to a local port (e.g., port 3000):
bytesynq listen --endpoint <YOUR_ENDPOINT_ID> --port 3000Example:
bytesynq listen --endpoint req_znwx7 --port 3000Advanced Options
Usage: bytesynq listen [options]
Listen for webhooks and forward them locally
Options:
-e, --endpoint <id> Endpoint ID to listen to (required)
-p, --port <port> Local port to forward to (e.g., 3000) (required)
-s, --server <url> ByteSynq server URL (default: "https://bytesynq.onrender.com")
-h, --help display help for command🌐 How it works
- The CLI establishes a persistent WebSocket connection to the ByteSynq production server.
- It joins a dedicated Redis Pub/Sub room specific to your Endpoint ID.
- When the server receives a webhook on your public endpoint URL, it instantly broadcasts the payload.
- The CLI intercepts the broadcast in milliseconds and executes a mirror HTTP request against your local application port.
🤝 Contributing
Contributions are welcome! If you'd like to improve ByteSynq, please visit the Main GitHub Repository.
📄 License
Distributed under the MIT License.
