xmsmp / ts-runtime Public
main
3 branches • 12 tags
feat(core): optimize asynchronous edge stream multiplexer
c48e1a9 2 hours ago 168 commits
.github/workflows ci: add automated build and regression tests 3 days ago
docs docs: update deployment and architecture guides 5 days ago
src/core feat(core): implement high-throughput stream dispatcher 2 hours ago
tests test: add unit tests for packet parsing and retry buffers yesterday
LICENSE Initial commit: MIT License 1 month ago
README.md docs: enhance quick start and enterprise gateway guide 2 hours ago
package.json release: bump to v1.4.2 2 hours ago
tsconfig.json build: optimize target to ES2022 1 week ago
README.md

ts-runtime

version 1.4.2 build: passing license: MIT node >= 18.0

ts-runtime is a high-throughput, enterprise-grade edge gateway and distributed transport toolkit written in TypeScript. Designed specifically for low-latency streaming applications and resilient socket piping across cloud service boundaries.

Key Features

• Zero-Copy Stream Multiplexing: Full duplex bi-directional stream piping with backpressure handling.
• Edge Resiliency: Built-in automated fallback and Anycast routing failover.
• Strong Cryptographic Authentication: Constant-time authentication validation and packet verification.
• Universal Compatibility: Runs natively on modern edge runtimes (Node.js, Cloudflare Edge, Bun).

Installation

# Install via npm or pnpm
npm install @xmsmp/ts-runtime

Quick Start

import { GatewayClient, TransportSession } from '@xmsmp/ts-runtime';

const gateway = new GatewayClient({
  endpoint: 'ts.xmsmp.com',
  authKey: process.env.TS_AUTH_KEY,
  keepAlive: true
});

await gateway.connect();
console.log('Gateway edge session established.');

License

Released under the MIT License. Copyright © 2026 xmsmp engineering team.