zijianhe/koa-router

Router middleware for koa.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 16 minutes ago
Added to GitGenius on September 14th, 2026
Created on August 31st, 2013
Open Issues & Pull Requests: 82 (+0)
GitHub issues: Enabled
Number of forks: 398
Total Stargazers: 4,811 (+0)
Total Subscribers: 44 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 18.8 hours
Mean response time: 18.8 hours
90th percentile: 18.8 hours
Tracked items: 1

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

koa-router is a router middleware for koa that provides Express-style routing with support for named parameters and routes.

The tool solves the problem of mapping HTTP requests to handler functions in koa applications. It works by matching URL patterns against incoming requests using regular expressions, derived from path specifications, and executing associated middleware or controller actions. The approach mirrors Express routing conventions, making it familiar to developers transitioning from Express to koa.

Developers should choose this tool if they are building koa applications and want routing semantics similar to Express. It suits projects of any scale that need structured request handling with named routes, URL parameter extraction, and middleware composition. The tool supports multiple routers that can be nested, allowing modular application architecture. It handles HTTP verb methods including GET, POST, PUT, PATCH, and DELETE, plus OPTIONS and error responses for unsupported methods.

The project maintains active engagement with its codebase, regularly addressing issues and pull requests to keep the tool functional with current koa versions. Development activity shows consistent responsiveness to user-reported problems and feature requests. The maintainers prioritize compatibility with koa's evolution, as evidenced by API updates to align with koa's shift to promise-based middleware.