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 --> <!-- automd:badges -->
@@ -7,24 +7,23 @@
<!-- /automd --> <!-- /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) 👉 [📖 documentation](https://crossws.unjs.io)
## Features ## 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] [^1]: crossws supports Node.js via [npm:ws](https://github.com/websockets/ws) (prebundled) or [uWebSockets.js](https://github.com/uNetworking/uWebSockets.js).
> This project and API are under development.
## Contribution ## Contribution

View File

@@ -1,9 +1,8 @@
# yaml-language-server: $schema=https://unpkg.com/undocs/schema/config.json # yaml-language-server: $schema=https://unpkg.com/undocs/schema/config.json
name: crossws name: crossws
shortDescription: runtime agnostic websocket servers shortDescription: Unified WebSocket Servers
description: Unified WebSocket API for Node.js, Deno, Bun and Cloudflare description: elegant, typed, and simple toolkit to implement cross-platform WebSocket servers.
Workers.
github: unjs/crossws github: unjs/crossws
landing: landing:
heroLinks: heroLinks:
@@ -12,17 +11,11 @@ landing:
icon: i-heroicons-play icon: i-heroicons-play
to: https://stackblitz.com/github/unjs/crossws/tree/main/examples/h3?file=app.ts to: https://stackblitz.com/github/unjs/crossws/tree/main/examples/h3?file=app.ts
features: features:
- title: Runtime Agnostic - title: 🧩 Pluggable
description: 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.
Seamlessly integrates with Bun, Deno, Cloudflare Workers and Node.js - title: 📦 Lightweight
(ws or uWebSockets.js) 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 - title: 🚀 Made for Performance
description: description: High-performance and simple hooks API, without per-connection callback creation.
High-performance server hooks API designed to avoid creating callbacks - title: 🌟 Developer Friendly
per client but once. description: Typed hooks API and developer-friendly object inspection.
- 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.