koala

WebJar for koala

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

koala
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

koala
WebJar for koala
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/koajs/koala

Download koala

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/koala/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>koala</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/koala/
implementation 'org.webjars.npm:koala:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/koala/
implementation ("org.webjars.npm:koala:1.0.0")
'org.webjars.npm:koala:jar:1.0.0'
<dependency org="org.webjars.npm" name="koala" rev="1.0.0">
  <artifact name="koala" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='koala', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "koala" % "1.0.0"
[org.webjars.npm/koala "1.0.0"]

Dependencies

compile (24)

Group / Artifact Type Version
org.webjars.npm » koa-body-parsers jar [1.1.0,2)
org.webjars.npm » koa-etag jar [2,3)
org.webjars.npm » koa-csrf jar [2,3)
org.webjars.npm : basic-auth jar [1,2)
org.webjars.npm » koa-cash jar [1,2)
org.webjars.npm : merge-descriptors jar [1.0.0,2)
org.webjars.npm : commander jar [2,3)
org.webjars.npm » koa-safe-jsonp jar [0,1)
org.webjars.npm » koa-compress jar [1,2)
org.webjars.npm : qs jar [2,)
org.webjars.npm : debug jar [0,)
org.webjars.npm » koa-trace jar [1,2)
org.webjars.npm » koa-error jar [1,2)
org.webjars.npm » koa-qs jar [2.0.0,3)
org.webjars.npm » koa-logger jar [1,2)
org.webjars.npm : delegates jar [0,1)
org.webjars.npm » koa-file-server jar [2,3)
org.webjars.npm : koa jar [0,1)
org.webjars.npm » koa-response-time jar [1,2)
org.webjars.npm : mz jar [2.0.0,3)
org.webjars.npm » koa-session jar [3.2.0,4)
org.webjars.npm » koa-json jar [1,2)
org.webjars.npm : bluebird jar [2,3)
org.webjars.npm : ms jar [0,1)

Project Modules

There are no modules declared in this project.

Koalaα

Gitter chat NPM version Build status Test coverage Dependency Status License Downloads

A suite of Koa utilities allowing for quicker bootstrapping, as well as a consequential guide on how to write apps using the Koa philosophy. Think of it as a KrakenJS for Koa.

Status

Beware! Koala is alpha software!

Philosophy

Koa is a bare minimal framework, focusing on unopinionated core HTTP utilities. However, this is not sufficient for most apps as a lot is not supported out of the box. Including a bunch of dependencies in every new app you create quickly becomes annoying.

The goal of Koala is to include the most used and unopinionated parts of apps into a single framework. Many things such as body parsing, sessions, and CSRF are included. Many other things, such as routing, is too opinionated and not included.

Unlike other frameworks, Koala will not dictate how to write business logic. Thanks to generators and, eventually, ES7 Async/Await, writing business logic in Koa is much easier than other frameworks, and Koala's goal is to only make it easier. Don't expect a single option to automatically do magic for your app.

Feel free to create suggestions!

Features and Documentation

The Koala framework adds to Koa:

  • Body Parsing
    • Seamless Expect: 100-continue support
    • Per-request body limits
    • Supports JSON, urlencoded, and multipart bodies
    • Supports arbitrary strings, buffers, and files as bodies
    • Optional nested parameter support
  • File Serving
  • Sessions
    • Cookie-based sessions
    • CSRF protection
  • Response Caching - cache and serve responses using an arbitrary store
  • JSONP - safe jsonp support
  • Security Headers
  • Error Page - better default error page
  • Tracing
  • etc
    • Basic auth
    • Object stream support
    • Optional nested query string supported
  • FAQ

koala(1) will be a generator, similar to what express(1) is.

Usage

Simply replace require('koa') with require('koala'). Koala returns a koa app, except it includes more features.

const koala = require('koala');
const app = new Koala();

app.use(async () => {
  this.response.status = 204;
});

app.listen((err) => {
  if (err) {
    console.error(err);
    throw err;
  }
  console.log('Koala app listening on port %s', this.address().port);
});

Roadmap

Some additional features may include:

  • Timeout assertion
  • Server-Side Event Streams
  • Rate limiting

Let me know if you have any other suggestions.

org.webjars.npm

Koa.js

Next generation web framework for Node.js

Versions

Version
1.0.0