docs: update

This commit is contained in:
Pooya Parsa
2024-08-07 13:01:08 +02:00
parent b665048d0f
commit 2e49cc34c0
2 changed files with 18 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
# ⛨ CrossWS
# crossws
<!-- automd:badges -->
@@ -7,24 +7,23 @@
<!-- /automd -->
Elegant, typed, and simple interface to implement platform-agnostic WebSocket servers.
Elegant, typed, and simple toolkit to implement cross-platform WebSocket servers.
👉 [📖 documentation](https://crossws.unjs.io)
## Features
🧩 Seamlessly integrates with, [Bun](https://bun.sh/), [Deno](https://deno.com/), [Cloudflare Workers](https://workers.cloudflare.com/) and [Node.js](https://nodejs.org/en) ([ws](https://github.com/websockets/ws) || [uWebSockets](https://github.com/uNetworking/uWebSockets.js)).
🧩 Seamlessly integrates with [Bun](https://crossws.unjs.io/adapters/bun), [Cloudflare Workers](https://crossws.unjs.io/adapters/cloudflare), [Deno](https://crossws.unjs.io/adapters/deno) and [Node.js](https://crossws.unjs.io/adapters/node) and any compatible web framework.
🚀 High-performance server hooks, avoiding heavy per-connection events API ([why](https://bun.sh/docs/api/websockets#lcYFjkFYJC-summary))
✅ Prebundled with [ws](https://github.com/websockets/ws) for Node.js support with alternative/much faster [uWebSockets](https://crossws.unjs.io/adapters/node#uwebsockets) adapter.
📦 No external dependencies, includes [ws](https://github.com/websockets/ws) for Node.js support
📦 Extremely lightweight and tree-shakable conditional ESM exports.
💡 Extremely lightweight and tree-shakable packaging with ESM and CJS support
🚀 High-performance and simple hooks API, without per-connection callback creation.
🔍 Developer-friendly object logging
🌟 Typed hooks API and developer-friendly object inspection.
> [!IMPORTANT]
> This project and API are under development.
[^1]: crossws supports Node.js via [npm:ws](https://github.com/websockets/ws) (prebundled) or [uWebSockets.js](https://github.com/uNetworking/uWebSockets.js).
## Contribution

View File

@@ -1,9 +1,8 @@
# yaml-language-server: $schema=https://unpkg.com/undocs/schema/config.json
name: crossws
shortDescription: runtime agnostic websocket servers
description: Unified WebSocket API for Node.js, Deno, Bun and Cloudflare
Workers.
shortDescription: Unified WebSocket Servers
description: elegant, typed, and simple toolkit to implement cross-platform WebSocket servers.
github: unjs/crossws
landing:
heroLinks:
@@ -12,17 +11,11 @@ landing:
icon: i-heroicons-play
to: https://stackblitz.com/github/unjs/crossws/tree/main/examples/h3?file=app.ts
features:
- title: Runtime Agnostic
description:
Seamlessly integrates with Bun, Deno, Cloudflare Workers and Node.js
(ws or uWebSockets.js)
- title: Made for Performance
description:
High-performance server hooks API designed to avoid creating callbacks
per client but once.
- title: Lightweight
description:
Zero Dependency with bundled support for Node.js support. Extremely lightweight
and tree-shakable packaging with ESM and CJS support.
- title: Developer Friendly
description: Typed Hooks API and human friendly logging support.
- title: 🧩 Pluggable
description: Seamlessly integrates with [Bun](https://crossws.unjs.io/adapters/bun), [Cloudflare Workers](https://crossws.unjs.io/adapters/cloudflare), [Deno](https://crossws.unjs.io/adapters/deno) and [Node.js](https://crossws.unjs.io/adapters/node) and any compatible web framework.
- title: 📦 Lightweight
description: Extremely lightweight and tree-shakable conditional ESM exports. Prebundled with [ws](https://github.com/websockets/ws) for Node.js support.
- title: 🚀 Made for Performance
description: High-performance and simple hooks API, without per-connection callback creation.
- title: 🌟 Developer Friendly
description: Typed hooks API and developer-friendly object inspection.