Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
wsx-proto/wsxServer for Wsx framework. RPC, Pub/Sub, routing and end-to-end typesafety for WebSockets
This package works with Bun
JSR Score
100%
Published
a month ago (0.0.16)
Server for Wsx framework. RPC, Pub/Sub, routing and end-to-end typesafety for WebSockets
import { Wsx } from "@wsx/server" import { z } from "zod" import { db } from "./db" // your database service export const app = new Wsx() .route( "/user/create", async ({ body: {email} }) => { const id = await db.createUser(email) return id }, { body: z.object({ email: z.string() }), response: z.number().int(), }, ) .listen(3000)
Tip
Supports Standard Schema validators
Built and signed on
GitHub Actions
Add Package
bunx jsr add @wsx/server
Import symbol
import * as server from "@wsx/server";