# lunarmodules/luasocket

Network support for the Lua language

Repository: https://github.com/lunarmodules/luasocket
Canonical: https://ross.abutalabs.com/products/luasocket
Homepage: http://lunarmodules.github.io/luasocket/
Language: HTML
License: MIT
License Family: permissive
Last push: 2026-08-17T05:39:55+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 5256, "days_push": 16, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2020, forks 650 (observed 2026-08-28T04:06:06.334189+00:00)

## What it is
LuaSocket is a Lua extension library providing TCP and UDP transport support via C modules, plus Lua modules for common Internet protocols like SMTP, HTTP, and FTP. It also includes utility modules for MIME encoding, URL manipulation, and LTN12 filters, sinks, and sources.

## Use cases
- make http requests from lua
- send email via smtp in lua
- upload and download files over ftp
- open tcp and udp sockets in lua
- encode and decode mime in lua
- parse and build urls in lua

## When to choose
- you need low-level TCP/UDP networking in a Lua application
- you want simple HTTP, SMTP, or FTP client functionality in Lua
- you need a mature, MIT-licensed networking library compatible with Lua 5.1 through 5.4

## When to avoid
- you need asynchronous or high-concurrency networking with an event loop
- you need modern TLS/HTTPS support out of the box
- you are not working in the Lua ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: http-client, networking, email, websocket
- domain: networking, developer-tools, web-development
- platform: lua, cross-platform, windows
- tags: tcp, udp, smtp, ftp, mime, url, lua-extension, linux, macos

## Member repositories
- lunarmodules/luasocket (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.334189+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:00:16.829730+00:00, confidence not recorded.
  - readme: https://github.com/lunarmodules/luasocket (fetched 2026-08-28T04:06:06.334189+00:00, sha 24a755d8ae10)
  - homepage: http://lunarmodules.github.io/luasocket/ (fetched 2026-08-29T10:40:11.514871+00:00, sha 498d39f80b22)
- Data as of 2026-08-30T08:39:29.467469+00:00.
