Provides a zero-dependency Java HTTP/1.1 and Server-Sent Event server for building robust APIs and agentic systems.
Soklet is a lightweight, zero-dependency Java HTTP/1.1 server and route handler designed for crafting RESTful APIs and broadcasting Server-Sent Events (SSE). It functions as a library, offering the core plumbing for 'transactional' REST APIs that exchange small amounts of data, and for tool-backed agentic systems that stream results via SSE. Optionally powered by JEP 444 Virtual Threads, Soklet is also dependency injection friendly, allowing developers to build performant systems without being constrained by a specific framework's technology choices.
Key Features
01Dependency injection friendly design
02Annotation-based request handling for various HTTP methods
03Zero external dependencies
0423 GitHub stars
05HTTP/1.1 and Server-Sent Events (SSE) support
06Optional support for Java Virtual Threads (JEP 444)
Use Cases
01Building RESTful APIs
02Creating tool-backed agentic systems that stream results via SSE
03Developing transactional APIs exchanging small data amounts