tinystruct framework is a lightweight Java framework for building efficient and scalable applications that share a unified architecture for both command-line interfaces and web APIs. It addresses the need for developers to write application logic once without boilerplate code and expose it immediately as CLI commands or web endpoints.
The framework centers on a high-performance engine capable of handling over 86,000 requests per second with minimal overhead. Applications extend the AbstractApplication class and use the Action annotation to define methods such as hello, getUser, and getUsers that become available through both interfaces. The init method allows configuration such as disabling templates, while a version method provides metadata. It requires no main method, emphasizing pure logic in plain Java classes.
Support for multiple HTTP servers is built in. The default is the framework's own HttpServer, with additional compatibility for Tomcat, Netty, and Undertow. Native integration with the Model Context Protocol enables development of AI applications. The overall design stresses simplicity, elegance, and readiness for modern workloads.
It is delivered as an open-source Java library with documentation covering getting started, core concepts, and API reference. The project maintains a presence on GitHub and is developed by James ZHOU.
tinystruct framework is a Frameworks & SDKs product. It focuses on writing boilerplate code to expose the same logic as both a command-line tool and a web API. It is built as an open-source project for java developers. tinystruct framework is open source under the Apache-2.0 license. It runs on the command line and API, and it can be self-hosted.
Behind tinystruct framework is James ZHOU, and the product first shipped in 2017. Development happens publicly on GitHub with 351 stars and 54 commits in the last 90 days. Key capabilities include Unified CLI and Web, High Performance, and Multiple Servers. It exposes integrations via an MCP server.
Latest indexed changes and source events
tinystruct/tinystruct verified by the PulseGate indexer
Other apps tracked under the same category.