@validators-dao/solana-stream-sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,12 +27,32 @@ Solana Stream SDK by Validators DAO - A TypeScript SDK for streaming Solana bloc
|
|
|
27
27
|
<img src="https://storage.slv.dev/PoweredBySolana.svg" alt="Powered By Solana" width="200px" height="95px">
|
|
28
28
|
</a>
|
|
29
29
|
|
|
30
|
-
## What's New in v1.0.
|
|
30
|
+
## What's New in v1.0.1
|
|
31
31
|
|
|
32
32
|
- Yellowstone Geyser gRPC connection upgraded to an NAPI-RS-powered client for better backpressure
|
|
33
|
+
- NAPI-powered Shreds client/decoder so TypeScript can tap Rust-grade throughput
|
|
33
34
|
- Improved backpressure handling and up to 4x streaming efficiency (400% improvement)
|
|
34
35
|
- Faster real-time Geyser streams for TypeScript clients with lower overhead
|
|
35
36
|
|
|
37
|
+
## Production-Ready Geyser Client (TypeScript Best Practices)
|
|
38
|
+
|
|
39
|
+
- Ping/Pong handling to keep Yellowstone gRPC streams alive
|
|
40
|
+
- Exponential reconnect backoff plus `fromSlot` gap recovery
|
|
41
|
+
- Bounded in-memory queue with drop logging for backpressure safety
|
|
42
|
+
- Hot-swappable subscriptions via a JSON file (no reconnect)
|
|
43
|
+
- Optional runtime metrics logging (rates, queue size, drops)
|
|
44
|
+
- Default filters drop vote/failed transactions to reduce traffic
|
|
45
|
+
|
|
46
|
+
Tip: start with slots, then add filters as needed. When resuming from `fromSlot`,
|
|
47
|
+
duplicates are expected.
|
|
48
|
+
|
|
49
|
+
## Performance Highlights
|
|
50
|
+
|
|
51
|
+
- NAPI-powered Geyser gRPC and Shreds client/decoder for high-throughput streaming
|
|
52
|
+
- TypeScript ergonomics with Rust-grade performance under the hood
|
|
53
|
+
- For the absolute fastest signal path, see Rust UDP Shreds in the repo:
|
|
54
|
+
https://github.com/ValidatorsDAO/solana-stream#shreds-udp-pumpfun-watcher-rust
|
|
55
|
+
|
|
36
56
|
## Installation
|
|
37
57
|
|
|
38
58
|
```bash
|