libwebsockets
brew install libwebsockets
v4.5.8
MIT
C library for WebSocket servers and clients with HTTP/2, QUIC, and TLS support.
Why you might care
Embed WebSocket and HTTP functionality into C/C++ applications with minimal overhead. Supports multiple TLS backends (OpenSSL, GnuTLS, mbed TLS), event loop integration (libevent, libuv), and modern protocols like HTTP/2 and QUIC. Lightweight and portable across embedded, desktop, and server platforms.
2.2k
30-day installs · #929
8.4k
90-day · #884
29.8k
365-day · #885
5.3k
★ GitHub stars · updated 2mo ago
Runtime dependencies
Build dependencies
GitHub topics
c
c-library
client-server
embeddable
freertos
http2
libev
libevent
libuv
libwebsockets
lightweight
lws
portable-library
sshd
websockets
Links
- https://github.com/warmcat/libwebsockets
- GitHub: warmcat/libwebsockets
- Brew formula source: Formula/lib/libwebsockets.rb
Blurb generated by claude-haiku-4-5 on 2mo ago.
Raw metadata
{
"aliases": [],
"alternatives": [
"libcurl",
"nghttp2",
"OpenSSL"
],
"build_dependencies": [
"cmake"
],
"categories": [
"library",
"networking",
"web-server"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"libevent",
"libuv",
"openssl@3"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "C websockets server library",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:12+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "libwebsockets",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-20T18:24:38Z",
"github_readme_excerpt": "[](https://libwebsockets.org/git/libwebsockets) [](https://scan.coverity.com/projects/3576) [](https://bestpractices.coreinfrastructure.org/projects/2266) \n\n# Libwebsockets\n\n** NEW features available on main **\n\n - Support for SChannel (windows native TLS, no need for OpenSSL build!), GnuTLS, and BearSSL added\n - QUIC + H3 + Webtranspoer implementation, using aws-lc, wolfssl, boringssl, libressl, gnutls, and schannel (OpenSSL is h1/h2 -only, mbedtls can do it via a patch)\n\n|LWS version|Platform|Protocols|Default TLS|\n|---|---|---|---|\n|\u003c= 4.5|non-FreeRTOS|any|OpenSSL|\n|\u003c= 4.5|FreeRTOS|any|mbedTLS|\n|5.0+|Windows|any|schannel|\n|5.0+|*nix|h1, h2|OpenSSL|\n|5.0+|*nix|quic/h3|GnuTLS|\n|5.0+|FreeRTOS|any|mbedTLS|\n\nquic/h3 is enabled for build by default... necessitating GnuTLS instead of OpenSSL to make quic/h3 work.\n\n\n| TLS Library | Server TLS | Client TLS | QUIC Transport (TLS 1.3) | WSS / HTTPS | MQTT over TLS | ALPN (HTTP/2) | DTLS (WebRTC) | Session Cache | JIT Trust | GenCrypto |\n| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| **GnuTLS** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **No** | **Yes** |\n| **OpenSSL** | **Yes** | **Yes** | **No*** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |\n| **LibreSSL** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **No** | **Yes** |\n| **AWS-LC** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **No** | **Yes** |\n| **BoringSSL** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **No** | **Yes** |\n| **wolfSSL** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **",
"github_repo": "warmcat/libwebsockets",
"github_stars": 5299,
"github_topics": [
"c",
"c-library",
"client-server",
"embeddable",
"freertos",
"http2",
"libev",
"libevent",
"libuv",
"libwebsockets",
"lightweight",
"lws",
"portable-library",
"sshd",
"websockets"
],
"homepage": "https://github.com/warmcat/libwebsockets",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 2220,
"installs_365d": 29784,
"installs_90d": 8392,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": "2026-06-20T23:47:55+00:00",
"llm_model": "claude-haiku-4-5",
"name": "libwebsockets",
"oldnames": [],
"one_liner": "C library for WebSocket servers and clients with HTTP/2, QUIC, and TLS support.",
"optional_dependencies": [],
"rank_30d": 929,
"rank_365d": 885,
"rank_90d": 884,
"raw_hash": "c09322e349310959",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/lib/libwebsockets.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "4.5.8",
"versioned_formulae": [],
"why_use_this": "Embed WebSocket and HTTP functionality into C/C++ applications with minimal overhead. Supports multiple TLS backends (OpenSSL, GnuTLS, mbed TLS), event loop integration (libevent, libuv), and modern protocols like HTTP/2 and QUIC. Lightweight and portable across embedded, desktop, and server platforms."
}