@streamyy/server
v0.1.1
Published
Socket.IO runtime and framework adapters for Streamyy signaling backends.
Readme
@streamyy/server
Backend runtime package for Streamyy.
It provides the Socket.IO signaling transport, runtime bootstrap helpers, and lightweight framework adapters for Express, Fastify, and Nest-style setups.
Install
npm install @streamyy/server socket.ioUsage
import { createServer } from "node:http";
import { createStreammyRuntime } from "@streamyy/server";
const httpServer = createServer();
const streammy = createStreammyRuntime({
httpServer,
rateLimit: {
connectionAttempts: { max: 20, windowMs: 60_000 },
callInitiation: { max: 8, windowMs: 60_000 },
},
auth: async () => ({ userId: "user-1", deviceId: "device-1" }),
});
streammy.bind();
httpServer.listen(3000);Includes
- Socket.IO signaling event binding
- runtime creation with in-memory persistence by default
- configurable in-memory rate limiting for connection attempts and call initiation
- Express adapter
- Fastify adapter
- Nest-style module helpers
See the workspace root README.md for end-to-end usage with persistence adapters.
