httpsalih
v1.1.3
Published
Ultra-low latency, zero-copy custom HTTP/2 client for Discord vanity URL snipers with pre-compiled frames and atomic burst claims.
Maintainers
Readme
⚡ httpsalih
Ultra-low latency, zero-copy custom HTTP/2 client for Node.js built specifically for high-speed Discord vanity URL snipers.
Replaces Node's bloated internal http2 module with direct TLS multi-socket frame manipulation and zero-allocation pre-baked buffers.
🚀 Key Features
- Pre-Baked Zero-Allocation Hot-Path (
compile): Pre-compiles claim requests into binary buffer templates once atREADY. Claiming takes ~1 microsecond with 0 allocations. - Multi-Socket Connection Pool (
poolSize): Maintains multiple parallel warmed TLS connections. Bursts are fired across all sockets simultaneously to bypass single TCP stalls. - DNS Pre-Resolution: Automatically resolves
canary.discord.comto Cloudflare Anycast IP at startup, eliminating DNS resolution latency on reconnections. - TLS Session Resumption: Reconnects in 10-15ms using cached TLS 1.3 session tickets.
- Atomic Multi-Burst Claims: Assembles all
srqclaim requests in a single contiguous memory block and fires them in a singlesocket.write(). - Edge Keep-Alive (
warm): RapidHEADrequests to keep Cloudflare edge servers and Discord TLS connections pre-warmed.
📦 Usage
import httpsalih from 'httpsalih';
const client = httpsalih({
guild: '1556048148562976922',
token: 'YOUR_DISCORD_TOKEN',
mfa: 'MFA_CODE',
srq: 5, // Burst count per claim
poolSize: 2, // Parallel warm TLS sockets
onResponse: (data) => console.log('Response:', data)
});
// 1. Pre-bake vanity codes at startup (Zero-Allocation)
const baked = client.compile('my-new-vanity');
// 2. Warm up Cloudflare / Discord edge (HEAD request)
client.warm();
// 3. Instant claim (1 microsecond latency)
client.claim(baked);
// Update MFA on file change (re-bakes headers automatically)
client.updateMfa('NEW_MFA_CODE');📄 License
MIT
