Skip to content
Hong Minhee (洪 民憙) edited this page Jan 15, 2026 · 575 revisions

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. chat build status code coverage code style styled with prettier made with lass license
lesky - Lightweight Express-ish (Koa) Server -- Type les not more! CLI for serving static files and initializing workspaces npm npm Image Image NPM
T-Koa - 🌈 Koa web app framework written in typescript. Image
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. Image
koa-rest-api-boilerplate is a boilerplate for Node.js Koa RESTful API application with Docker, Swagger, Jest, CodeCov, PM2 and Circle CI Image
Koaton 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. Image Koaton CLI Image semantic-release js-happiness-style
JollofJSJollofJS - Comes with an impressive, native-friendly ORM and an in-built admin interface for CRUDing Data Image
egg - Born to build better enterprise frameworks and apps with Node.js & Koa Image
EggBorn.js - The Ultimate Javascript Full Stack Framework Image
Cabloy.js - The Ultimate Javascript Full Stack Business Development Platform, based on EggBornJS Image
thinkjs - Use full ES2015+ features to develop Node.js applications, Support TypeScript. Image
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 Image
ThinkKoa - Embrace Node.js 8 & koa2. A lightweight, scalable web framework, based on koa. Image
koahub - KoaHub.js -- Based on Koa platform Node web rapid development framework (Use es6/7) Image
koahub-cli - KoaHub-cli -- automatically compile Babel ES6/7 and automatic restart after file modification Image
koa-mvc - Koa v2 MVC framework, similar to sails.js Image
js-api - JavaScript/JSON objects to REST API in seconds. Image Image
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. Image
koa.io realtime web framework, built on Socket.IO Image
api-boilerplate - an API application boilerplate Image
koa-generator - Koa' application generator just like express-generator(support 1.x && 2.x) Image
koa-gen - Express liked generator with standard style and gulp-nodemon (Koa v1.x & v2.x) Image
koala - a more feature-rich version of Koa, including many middleware and utilities Image
koa-plus - Koa with added features (similar to koala) - optimized for building secure, scalable APIs Image
koan - Full stack JavaScript Web development boilerplate with Koa and Angular Image
component-boilerplate-koa - component + koa boilerplate Image
opinion - Koa, and some modules so you can just start building Image
cottage - Simple, fastest microframework based on Koa Image
koa-mvc - Opinionated and minimalist MVC generator Image
surface - A tiny middleware of RESTful API for koa Image
koanect - A bare minimum framework that allows your web app to run standalone or to be packaged and included in other koanect apps Image
roo – jump-start your web app with a thin layer on top of koa to reduce initial boilerplate Image
resourced - A resource-oriented DSL for configuring koa Image
kona - a modular MVC framework and middleware stack built on koa Image
trek - Next generation full-stack JavaScript open source solution, based on Koa Image
kaio - A minimalist middleware to get started faster with Koa Image
koa-starter - A simple Koajs application starter template that includes controller, router, and view Image
baxel - Baxel is a MVC web framework build on top of Koa framework Image
strapi - Strapi allows you to build powerful back-end on top of Koa with no effort Image
Paloma - An angluar-like MVC framework Image
Kless - A framework inspired by FaaS, based on koa. Image
koa-socket - Attaches socket.io to koa and allows koa-style middleware for sockets Image
koa-socket2 - Attaches socket.io to koa2 and allows koa2-style middleware for sockets npm
koa2-boilerplate - A minimal boilerplate of koa v2. Image
koa2-api-boilerplate - API-only (RESTful) boilerplate for Koa v2 with ES6-syntax & other. Image
koa2-starter-example - A starter for koa v2 with couchbase Image
koa-skeleton - Front end skeleton with koa backend Image
node-koajs-rest-skeleton - A simple Koajs 2.5 Application REST Skeleton (Koa v1.x & v2.x). Kubernetes-ready Image
Gracejs - A Nodejs SFB(Separation of Front and Back ends) framework, build with koa.(基于koa的标准前后端分离框架) Image
koa2-kickstarter - An opinionated boilerplate for koa v2 with batteries included. Image
Pikachu - A Koa2 app boilerplate. Image
lorem-koa - a CRUD application built with Koa. Image
javascript-boilerplate - Node.js+Koa.js+PostgreSQL+React.js+Webpack+Mocha+Makefile, a starter kit for new apps. Image
micro-koa - Creating microservices with koa inspired by zeit/micro Image
koa-sample-web-app-api-mysql - Koa Sample App (handlebars templating + RESTful API using MySQL) Image
koa-rester - Deploy RESTful APIs from presistence layer models Image
myKoa - myKoa (our myKoa V2 Frameworks) Image
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. Image
koa2-es2017-api-boilerplate - 🚀 Unopinionated Rest API boilerplate using Koa2 & ES2017+ with Jest for testing and ESLint for linting Image
koa2-starter-kit - Another Koa2 Starter Kit, utilizing Camo.js ODM and validate.js for validation Image
ibird - A lightweight and flexible web development framework.✨🚀✨ Image
koa2-api-boilerplate - Koa2, Knex, es6-error, Gulp, ApiDoc, ESLint, koa-validate, JWT. Image
node-typescript-koa-rest - KOA2, typescript, logging and JWT. TypeORM with class-validator, SQL CRUD. Docker included. Valuable README. Image
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 Image
koa-restful-quick-start - 💥 koa-restful 快速启动项目,包含Restful Demo、依赖注入、Aop编程、Swagger、Authentication。支持构建为JS在node环境中运行。 Image
koa-restful-boilerplate - Koa 2 RESTful API boilerplate Image
koa-api-starter - A starter kit for building Koa.JS based restful api Image
koa-rest-generator - A Koa RESTful API Generator Image
Image Atlas.js - A component-based library to reduce boilerplate and provide sane project structure 🍻 Image
ashley-koa - A dependency injection framework for Koa v2 Image
ts-microservice-boilerplate - Koa + TS boilerplate, + Docker, K8s, CI examples, and more Image
Image aom - API Over Models. Lightweight and powerful REST framework, Koa@2 with TypeScript, TypeORM and ClassValidator support, high scalability Image Image

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 Image
koa-connect - mount Express/Connect middleware Image
koa2-validation - A koa2 middleware to validate the request with Joi Image
koa-router-joi-validator - Middleware for easy validation using simple JSON schemas (using Joi)! Image
koa-exception - Exception Handler Middleware Base on Koa@1.x Image
koa-webpack - Development and Hot Module Reload Middleware for Koa2. Simple setup and use. Composes webpack-dev-middleware and webpack-hot-middleware. Image
koa-webpack-middleware - webpack-dev-middleware for koa2 with HMR (Hot Module Replacement). Image
koa-hello-world - Koa 'Hello World' middleware, useful for testing Image
koa2-request-middleware - Koa2 request middleware, useful for get or post other datas Image
grant - OAuth middleware Image
kcors - CORS middleware Image
koa-slow - delay answering requests by URL RegExp, useful for debugging. Image
koa-force-https - Force HTTPS connection (including using HTTP2 protocol) to any incoming requests for Koa@2+
koa-force-ssl - Middleware for force SSL Image
koa-cluster - clustering and error handling utility Image
koa-polyfills - user-agent based polyfill bundle serving Image
koa-polyfill-service - user-agent based polyfill bundle serving; based on polyfill-service Image
koa-sub-domain - middleware to handle multilevel and wildcard subdomains Image
koa-isbot - middleware detect bot crawler -
koa-toobusy - Toobusy middleware for koa. Image
koa-handle-error - Error handler Middleware for Koa@2.x. Image
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 Koa@2.x. Image
koa-better-http-proxy - Proxy middleware for Koa. Based on villadora/express-http-proxy Image
koa2-simple-proxy - Simple Http Proxy Middleware for Koa@2.x. Image
koa-oembed - oEmbed middleware for koa Image
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 Image
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 Image
koa-middleware-adapter - Functions and promises can be used as middleware in koa Image
koa-lowercase - Simple lowercasing middleware for Koa 2. Image
koa-mid - Common Koa middlewares. Image
koa-lambda-middleware - A simple functional middleware that can use hooks. Image

Security

Name and description Supports v2 Downloads
koa-helmet - security headers for koa Image
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. Image
koa-ip - Ip filter middleware for koa, support whitelist and blacklist Image
koa-authz - ACL, RBAC, ABAC authorization middleware based on Casbin Image
koa-acl - ACL middleware for koa Image
koa-rbac - Role-Based Access Control for koa Image
koa-rbac-mongo - Save the rbac rules to mongodb for dynamic rbac setup and check. Image
node-security-voters - ACL voters Image
koa-protect - Security module for koa applications Image

Body Parsing

Name and description Supports v2 Downloads
koa-body - parse http request body Image
koay-body - parse http request body Image
hal-body - parse hal+json request body Image
koa-parse-json - parse JSON request body Image
koa-better-body - ✨ Full-featured koa body parser! 🌟 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. ✨ Image
koa-bodyparser - a body parser for koa, base on co-body Image
koa-multer - handling multipart/form-data for koa Image
koa/multer - fork of koa-multer to the official Koa organization (koa-multer is unmaintained) Image
multy - handle in memory multipart/form-data Image
koa-busboy - handling multipart/form-data for koa v2 Image
co-busboy - busboy multipart parser using co or koa Image
formidable-upload-koa - handling multipart/form-data especially for file upload based on the famous formidable parser Image
koa-json-body - parse JSON http request bodies Image
koa-xml-body - parse xml http request bodies Image
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 Image

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. Image
koa-rest-router - Most powerful, flexible and composable router for building enterprise RESTful APIs easily! Image
koa-input - parameter(support query, params, body and headers etc.) validate middleware for koa Image(https://img.shields.io/npm/dm/koa-validate.png?style=flat-square)
koa-scheme - parameter validation middleware for koa Image
koa-router-validator - Validator middleware for @koa/router Image
koa-router-schema - Schema validate middleware for @koa/router Image
koa-context-validator - A robust context validator for koajs. Use Joi behind the scenes. Image
koa-joi-swagger - Using joi schema to validate request & response, and generate swagger document to create beautiful API documents. Image
koa-joi-validate-middleware - Validate middleware generator using Joi Image
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 Image
koa-better-ratelimit - support black/white lists, Retry-After header, 429 status, in-memory store. Image
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. Image
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 Image

Vhost

Name and description Supports v2 Downloads
koa-vhost - vhost middleware Image
koa-virtual-host - name-based virtual host middleware Image
koa-sub-domain - middleware to handle multilevel and wildcard subdomains Image
koa-subdomain - middleware to handle multilevel and wildcard subdomains Image

Routing and Mounting

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

Documentation

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

File Serving

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

SPDY

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

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 Image

JSON and JSONP Responses

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

Compression

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

Caching

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

Authentication

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

Sessions

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

Templating

Name and description Supports v2 Downloads
koa-locals - local variables for templates render, use of ctx.state instead of ctx.locals Image
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 Image
koa-views - Render your views with almost any templating engine Image
koa-webc - Render your WebC components Image build status npm version
koa-ejs - Focus on ejs and support full feature include layout, filters, locals, include. Image
co-ejs - koa ejs view render middleware. Image
koa-dom - server-side dom templating Image
koa-swig - Focus on swig, support tags, filters, and extensions. Image
koa-swig-render - Focus on swig, used as a middleware. Image
koa-hbs - Express-style Handlebars view rendering. Image
koahub-handlebars - Handlebars view rendering, Use async/await Image
koa-jade - a Jade middleware for Koa Image
koa-handlebars - Handlebars view rendering Image
koajs-nunjucks - Nunjucks view rendering Image
koa-view - Nunjucks view rendering Image
koa-pug - a Pug (renamed Jade) middleware for Koa Image
koa-artpl - koa artTemplate engine Image
koa-nunjucks-next - Nunjucks view rendering, support asynchronous filters, render raw string Image
koa-xtpl - A node.js wrapper around xtemplate engine (easier for Koa 2) Image
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 Image
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. Image
@hellohd/koa-nunjucks - Use nunjucks.js to dynamically load templates, auto-reload templates when they are changed, and use precompiled templates. Image

Services

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

CSS Preprocessor

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

Livereload

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

Error reporting

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

Logging

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

Metrics

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

Analytics

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

i18n or L10n

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

Response Transformation

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

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. Image
co-punch - Punch old libraries! Image
cofy - Cofy is a bridge connecting callback style object to sequential style in co or koa environment with one punch. Image
koa-compose - compose several middleware into one Image
koa-convert - convert koa legacy ( v0.x & v1.x ) generator middleware to promise middleware ( v2.x ) Image
shen - Shen is underscore for generators Image
koa-aspect - AOP for Koa. Image
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 Image
koa-use - Overwrite koa's use(), add Array support. Image
koa-ignore - Conditional wrapper around koa-compose. Image
koa-pass - Conditionally skip a middleware when a condition is met. Image
koa-useragent - Fast Middleware exposing user-agent. Image
koa-params-extractor - Extract Koa's Parameters Image

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