本文へスキップ

crossws

活発
h3js/crossws

Cloudflare Workers・Bun・Deno・Node.js で動く、型付きでシンプルなクロスプラットフォーム WebSocket サーバーツールキット。

GitHub で見る
スター
744
フォーク
45
ウォッチ
744
未解決の Issue
8

この紹介文は現在英語版のみです。

Overview

crossws is an elegant, typed and simple toolkit for implementing cross-platform WebSocket servers. It comes from the UnJS/h3 ecosystem.

Features

  • Integrates with Cloudflare Workers, Bun, Deno and Node.js, and any compatible web framework
  • Prebundled with ws for Node.js, with an optional, much faster uWebSockets adapter
  • Extremely lightweight, tree-shakable conditional ESM exports
  • A high-performance hooks API without per-connection callback creation
  • Typed hooks and developer-friendly object inspection

Why it matters on Cloudflare

Write your WebSocket logic once with crossws hooks and run it on Workers today, or move it to another runtime later without rewriting it.

共通のカテゴリとタグで順位付けした、似たオープンソースプロジェクトです。

すべての Web フレームワークプロジェクト →