Cricket Microservices Framework
You do not need to download a half of the Internet to have your job done


3.6MB fat jar, including external libraries
10k LOC
Java 10 ready


Apache 2.0 licensed.
Hosted on GitHub.


Plain Old Java
Configuration over convention
No hidden magic

Cloud Ready

Services build with Cricket can be deployed in cloud environments that supports Java or Docker containers.

Clear architecture

Implements the "ports and adapters" (hexagonal) architecture pattern. Event driven architecture with the smallest necessary dose of dependency injection.

Embeded HTTP server

HTTP/S requests handled internally to serve both REST and HTML page calls.

Embeded databases

Two, ready to use, in-memory databases: key-value (no sql) and H2 Database (sql).

JSON handling

Automatic JSON serialization/deserialization.


One-time or repetitive tasks can be configured or created programatically.


The StandardLogger (using Java Logger) can be replaced with other adapter of your choice, eg. centralized logging system.


Your service can monitor it's sensitive parameters or external services. Example adapters to monitor memory and disk space are included.

Quick start

Running your static web page in 1 minute

  1. Open terminal window in the newly created directory
  2. Download the latest Cricket MSF library
  3. Create your web page file in www subfolder (www/index.html)
  4. Start the service
  5. Display your page in web browser at http://localhost:7070
  6. Call example status service API at http://localhost:7070/api/status
  7. Stop the service by pressing Ctrl-C in the terminal window

Example code:
mkdir myservice
cd myservice
mkdir www
echo "Hello World!">www/index.html
java -jar cricket.jar -r


Sponsor Cricket development

Cricket is available under the Apache 2.0 license, and you can use it for any application for free. I continue to provide new features and care about its quality, but it is not easy without financial backing. You can support Cricket's development using the following methods:


We offer a wide range of IT consulting services and support in developing services using Cricket MSF.