Home - koajs/koa GitHub Wiki

Slack Community

KoaJs Slack

Frameworks

Frameworks, boilerplates and other starter kits using Koa.

Name and description Badges Supports V2
Lad scaffolds a Koa webapp and API framework for Node.js (created by the official Koa team member and former Express TC member @niftylettuce). See Forward Email as an example company using this framework. โœ“
lesky - Lightweight Express-ish (Koa) Server -- Type les not more! CLI for serving static files and initializing workspaces npm npm NPM โœ“
T-Koa - ๐ŸŒˆ Koa web app framework written in typescript. โœ“
Koatty - Koa2 + Typescript = Koatty. Use Typescript's decorator implement auto injection just like SpringBoot. npm Downloads โœ“
Koalerplate - A simple Koa 2 boilerplate for API's using ES6. โœ“
koa-rest-api-boilerplate is a boilerplate for Node.js Koa RESTful API application with Docker, Swagger, Jest, CodeCov, PM2 and Circle CI โœ“
Is the most complete and flexible framework for Koa, It's compatible with koa2 and it's fully written in ES6/ES7, comes with a world class router and a powerfull ORM (CaminteJS). The CLI Tool allows you to easily setup a new project anywhere. semantic-release js-happiness-style โœ“
JollofJS - Comes with an impressive, native-friendly ORM and an in-built admin interface for CRUDing Data โœ“
egg - Born to build better enterprise frameworks and apps with Node.js & Koa โœ“
EggBorn.js - The Ultimate Javascript Full Stack Framework โœ“
Cabloy.js - The Ultimate Javascript Full Stack Business Development Platform, based on EggBornJS โœ“
thinkjs - Use full ES2015+ features to develop Node.js applications, Support TypeScript.
koa2-react - A boilerplate Koa2 with React frontend using MVC pattern and examples of most necessary features โœ“
hekdi - Dependency Injection for node.js integrated with popular Koa.js framework โœ“
- Embrace Node.js 8 & koa2. A lightweight, scalable web framework, based on koa. โœ“
koahub - KoaHub.js -- Based on Koa platform Node web rapid development framework (Use es6/7)
koahub-cli - KoaHub-cli -- automatically compile Babel ES6/7 and automatic restart after file modification
koa-mvc - Koa v2 MVC framework, similar to sails.js
js-api - JavaScript/JSON objects to REST API in seconds.
EasyNode is a framework for microservice written with es6 and integrated a light web service based on koa and a light tcp service based on native socket. You can utilize all feature characters of ES6 in the framework.
koa.io realtime web framework, built on Socket.IO
api-boilerplate - an API application boilerplate
koa-generator - Koa' application generator just like express-generator(support 1.x && 2.x)
koa-gen - Express liked generator with standard style and gulp-nodemon (Koa v1.x & v2.x)
koala - a more feature-rich version of Koa, including many middleware and utilities
koa-plus - Koa with added features (similar to koala) - optimized for building secure, scalable APIs
koan - Full stack JavaScript Web development boilerplate with Koa and Angular โœ“
component-boilerplate-koa - component + koa boilerplate
opinion - Koa, and some modules so you can just start building
cottage - Simple, fastest microframework based on Koa
koa-mvc - Opinionated and minimalist MVC generator
surface - A tiny middleware of RESTful API for koa
koanect - A bare minimum framework that allows your web app to run standalone or to be packaged and included in other koanect apps
roo โ€“ jump-start your web app with a thin layer on top of koa to reduce initial boilerplate
resourced - A resource-oriented DSL for configuring koa
kona - a modular MVC framework and middleware stack built on koa
trek - Next generation full-stack JavaScript open source solution, based on Koa
kaio - A minimalist middleware to get started faster with Koa
koa-starter - A simple Koajs application starter template that includes controller, router, and view
baxel - Baxel is a MVC web framework build on top of Koa framework
strapi - Strapi allows you to build powerful back-end on top of Koa with no effort
Paloma - An angluar-like MVC framework โœ“
Kless - A framework inspired by FaaS, based on koa. โœ“
koa-socket - Attaches socket.io to koa and allows koa-style middleware for sockets
koa-socket2 - Attaches socket.io to koa2 and allows koa2-style middleware for sockets npm
koa2-boilerplate - A minimal boilerplate of koa v2.
koa2-api-boilerplate - API-only (RESTful) boilerplate for Koa v2 with ES6-syntax & other.
koa2-starter-example - A starter for koa v2 with couchbase
koa-skeleton - Front end skeleton with koa backend
node-koajs-rest-skeleton - A simple Koajs 2.5 Application REST Skeleton (Koa v1.x & v2.x). Kubernetes-ready โœ“
Gracejs - A Nodejs SFB(Separation of Front and Back ends) framework, build with koa.๏ผˆๅŸบไบŽkoa็š„ๆ ‡ๅ‡†ๅ‰ๅŽ็ซฏๅˆ†็ฆปๆก†ๆžถ๏ผ‰
koa2-kickstarter - An opinionated boilerplate for koa v2 with batteries included.
Pikachu - A Koa2 app boilerplate.
lorem-koa - a CRUD application built with Koa.
javascript-boilerplate - Node.js+Koa.js+PostgreSQL+React.js+Webpack+Mocha+Makefile, a starter kit for new apps.
micro-koa - Creating microservices with koa inspired by zeit/micro
koa-sample-web-app-api-mysql - Koa Sample App (handlebars templating + RESTful API using MySQL)
koa-rester - Deploy RESTful APIs from presistence layer models
myKoa - myKoa (our myKoa V2 Frameworks)
koa-vue-notes-api - A fleshed-out SPA using Koa 2.3 on the backend and Vue 2.4 on the frontend. Includes fully featured user-authentication components, CRUD actions for the user's notes, and async/await.
koa2-es2017-api-boilerplate - ๐Ÿš€ Unopinionated Rest API boilerplate using Koa2 & ES2017+ with Jest for testing and ESLint for linting
koa2-starter-kit - Another Koa2 Starter Kit, utilizing Camo.js ODM and validate.js for validation
ibird - A lightweight and flexible web development framework.โœจ๐Ÿš€โœจ โœ“
koa2-api-boilerplate - Koa2, Knex, es6-error, Gulp, ApiDoc, ESLint, koa-validate, JWT. โœ“
node-typescript-koa-rest - KOA2, typescript, logging and JWT. TypeORM with class-validator, SQL CRUD. Docker included. Valuable README. โœ“
koa-restful - ๐Ÿ’ฅ Koa 2 RESTful API,It supports Dependency Injection (DI), Support Swagger, Support Authentication, Support Aop, Koa Restful is an open-source library for creating Restful Web APIs based on the Koa framework, built using TypeScript. It aims to provide a lightweight, efficient, and user-friendly way to build backend services following the RESTful style โœ“
koa-restful-quick-start - ๐Ÿ’ฅ koa-restful ๅฟซ้€ŸๅฏๅŠจ้กน็›ฎ๏ผŒๅŒ…ๅซRestful Demoใ€ไพ่ต–ๆณจๅ…ฅใ€Aop็ผ–็จ‹ใ€Swaggerใ€Authenticationใ€‚ๆ”ฏๆŒๆž„ๅปบไธบJSๅœจnode็Žฏๅขƒไธญ่ฟ่กŒใ€‚
koa-restful-boilerplate - Koa 2 RESTful API boilerplate โœ“
koa-api-starter - A starter kit for building Koa.JS based restful api โœ“
koa-rest-generator - A Koa RESTful API Generator โœ“
Atlas.js - A component-based library to reduce boilerplate and provide sane project structure ๐Ÿป โœ“
ashley-koa - A dependency injection framework for Koa v2 โœ“
ts-microservice-boilerplate - Koa + TS boilerplate, + Docker, K8s, CI examples, and more โœ“
aom - API Over Models. Lightweight and powerful REST framework, Koa@2 with TypeScript, TypeORM and ClassValidator support, high scalability โœ“

Middleware

Known middleware for Koa, you may want to search npm with "koa" to find more.

Koa v2 will try to convert legacy middleware for you, thus many in the lists below might just work out of the box. See Readme.md for more information about legacy middleware usage in Koa v2.

Name and description Supports v2 Downloads
cls-rtracer - Request tracer middleware for CLS-based request id generation โœ“
koa-connect - mount Express/Connect middleware โœ“
koa2-validation - A koa2 middleware to validate the request with Joi โœ“
koa-router-joi-validator - Middleware for easy validation using simple JSON schemas (using Joi)! โœ“
koa-exception - Exception Handler Middleware Base on [email protected]
koa-webpack - Development and Hot Module Reload Middleware for Koa2. Simple setup and use. Composes webpack-dev-middleware and webpack-hot-middleware. โœ“
koa-webpack-middleware - webpack-dev-middleware for koa2 with HMR (Hot Module Replacement). โœ“
koa-hello-world - Koa 'Hello World' middleware, useful for testing
koa2-request-middleware - Koa2 request middleware, useful for get or post other datas โœ“
grant - OAuth middleware โœ“
kcors - CORS middleware โœ“
koa-slow - delay answering requests by URL RegExp, useful for debugging. โœ“
koa-force-https - Force HTTPS connection (including using HTTP2 protocol) to any incoming requests for Koa@2+ โœ“
koa-force-ssl - Middleware for force SSL
koa-cluster - clustering and error handling utility
koa-polyfills - user-agent based polyfill bundle serving
koa-polyfill-service - user-agent based polyfill bundle serving; based on polyfill-service
koa-sub-domain - middleware to handle multilevel and wildcard subdomains
koa-isbot - middleware detect bot crawler -
koa-toobusy - Toobusy middleware for koa.
koa-handle-error - Error handler Middleware for [email protected]. โœ“
koa-restql - Build RESTful API with single line of code. -
koa-response-handler - Lightweight response handling middleware for KoaJS โœ“ -
koa-proxies - Http Proxy Middleware for [email protected]. โœ“
koa-better-http-proxy - Proxy middleware for Koa. Based on villadora/express-http-proxy โœ“
koa2-simple-proxy - Simple Http Proxy Middleware for [email protected]. โœ“
koa-oembed - oEmbed middleware for koa โœ“
koa-json-rpc - JSON-RPC 2.0 middleware for Koa.js which implements the https://www.jsonrpc.org/specification. โœ“
koa-jsonrpc - Json-RPC 2 middleware implementation on Koa v2 โœ“
koa-superstruct - Use the superstruct data validation library as middleware for your koa app. โœ“
koa-sse-stream - A sse(server side event) middleware use stream model โœ“
next-koa - A koa middleware for next.js with some common tools โœ“
koa-middleware-adapter - Functions and promises can be used as middleware in koa โœ“
koa-lowercase - Simple lowercasing middleware for Koa 2. โœ“
koa-mid - Common Koa middlewares. โœ“
koa-lambda-middleware - A simple functional middleware that can use hooks. โœ“

Security

Name and description Supports v2 Downloads
koa-helmet - security headers for koa โœ“
koa-ip-filter - Middleware for koa that filters IPs against glob patterns, RegExp, string or array of globs using ip-filter and micromatch. Support custom 403 Forbidden message and custom ID. โœ“
koa-ip - Ip filter middleware for koa, support whitelist and blacklist โœ“
koa-authz - ACL, RBAC, ABAC authorization middleware based on Casbin โœ“
koa-acl - ACL middleware for koa
koa-rbac - Role-Based Access Control for koa โœ“
koa-rbac-mongo - Save the rbac rules to mongodb for dynamic rbac setup and check.
node-security-voters - ACL voters โœ“
koa-protect - Security module for koa applications โœ“

Body Parsing

Name and description Supports v2 Downloads
koa-body - parse http request body โœ“
koay-body - parse http request body โœ“
hal-body - parse hal+json request body
koa-parse-json - parse JSON request body
koa-better-body - :sparkles: Full-featured koa body parser! :star2: Support parsing text, buffer, json, json patch, json api, csp-report, multipart, form and urlencoded bodies. Works for koa@1, koa@2 and will work for koa@3 with koa-convert. :sparkles: โœ“
koa-bodyparser - a body parser for koa, base on co-body โœ“
koa-multer - handling multipart/form-data for koa โœ“
koa/multer - fork of koa-multer to the official Koa organization (koa-multer is unmaintained) โœ“
multy - handle in memory multipart/form-data โœ“
koa-busboy - handling multipart/form-data for koa v2 โœ“
co-busboy - busboy multipart parser using co or koa โœ“
formidable-upload-koa - handling multipart/form-data especially for file upload based on the famous formidable parser โœ“
koa-json-body - parse JSON http request bodies โœ“
koa-xml-body - parse xml http request bodies โœ“
bodyreceiver - A request body receiver & parser middleware for Koa@2+ โœ“
koa-body-clean - Koa middleware for auto cleanup files created to disk by multipart middlewares โœ“

Parameter Validation

Name and description Supports v2 Downloads
koa-better-router - Stable and lovely router for koa, using path-match. Foundation for building powerful, flexible and RESTful APIs easily. โœ“
koa-rest-router - Most powerful, flexible and composable router for building enterprise RESTful APIs easily! โœ“
koa-input - parameter(support query, params, body and headers etc.) validate middleware for koa (https://img.shields.io/npm/dm/koa-validate.png?style=flat-square)
koa-scheme - parameter validation middleware for koa
koa-router-validator - Validator middleware for @koa/router
koa-router-schema - Schema validate middleware for @koa/router
koa-context-validator - A robust context validator for koajs. Use Joi behind the scenes. โœ“
koa-joi-swagger - Using joi schema to validate request & response, and generate swagger document to create beautiful API documents. โœ“
koa-joi-validate-middleware - Validate middleware generator using Joi โœ“
koa-router-bridge - plugin extends koa-router and allow to make simple and clean constructions to provide nested routes. โœ“

Rate Limiting

Name and description Supports v2 Downloads
ratelimit - rate limiting middleware
koa-better-ratelimit - support black/white lists, Retry-After header, 429 status, in-memory store.
koa-ip-filter - Middleware for koa that filters IPs against glob patterns, RegExp, string or array of globs using ip-filter and micromatch. Support custom 403 Forbidden message and custom ID. โœ“
rate-limiter-flexible - limit requests rate by key and protect against DDoS and brute force attacks at any scale in process Memory, Cluster or PM2, Redis, Memcached, MongoDb, etc โœ“

Vhost

Name and description Supports v2 Downloads
koa-vhost - vhost middleware
koa-virtual-host - name-based virtual host middleware โˆš
koa-sub-domain - middleware to handle multilevel and wildcard subdomains
koa-subdomain - middleware to handle multilevel and wildcard subdomains โœ“

Routing and Mounting

Name and description Supports v2 Downloads
koa-api-builder - Build koa-router apis that are easier to maintain โœ“ tests and coverage npm version
koa-mapper - A better router support params validation and OpenAPI generation. โœ“
koay-router - Provide a faster router for Koa, and support configurable routes for Koa or express. โœ“
koa-architect - Automates mounting and routing โœ“
koa-better-router - Stable and lovely router for koa, using path-match. Foundation for building powerful, flexible and RESTful APIs easily. โœ“
koa-bestest-router - Not complicated. No mutable state. Less than 100 lines of code. โœ“
koa-rest-router - Most powerful, flexible and composable router for building enterprise RESTful APIs easily! โœ“
koa-mount - mount koa applications as middleware โœ“
koa-route - uber simple routing middleware โœ“
koa-routing - routing middleware
koa2-router - An express liked router middleware โœ“
koa2-routing - Multiple files define route & Multiple front middlewares.Support redirect. โœ“
koa-router - RESTful resource router (note: forked from ZijanHe/koa-router due to inactivity after being sold) โœ“
koa-radix-router - Radix based routing, like koa-router but more faster โœ“
koa-directory-router - Directory RESTful resource router
koa-frouter - File as path
koa-rewrite - url rewriting middleware โœ“
koa-repath - A more flexible URL rewriting middleware for koa
koa-tree-router - high performance router for Koa โœ“
koa-trie-router - Trie-based routing โœ“
koa-params - Express style params support for koa-route.
koa-methodoverride - HTTP method overriding middleware โœ“
koa-overwrite - Overwrites request.method with forms _method.
koa-qs - nested query string support โœ“
kroute - Simple, self-contained koa routes and applications
koa-dispatch - Hybrid Koa router with multiple handlers and param support.
koa-barista - routing middleware based on the strong barista router.
koa-joi-router - Configurable, input and output validated routing for koa โœ“
koa-joi-controllers - Controller decorators for Koa using koa-joi-router โœ“
koa-version - Mounting app by version to different router.
koa-version-router - Automatic version for router.
koa-ovenware - Automatic Model / Controller Loader for Koa
koa-sub-domain - middleware to handle multilevel and wildcard subdomains
koa-forward-request - Forward request for koa.
impress-router - port Express router to koa โœ“
impress-router-table - Sails.js like routing for koa.js โœ“
koa-simple-router - Simple and fast REST routing middleware (koa 2.x ready) โœ“
koa-66 - Router for koa v2 โœ“
koa-react-router - koa 2 middleware for React server side rendering and routing with react-router โœ“
koa-dec-router - An ES6 decorator + class based router, support inherit, override, priority, auto load controllers, etc. Using koa-router under the hood. โœ“
koa-oai-router - Koa Router, based on OpenAPI, Swagger and Json Schema. โœ“
koa-minimal-router - ๐Ÿ…Yet another minimal router for koa. โœ“
koa-router-find-my-way - Router middleware based on find-my-way, a crazy fast http radix based router (benchmark). โœ“
koa-middleware-multiplexer - Multiplex Koa's middleware โœ“

Documentation

Name and description Supports v2 Downloads
koa-docs - Koa middleware for automatically generating and serving API documentation
koa-joi-swagger - Using joi schema to validate request & response, and generate swagger document to create beautiful API documents. โœ“

File Serving

Name and description Supports v2 Downloads
koa-better-serve - Small, simple and correct serving of files, using koa-send - nothing more. โœ“
koa-serve - Koa middleware for serving static files
koa-send - a send file utility โœ“
koa-sendfile - a barebone send file utility โœ“
koa-static - static file serving middleware โœ“
koa-file-server - static file serving with additional features like etag and SPDY Push support
koa-static-server - Static file serving middleware for koa with directory, rewrite and index support
koa-static-cache - static file serving from memory
koa-spa - Single page app server build upon static-cache
koa-favicon - bounce favicon requests with a 404 โœ“
koa-favi - connect.favicon like middleware default use node logo
koa-broccoli - a broccoli server (w/ livereload)
koa-combo - combine your static files at serverside and reduce number of HTTP requests in a flexible way
koa-watchify - Wraps a browserify or watchify instance into a koa middleware
koa-serve-static - Serve static files, based on Express's serve-static โœ“
koa-serve-list - Serve directory listings for koa, based on Express's serve-index โœ“
koa-stream - a send file utility supporting range request
koa-static-folder - Serve static files using a folder
koa-static2 - Middleware for Koa2 to serve a folder with Babel โœ“
koa2-serve-index - A Koa2 middleware serves pages that contain directory listings for a given path, based on Express's serve-index โœ“
koa-accept-webp - Koa middleware for serving webp images when support is detected โœ“
koa-static-resolver - Koa static file resolver, dirs, default index, path replace, cache, livereload, gzip โœ“
koa-files - A static files serving middleware for koa, support multipart range and download resumption. โœ“
koa-simple-static - Simple caching static file server for Koa, in TypeScript

SPDY

Name and description Supports v2 Downloads
koa-file-server - static file serving with additional features like etag and SPDY Push support

HTTP2

Name and description Supports v2 Downloads
koa-server-push - Specifically for adding HTTP2 Server Push headers for HTTP2 clients and proxies such as Google App Engine โœ“

JSON and JSONP Responses

Name and description Supports v2 Downloads
koa-jsonp - streamable jsonp support โœ“
koa-response-jsonp - koa jsonp middleware โœ“
koa-json-filter - json response filtering to reduce traffic
koa-json-mask - json response filtering to reduce traffic. Supports filtering at any depth
koa-json - pretty-printed json responses
koa-hal - hal+json response support
koa-jsonapi-headers - Validate JSON-API Request Headers

Compression

Name and description Supports v2 Downloads
koa-compress - compression middleware โœ“
koa-compressor - SPDY/HTTP2 compression middleware (always gzips)
koa-gzip - gzip support for koa responses
kompression - forked of koa-compress with support for brotli compression โœ“
koa-minify - minify middleware for js, css, html and img
koa-uglify2 - uglify middleware for js with caching

Caching

Name and description Supports v2 Downloads
koa-cache-lite - Zero-dependency koa router cache โœ“
koa-fresh - HTTP response freshness testing middleware base on node-fresh
koa-etag - etag support for koa responses โœ“
koa-conditional-get - conditional GET support โœ“
koa-cash - response caching
koa-router-cache - Router cache middleware for koa

Authentication

Name and description Supports v2 Downloads
koa-basic-auth - simple user/pass basic auth โœ“
koa-passport - Passport middleware for Koa โœ“
koa-jwt - JWT (JSON Web Tokens) verification โœ“
koa-jwt-mongo - Deal with JSON-web-token in mongodb
koa-user - simple user module with tokens
koa-statelessauth - custom validation based on Authorization header
koa-bearer-token - Bearer token parser middleware for koa
koa-police - Policy based authentication library for Koa
koa-weixin-token - Weixin token services for koa
koa-http-auth - simple HTTP auth, including Basic auth & Digest auth
koa-cognito-middleware - simple authentication with AWS Cognito user pools โœ“

Sessions

Name and description Supports v2 Downloads
koa-session - cookie-based session middleware, also supports external session stores โœ“
koa-session-redis - drop-in replacement for koa-session
koa-session-redis3 - drop-in replacement for koa-session and koa-session-redis Deprecated in favor of koa-redis (same features)
koa-csrf - CSRF tokens โœ“
koa-session2 - Middleware for Koa2 to get/set session use with custom stores such as Redis or mongodb โœ“
koa-generic-session - connect-like session middleware
koa-session-minimal - a Koa 2 rewrite of koa-generic-session, support its core functionalities and stores โœ“
koa-redis - redis session store base on koa-generic-session
koa-session-mongodb - drop in replacement for koa-session based on Object.observe
koa-mongodb-session yieldable mongodb session modifications
koa-session-dynamodb-store - extension of koa-session that uses DynamoDB as session store. โœ“
koa-level - LevelDB session store for koa-generic-session
koa-flash - flash messages for koa-session
koa-flash-simple - Stupidly simple flash messages for koa v2 โœ“
koa-flash-message - Flash Messages Middleware for Koa V2 โœ“
koa-hazelcast - Hazelcast storage for koa generic session middleware โœ“

Templating

Name and description Supports v2 Downloads
koa-locals - local variables for templates render, use of ctx.state instead of ctx.locals
koa-bel - Simple javascript views without dependencies, built to be used with bel, but will also work with yo-yo or even just plain JS files returning a stream โœ“
koa-views - Render your views with almost any templating engine โœ“
koa-webc - Render your WebC components โœ“ build status npm version
koa-ejs - Focus on ejs and support full feature include layout, filters, locals, include. โœ“
co-ejs - koa ejs view render middleware.
koa-dom - server-side dom templating
koa-swig - Focus on swig, support tags, filters, and extensions. โœ“
koa-swig-render - Focus on swig, used as a middleware.
koa-hbs - Express-style Handlebars view rendering.
koahub-handlebars - Handlebars view rendering, Use async/await โœ“
koa-jade - a Jade middleware for Koa
koa-handlebars - Handlebars view rendering โœ“
koajs-nunjucks - Nunjucks view rendering
koa-view - Nunjucks view rendering โœ“
koa-pug - a Pug (renamed Jade) middleware for Koa
koa-artpl - koa artTemplate engine
koa-nunjucks-next - Nunjucks view rendering, support asynchronous filters, render raw string โœ“
koa-xtpl - A node.js wrapper around xtemplate engine (easier for Koa 2) โœ“
koa-nunjucks-async - A Koa@2 middleware for rendering Nunjucks templates. Uses Node's native async/await, and util.promisify. Also exposes ctx.state to rendered templates โœ“
koa-vue-view - A Koa view engine which renders Vue components on server โœ“ image
koa2-jsx - JSX rendering using server-side React methods, with Redux support to set templating data from context. Can be used to create universal application. โœ“
@hellohd/koa-nunjucks - Use nunjucks.js to dynamically load templates, auto-reload templates when they are changed, and use precompiled templates. โœ“

Services

Name and description Supports v2 Downloads
koa-pg - Handle your Pg database connections automatically.
koa-mongo - MongoDB middleware for koa, support connection pool. โœ“
koa-redis-pool - Redis middleware for koa, support connection pool.
koa-waterline koa middlware for your waterline orm
koa-pgp koa middlware that speaks pgp
koa-redisy koa wrapper for co-redis, which is a wrapper for node-redis
rethinkdbdash - RethinkDB driver with promises and a connection pool.
component-koa - koa middleware for component builds
koa-pagination - Handle Range Pagination Headers using Range & Content-Range entity-headers.
koa-graphql - Koa middleware for creating a GraphQL HTTP server.
koa-graphiql - Koa middleware for serving a GraphiQL IDE. โœ“
koa-orm - koa orm using sequelize & squel โœ“

CSS Preprocessor

Name and description Supports v2 Downloads
koa.sass - Koa@2 middleware for processing sass files. โœ“
koa-stylus - Stylus middleware for Koa
koay-stylus - Stylus middleware for Koa2 โœ“
koa-less - LESS middleware for Koa
koa-lessie - LESS middleware (lighter implementation)
koa-myth - Wraps a myth or rework instance into a koa middleware
koa-scss - SCSS middleware for Koa
koa-postcss - PostCSS middleware for Koa

Livereload

Name and description Supports v2 Downloads
koa-livereload - koa middleware for adding livereload.js

Error reporting

Name and description Supports v2 Downloads
koa-error - text, json, html error responses with swig template support โœ“
koa-json-error - error handler for pure-JSON apps โœ“
koa-errorhandler - Error handler middleware for koa.
http-assert - assert with status codes
koa-error-ejs - text, json, html error responses with ejs template support
koa-notifier - Wrap node-notifier for koa, cute for test.
onerror - an error handler for koa, hack ctx.onerror
koa-error-slack - Send Koa errors to Slack โœ“

Logging

Name and description Supports v2 Downloads
koa-logger - development style logger โœ“
corie-logger - A log factory for Koa2 โœ“
concurrency-logger - logging requests concurrently and in context โœ“
koa-mongolog - logging http queries to MongoDB
~~koa-mongodb-logger - log and profile Koa requests to MongoDB~
koa-log4js - log4js logger middleware for koa
koa-log4 - a wrapper for log4js-node which supports koa middleware โœ“
koa-request-id - Add a request id
koa-bunyan - Using node-bunyan as koa logging middleware
koa-bunyan-logger - Koa middleware for bunyan request logging โœ“
koa-json-logger - HTTP Request/Response/Error JSON format logger
koa-logger2 - Apache like (combined) logging for koajs
koa-raven - Raven middleware for koa โœ“
koa-morgan - Morgan for koa โœ“
koa-winston - Winston wrapper for koa
koa-slowlog - slowlog for koa, based on co-slowlog
koa-yield-breakpoint - Add breakpoints around yield expression especially for koa@1
koa-logtown - The middleware is very similar to koa-logger, but console.log was replaced with logtown method calls โœ“

Metrics

Name and description Supports v2 Downloads
koa-statsd - statsd integration
koa-response-time - x-response-time header field middleware โœ“
koa-ping - ping and health route for app status check
koa-monitor - Realtime monitoring for koa-based Node applications

Analytics

Name and description Supports v2 Downloads
koa-analytics - easily add analytics to your koa app

i18n or L10n

Name and description Supports v2 Downloads
koa-locale - Get locale variable from query, subdomain, accept-languages or cookie
koa-i18n - Lightweight simple translation middleware based on i18n-2 โœ“

Response Transformation

Name and description Supports v2 Downloads
koa-response-censor - Strip keys from the response body
koa-snake-res - Snake case json response transform middleware for koa
koa-res - Format koa's respond json. โœ“

Utilities

Misc utilities that are useful for Koa applications. Note that co lets you yield a variety of types, so existing libraries using promises etc should work fine.

Name and description Supports v2 Downloads
koa-combine-routers - Combine multiple instances of @koa/router. โœ“
co-punch - Punch old libraries!
cofy - Cofy is a bridge connecting callback style object to sequential style in co or koa environment with one punch.
koa-compose - compose several middleware into one โœ“
koa-convert - convert koa legacy ( v0.x & v1.x ) generator middleware to promise middleware ( v2.x ) โœ“
shen - Shen is underscore for generators
koa-aspect - AOP for Koa.
co libraries - thunk-based libraries that work with Koa -
koa-add-to-context - middleware to add all enumerable keys to the context of each request
koa-use - Overwrite koa's use(), add Array support.
koa-ignore - Conditional wrapper around koa-compose. โœ“
koa-pass - Conditionally skip a middleware when a condition is met. โœ“
koa-useragent - Fast Middleware exposing user-agent. โœ“
koa-params-extractor - Extract Koa's Parameters โœ“

Aggregates

Aggregate modules make including common suites of middleware in your application(s) easier. This mimics the convenience of Connect's bundled middleware without forcing them on people.

  • common - mount, logger, response-time, static
  • opinion - my opinion on what's needed to get started

Applications

Application list using Koa.

  • cnpmjs.org - Private npm registry and web for Enterprise, base on koa, MySQL and Simple Store Service.
  • icp.c.163.com - A full stack development practice, base on koa, react, MySQL,nos and redis Store Service.
  • component-crawler - component.json crawler
  • DailyNode - A complete, timely aggregator of node things: blog, tutorial, video, npm, tool, framework, conf.
  • Badgelino - Very much work in progress. Fast, extensible badges server. Badges done right. Routes done right.
  • Booooring.com - Soundtrack of you office. Using streaming to send small mp3 files smoothly.
  • N-club - A simple forum.
  • LaTeX Base - Cloud LaTeX editor with offline support and live preview.

Screencasts