You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 31, 2024. It is now read-only.
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.
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.
constkoala=require('koala');constapp=newKoala();app.use(async()=>{this.response.status=204;});app.listen((err)=>{if(err){console.error(err);throwerr;}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.
About
[SEEKING MAINTAINER] An HTTP/2 and ES6 Module-ready Koa Suite