Javalin - A Simple REST API Library for Java / Kotlin

  •        430

Javalin is a very lightweight web framework for Kotlin and Java, inspired by Sparkjava and koa.js. Javalin is written in Kotlin with a few functional interfaces written in Java. This was necessary to provide an enjoyable and near identical experience for both Kotlin and Java developers.

  • Lightweight - You don’t have to learn any advanced concepts to get started
  • Consistent API - All handlers and mappers are void and operate on the Context (ctx)
  • Almost identical API for both Kotlin and Java
  • Not opinionated - A library rather than a framework (you never have to extend anything)
  • Fully customizable embedded server (Jetty)
  • JSON-object-mapping (via Jackson)
  • Simple per-endpoint auth via AccessManager interface
  • Simple static file handling
  • Lifecycle events
  • CookieStore - An easy way to serialize and store objects in cookies
  • Template rendering (Velocity, Freemarker, Thymeleaf, Mustache)
  • Markdown rendering

https://javalin.io
https://github.com/tipsy/javalin

Tags
Implementation
License
Platform

   




Related Projects

Apache Juneau - Single cohesive framework

  •    Java

Apache Juneau is a single cohesive Java ecosystem consisting of the following parts juneau-marshall, juneau-dto, juneau-svl, juneau-config, juneau-rest-server, juneau-rest-client, juneau-microservice.

Ktor - Framework for quickly creating connected applications in Kotlin with minimal effort

  •    Kotlin

Ktor is a framework for quickly creating web applications in Kotlin with minimal effort. Ktor Framework doesn't impose a lot of constraints on what technology a project is going to use – logging, templating, messaging, persistent, serializing, dependency injection, etc. Sometimes it may be required to implement a simple interface, but usually it is a matter of writing a transforming or intercepting function. Features are installed into application using unified interception mechanism which allows building arbitrary pipelines.

Kanary - A minimalist web framework for building REST APIs in Kotlin/Java.

  •    Kotlin

A light weight🏋🏿 Kotlin web framework for building🔩⚙ highly scalable📈 web APIs

Spark - A simple expressive web framework for java

  •    Java

Spark is a micro framework for creating web applications in Kotlin and Java 8 with minimal effort. It is a simple and expressive Java/Kotlin web framework DSL built for rapid development. Sparks intention is to provide an alternative for Kotlin/Java developers that want to develop their web applications as expressive as possible and with minimal boilerplate. With a clear philosophy Spark is designed not only to make you more productive, but also to make your code better under the influence of Spark’s sleek, declarative and expressive syntax.

dropwizard - A damn simple library for building production-ready RESTful web services.

  •    Java

Dropwizard is a Java framework for developing ops-friendly, high-performance, RESTful web services. It pulls together stable, mature libraries from the Java ecosystem into a simple, light-weight package that lets you focus on getting things done.


Micronaut - A modern, JVM-based, full-stack framework for building modular, easily testable microservice and serverless applications

  •    Java

Micronaut is a modern, JVM-based, full stack microservices framework designed for building modular, easily testable microservice applications. Micronaut is developed by the creators of the Grails framework and takes inspiration from lessons learnt over the years building real-world applications from monoliths to microservices using Spring, Spring Boot and Grails.

Spincast is an highly flexible and open source Java web framework, based on Guice

  •    Java

Spincast is a framework to serve as a backend for Single Page Applications (SPA), to develop old-school HTML generated websites or to be a REST API services platform. Spincast aims to feel more like a library than like a framework. It is not opinionated and favors configuration over convention. Its main goal is to give power to the developers.

micro-server - Microserver is a Java 8 native, zero configuration, standards based, battle hardened library to run Java Rest Microservices via a standard Java main class

  •    Java

Microserver is a Java 8 native, zero configuration, standards based, battle hardened library to run Java Rest Microservices via a standard Java main class. Supporting pure Microservice or Micro-monolith styles.

light-4j - A fast, lightweight and more productive microservices framework

  •    Java

Light 4j is a fast, lightweight and cloud native microservices framework. Light means lightweight, lighting fast and shed light on how to program with modern Java SE. It is 44 times faster than the most popular microservices platform Spring Boot embedded Tomcat and use only 1/5 of memory.

Xenon - Decentralized Control Plane Framework

  •    Java

Xenon is a framework for writing small REST-based services. (Some people call them microservices.) The runtime is implemented in Java and acts as the host for the lightweight, asynchronous services. The programming model is language agnostic (does not rely on Java specific constructs) so implementations in other languages are encouraged. The services can run on a set of distributed nodes. Xenon provides replication, synchronization, ordering, and consistency for the state of the services. Because of the distributed nature of Xenon, the services scale well and are highly available.

just-api - Easy and Flexible API Testing

  •    Javascript

Just-API is a declarative, specification based test framework for REST, GraphQL APIs. Users can test APIs without writing code, but they can also tap into code when they want to. It reads API test specification from YAML files and runs them in serial/parallel mode. Test reports can be generated in several formats including HTML and JSON. To run just-api, you will need Node.js v7.10.0 or newer.

HTTP-RPC - Lightweight REST services for Java

  •    Java

HTTP-RPC is an open-source framework for implementing and interacting with RESTful and REST-like web services in Java. It is extremely lightweight and requires only a Java runtime environment and a servlet container. The entire framework is distributed as a single JAR file that is about 68KB in size, making it an ideal choice for applications where a minimal footprint is desired. This guide introduces the HTTP-RPC framework and provides an overview of its key features.

RESTX - the lightweight Java REST framework

  •    Java

RESTX is the lightweight, modular, feature rich, blazing fast, open source Java REST framework. It shares similarities with modern frameworks like Play! like hot compile and a very productive experience, but focused on REST and pure Java.

django-rest-framework-docs - Document Web APIs made with Django Rest Framework

  •    Python

If you want to use the demo app to work on this package: Included in this repo you can find the demo project(at /demo). It is a project with Django & Django Rest Framework that will allow you to work with this project. For more information on how you can set it up please check the README.md of the demo project. For more information visit the docs.

gramework - Fast and Reliable Golang Web Framework

  •    Go

Gramework is a fast, highly effective, reliable, SPA-first, go-way web framework made by a fasthttp maintainer. You get the simple yet powerful API, we handle optimizations internally. We're always glad to see your feature requests and PRs. Go >= 1.9.6 is the oldest continously tested and supported version.

Restlet - Restlet Framework for Java

  •    Java

Restlet Framework is the leading RESTful Web API framework for Java. It has powerful routing and filtering capabilities, unified client and server Java API, developers can build secure and scalable RESTful web APIs. It is available in editions for all major platforms (Java SE/EE, Google App Engine, OSGi, GWT, Android) and offers numerous extensions to fit the needs of all developers.

Loopback - The Node.js API Framework

  •    Javascript

LoopBack is an open source Node.js framework built on top of Express optimized for building APIs for mobile, web, and other devices. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, connect using JS, iOS & Android SDKs.

rest-layer - REST Layer, Go (golang) REST API framework

  •    Go

REST APIs made easy.REST Layer is an API framework heavily inspired by the excellent Python Eve. It helps you create a comprehensive, customizable, and secure REST (graph) API on top of pluggable backend storages with no boiler plate code so you can focus on your business logic.

node-restify - The future of Node.js REST development

  •    Javascript

A Node.js web service framework optimized for building semantically correct RESTful web services ready for production use at scale. restify optimizes for introspection and perfromance, and is used in some of the largest Node.js deployments on Earth.

ServiceStack.NET - Opensource .NET and Mono REST Web Services framework

  •    CSharp

ServiceStack is an open source web services framework designed to be an alternative to the WCF, ASP.NET MVC, and ASP.NET Web API frameworks. It supports REST and SOAP endpoints, autoconfiguration of data formats, inversion of control containers, object-relational mapping, caching mechanisms, and much more.