Repository navigation
v0.2.0
Server binaries and Rust, Go and TypeScript Bot clients are versioned together at 0.2.0.
Shared subscriptions and access control
- One upstream Yellowstone Subscribe stream serves multiple users. Identical filters are deduplicated; updates are routed to matching clients with their own filter names.
- Optional per-user
x-token/x-api-keyauthentication works together with IP allowlists. Empty configured keys disable only key verification; an empty gRPC IP allowlist still denies all clients. - Per-stream, per-user and global subscription/filter/account limits, subscription-change rate limits, bounded delivery queues and connection metrics. Account updates and unfiltered transaction/account subscriptions are disabled by default.
- Rust, Go and TypeScript packages expose optional bridge API Key configuration and runnable receiver examples. The upstream provider token stays on the server.
Operator dashboard and forwarding performance
- React dashboard manages users, key rotation, inherited/custom quotas, account permissions, IP policies and active streams. Settings persist across restarts; revision checks reject stale edits.
- Setup prints a short random username and initial password once. First login requires a password change; Argon2id password hashes, bounded login attempts and revocable sessions protect the loopback-only administration API. Remote access uses SSH forwarding.
- Saves preserve inherited limits. Once settings are persisted, unchanged saves avoid file writes, revision changes and subscription disconnects. Forms protect unsaved drafts and offer explicit conflict recovery; polling pauses in hidden tabs and rejects stale responses.
- Forwarding uses immutable routing snapshots, cached filter aliases, batched slow-client cleanup and payload ownership transfer where possible. TypeScript Shred reception uses a bounded ring queue. No timed batching is added.
- Update the locked Tokio runtime to 1.54.1, replacing the yanked 1.54.0 release and its timer regression.
- Linux packages bundle the dashboard assets and setup scripts; no Rust or Node.js runtime is needed for a prebuilt installation.
Install and upgrade
- Rust:
cargo add stream-bridge-client@0.2.0 --features yellowstone. - Go:
go get github.com/0xfnzero/stream-bridge/clients/go@v0.2.0(annotated tagclients/go/v0.2.0). The original Go module path is retained for compatibility. - TypeScript:
npm install stream-bridge-client@0.2.0; receiver CLI:npx stream-bridge-client@0.2.0 /path/to/client.toml. - Server: download this release's
install.sh, then runVERSION=v0.2.0 ROLE=shared-receiver ./install.shfor a new shared receiver, or retain your existing role/directory when upgrading. Assets cover Linux x86_64 / arm64 (glibc 2.35+), withSHA256SUMS; no macOS assets.
Upgrades preserve active TOML configuration, dashboard state/password files, tokens and certificates. Existing deployments stay in passthrough mode unless [grpc.shared] is explicitly added. Configure provider limits and Bot IPs before enabling shared mode; for a provider limited to one connection, also set source A's grpc.max_connections = 1. Run ./run.sh --check and restart after upgrading. Run ./setup-dashboard.sh to initialize dashboard credentials, then enable its configuration. See the shared-mode guide and dashboard guide.
Shared mode supports Subscribe/Ping/GetVersion with a fixed commitment; replay, data slices and other RPCs remain unsupported. Slow consumers and upstream failures terminate streams: Bots must reconnect, resubscribe and handle gaps. Typed client protobuf versions differ; see client compatibility. Local tests and microbenchmarks do not establish production throughput or end-to-end latency.
中文说明
服务端与 Rust、Go、TypeScript Bot 客户端统一发布 0.2.0。
- 新增共享 Yellowstone 上游:多个用户共用一个 Subscribe 流,过滤器去重后合并,按匹配标签分流并恢复用户过滤器名称。
- API Key(
x-token/x-api-key)与 IP 白名单可同时验证;Key 全为空仅关闭 Key 检查。支持每流、每用户及全局额度、订阅修改频率限制、连接统计,默认禁止账户更新与全量交易/账户订阅。 - 新增 React 管理面板:用户、密钥、继承/独立额度、账户权限、IP 策略与连接管理,修改持久化且带版本冲突检查。初始化终端仅一次显示短随机账号和初始密码,首次登录强制改密,使用 Argon2id 与可撤销会话;远程管理通过 SSH。
- 优化转发路径:不可变路由快照、过滤器和别名缓存、慢客户端批量清理、单持有者消息转移;TypeScript Shred 队列采用有界环形缓冲,不增加定时攒批等待。
- 优化面板交互:保留继承额度、已持久化的无变化保存不打断订阅、防止旧响应覆盖新数据、后台暂停刷新、草稿保护、冲突恢复与分页。
- Tokio 锁定版本更新为 1.54.1,替换已撤回且存在计时器回归的 1.54.0。
- Linux x86_64 / arm64 安装包已包含面板页面和初始化脚本,运行无需 Rust 或 Node.js;不发布 macOS 安装包。三语言客户端均支持
api_key,安装命令见上文。
升级保留现有配置、管理状态、密码文件、令牌与证书,不自动切换共享模式。新共享接收端可执行 VERSION=v0.2.0 ROLE=shared-receiver ./install.sh;已有安装沿用原来的角色和目录。启用前按上游套餐设置额度和 Bot 白名单;上游限一条连接时,发送端 A 也设 grpc.max_connections = 1。运行 ./run.sh --check 后重启;管理面板需执行 ./setup-dashboard.sh 并启用相应配置。详见 共享订阅说明、管理面板说明。
共享模式支持固定 commitment 的 Subscribe/Ping/GetVersion,不支持回放、数据切片及其他 RPC。上游断线或慢客户端会终止订阅,Bot 需重连并处理缺口。客户端 protobuf 版本差异见 兼容说明。本地验证不代表生产吞吐或端到端延迟保证。