https://github.com/notrab/sse-to-json-courier
Forward Server-Sent Events (SSE) to a target URL as JSON.
https://github.com/notrab/sse-to-json-courier
Last synced: 5 months ago
JSON representation
Forward Server-Sent Events (SSE) to a target URL as JSON.
- Host: GitHub
- URL: https://github.com/notrab/sse-to-json-courier
- Owner: notrab
- Created: 2024-08-22T10:32:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T16:28:32.000Z (almost 2 years ago)
- Last Synced: 2025-12-24T03:35:51.912Z (7 months ago)
- Language: Go
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSE to JSON Courier
This is a simple server to forward Server-Sent Events (SSE) to a target URL as JSON.
## CLI
The CLI (mostly used for development purposes) starts the server and forwards the SSE to the target URL.
```bash
go run ./cli/cmd/main.go start --source https://dbname-username.turso.io/beta/listen\?table\=users --target http://localhost:3000 --auth your-auth-token
```
## Server
The server listens for incoming SSE and forwards them to the target URL.
```bash
go run main.go
```