koa-router - Router middleware for koa.

  •        20

Create a new router. Create router.verb() methods, where verb is one of the HTTP verbs such as router.get() or router.post().

https://github.com/alexmingoia/koa-router

Dependencies:

debug : ^3.1.0
http-errors : ^1.3.1
koa-compose : ^3.0.0
methods : ^1.0.1
path-to-regexp : ^1.1.1
urijs : ^1.19.0

Tags
Implementation
License
Platform

   




Related Projects

route - Simple route middleware

  •    Javascript

Uber simple route middleware for koa. If you need a full-featured solution check out koa-router, a Koa clone of express-resource.

universal-router - A simple middleware-style router for isomorphic JavaScript web apps

  •    Javascript

A simple middleware-style router that can be used in both client-side (e.g. React, Vue.js) and server-side applications (e.g. Node.js/Express, Koa).Play with an example on JSFiddle, CodePen, JS Bin in your browser or try RunKit node.js playground.

joi-router - Configurable, input and output validated routing for koa

  •    Javascript

Easy, rich and fully validated koa routing. NodeJS >= 7.6 is required.


isomorphic-flux-boilerplate - ES7 Isomorphic Flux/ReactJS Boilerplate

  •    Javascript

A wonderfull boilerplate for Flux/ReactJS universal applications, running on koajs. Koa will be our server for the server side rendering, we use alt for our Flux architecture and react-router for routing in our app.

logger - Development style logging middleware

  •    Javascript

Development style logger middleware for koa. Notice: koa-logger@2 supports koa@2; if you want to use this module with koa@1, please use koa-logger@1.

react-router-scroll - React Router scroll management

  •    Javascript

React Router scroll management. react-router-scroll is a React Router middleware that adds scroll management using scroll-behavior. By default, the middleware adds browser-style scroll behavior, but you can customize it to scroll however you want on route transitions.

koa-graphql - Create a GraphQL HTTP server with Koa.

  •    Javascript

Create a GraphQL HTTP server with Koa. NOTE: Below is a copy from express-graphql's README. In this time I implemented almost same api, but it may be changed as time goes on.

generic-session - koa session store with memory, redis or others.

  •    Javascript

Notice: koa-session support external store now, please migrate to koa-session. Generic session middleware for koa, easy use with custom stores such as redis or mongo, supports defer session getter.

session - Simple session middleware for koa

  •    Javascript

Simple session middleware for Koa. Defaults to cookie-based sessions and supports external stores. The cookie name is controlled by the key option, which defaults to "koa:sess". All other options are passed to ctx.cookies.get() and ctx.cookies.set() allowing you to control security, domain, path, and signing among other settings.

Koa - Expressive HTTP middleware framework for node.js

  •    Javascript

Koa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. Through leveraging generators Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware within core, and provides an elegant suite of methods that make writing servers fast and enjoyable.

mount - Mount other Koa applications or middleware to a given pathname

  •    Javascript

Mount other Koa applications as middleware. The path passed to mount() is stripped from the URL temporarily until the stack unwinds. This is useful for creating entire apps or middleware that will function correctly regardless of which path segment(s) they should operate on. View the ./examples directory for working examples.

static - Static file server middleware

  •    Javascript

Koa static file serving middleware, wrapper for koa-send.

jwt - Koa middleware for validating JSON Web Tokens

  •    Javascript

This module lets you authenticate HTTP requests using JSON Web Tokens in your Koa (node.js) applications. See this article for a good introduction.

redux-router - Redux bindings for React Router – keep your router state inside your Redux store

  •    Javascript

Redux bindings for React Router. React Router is a fantastic routing library, but one downside is that it abstracts away a very crucial piece of application state — the current route! This abstraction is super useful for route matching and rendering, but the API for interacting with the router to 1) trigger transitions and 2) react to state changes within the component lifecycle leaves something to be desired.