# Thousand Island

> A modern, pure Elixir socket server

Source: https://talira.ai/catalog/thousand-island-4tw7vrdd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / sockets](https://talira.ai/categories/libraries/sockets), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Mat Trudel](https://talira.ai/orgs/mat-trudel.md)

Thousand Island is Mat Trudel's socket server written entirely in Elixir, inspired by Erlang's [Ranch](https://talira.ai/catalog/ranch-7q9kykv9.md) and performing about the same in its author's tests. It's a supervision tree you host inside your application, usually under a higher-level protocol library such as [Bandit](https://talira.ai/catalog/bandit-pgbfc2ka.md), which runs on it; your code implements the `ThousandIsland.Handler` behaviour to handle each connection's socket. It's nearly dependency-free (only telemetry), follows OTP design principles closely, and aims to be a readable reference for idiomatic OTP code.

## Links

- GitHub: https://github.com/mtrudel/thousand_island
- Docs: https://thousand-island.hexdocs.pm/

## Problems it solves

- write a custom TCP server in Elixir
- a socket server library for my own protocol on the BEAM
- an Elixir alternative to ranch

## Features

- pure Elixir socket server with a supervision tree
- ThousandIsland.Handler behaviour for connection handling
- telemetry events, nearly dependency-free
- performance on par with ranch

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.67, adoption 0.60, momentum 0.33, community 0.60, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 11 commits in the last 90 days
- 997 GitHub stars
- 30 contributors
- backed by Mat Trudel

## Alternatives

- [Ranch](https://talira.ai/catalog/ranch-7q9kykv9.md): Socket acceptor pool for TCP protocols in Erlang

## Sources

[^1]: https://github.com/mtrudel/thousand_island/blob/main/LICENSE (checked 29 Nov 2026)
[^2]: https://hex.pm/api/packages/thousand_island (checked 29 Nov 2026)
