MCPcopy Index your code
hub / github.com/koajs/examples

github.com/koajs/examples @main

repository ↗ · DeepWiki ↗ · Ask this repo → · + Follow
23 symbols 35 edges 43 files 5 documented · 22% updated 11mo ago★ 4,5347 open issues
README

Koa Examples

A repository containing small examples to illustrate the use of Koa for creating web applications and other HTTP servers.

Running tests

npm test
npm run lint

Included Examples

Example Repositories

  • coko - A minimal convention over configuration framework/boilerplate for Koa 2.
  • kails - A Web App like Rails build with Koa v2, Webpack and Postgres
  • muffin - A content management system build on top of Koa v2
  • links - experimental content sharing and collaboration platform
  • component-crawler - crawl users and organizations for repositories with component.jsons
  • bigpipe - Facebook's BigPipe implementation in koa and component
  • webcam-mjpeg-stream - stream JPEG snapshots from your Mac
  • cnpmjs.org - Private npm registry and web for Enterprise, base on koa, MySQL and Simple Store Service
  • blog-mongo - the blog example from this repo, but using a MongoDb database, and tests
  • koa-rest - A simple app to demo REST API
  • koajs-rest-skeleton - A simple Koa REST Skeleton Application
  • koa-bookshelf - Koa example with CRUD, using MongoDB and Heroku comptability
  • todo - A todo example written in koa and react
  • koa-skeleton - A simple made-to-be-forked Koa app that uses Postgres and deploys to Heroku.
  • nodejs-docs-samples - An example Koa app and tutorial for deploying to Google App Engine
  • koa-passport-mongoose-graphql - Koa 2 starterkit using mongoose, graphql setup, and authentication with passport
  • hacknical - A website for github user to make a better resume, based on Koa v2, redis and mongoose.
  • 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.
  • koa-typescript-node - Template for building nodejs and typescript services. Features: MySql, Migrations, Docker, Unit & Integration Tests, JWT authentication, authorization, graceful shutdown, Prettier.
  • koa-shell - Structured sample skeleton application for microservices and api development with Koa.

Boilerplates

Yeoman Generators

  • koa-rest - RESTful API scaffolder with subgenerator
  • koa - Web Application scaffolder
  • k - Web Application scaffolder with Chinese README

## Articles

Core symbols most depended-on inside this repo

render
called by 4
stream-view/view.js
logger
called by 3
compose/app.js
composer
called by 2
vhost/app.js
ignoreAssets
called by 1
conditional-middleware/app.js
Subscription
called by 1
stream-server-side-events/db.js
uid
called by 1
multipart/app.js
stat
called by 1
stream-file/app.js
token
called by 0
csrf/app.js

Shape

Function 18
Method 3
Class 2

Languages

TypeScript100%

Modules by API surface

stream-view/view.js5 symbols
blog/app.js4 symbols
compose/app.js3 symbols
vhost/apps/array.js2 symbols
csrf/app.js2 symbols
vhost/app.js1 symbols
stream-server-side-events/sse.js1 symbols
stream-server-side-events/db.js1 symbols
stream-server-side-events/app.js1 symbols
stream-file/app.js1 symbols
multipart/app.js1 symbols
conditional-middleware/app.js1 symbols

Dependencies from manifests, versioned

@koa/router8.0.5 · 1×
ejs2.5.6 · 1×
eslint3.8.1 · 1×
eslint-config-koa2.0.2 · 1×
eslint-config-standard6.2.0 · 1×
eslint-plugin-promise3.3.0 · 1×
eslint-plugin-standard2.0.1 · 1×
fs-promise2.0.3 · 1×
koa2.2.0 · 1×
koa-basic-auth2.0.0 · 1×
koa-body4.0.8 · 1×
koa-compose4.0.0 · 1×

For agents

$ claude mcp add examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact