{"id":13511912,"url":"https://github.com/koajs/examples","last_synced_at":"2025-05-13T18:05:34.679Z","repository":{"id":12170069,"uuid":"14768185","full_name":"koajs/examples","owner":"koajs","description":"Example Koa apps","archived":false,"fork":false,"pushed_at":"2025-03-19T07:34:08.000Z","size":161,"stargazers_count":4537,"open_issues_count":13,"forks_count":737,"subscribers_count":132,"default_branch":"master","last_synced_at":"2025-05-13T03:31:06.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"booksbyus/mkbook","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koajs.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-11-28T04:59:53.000Z","updated_at":"2025-05-10T05:37:07.000Z","dependencies_parsed_at":"2025-04-24T02:17:45.792Z","dependency_job_id":null,"html_url":"https://github.com/koajs/examples","commit_stats":{"total_commits":165,"total_committers":57,"mean_commits":"2.8947368421052633","dds":0.793939393939394,"last_synced_commit":"3967136b133c9e7157cc030759b2266e005e15f1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koajs","download_url":"https://codeload.github.com/koajs/examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254000838,"owners_count":21997441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T03:01:18.527Z","updated_at":"2025-05-13T18:05:34.623Z","avatar_url":"https://github.com/koajs.png","language":"JavaScript","readme":"# Koa Examples\n\n  A repository containing small examples to illustrate the use of Koa\n  for creating web applications and other HTTP servers.\n\n# Running tests\n\n```bash\nnpm test\nnpm run lint\n```\n\n## Included Examples\n\n - [404](404) - 404 handling\n - [base-auth](base-auth) - middleware base auth example\n - [blog](blog) - multi-route \u0026 view rendering\n - [body-parsing](body-parsing) - request body parsing\n - [compose](compose) - compose middlewares example\n - [conditional-middleware](conditional-middleware) - shows how middleware may be conditionally applied\n - [cookies](cookies) - cookie usage example\n - [csrf](csrf) - middleware csrf example\n - [errors](errors) - error handling \u0026 propagation\n - [flash-messages](flash-messages) - flash example\n - [hello-world](hello-world) - hello world application\n - [multipart](multipart) - multipart example downloading files using co-busboy\n - [negotiation](negotiation) - negotiation usage example\n - [stream-file](stream-file) - simple file streaming\n - [stream-objects](stream-objects) - objects streaming\n - [stream-server-side-events](stream-server-side-events) - server side events streaming\n - [stream-view](stream-view) - view streaming\n - [templates](templates) - simple view rendering\n - [upload](upload) - multi-file uploading\n - [vhost](vhost) - virtual host example\n\n## Example Repositories\n\n - [coko](https://github.com/bhaskarmelkani/coko) - A minimal convention over configuration framework/boilerplate for Koa 2.\n - [kails](https://github.com/embbnux/kails) - A Web App like Rails build with Koa v2, Webpack and Postgres\n - [muffin](https://github.com/muffinjs/server) - A content management system build on top of Koa v2\n - [links](https://github.com/juliangruber/links) - experimental content sharing and collaboration platform\n - [component-crawler](https://github.com/component/crawler.js) - crawl users and organizations for repositories with `component.json`s\n - [bigpipe](https://github.com/jonathanong/bigpipe-example) - Facebook's BigPipe implementation in koa and component\n - [webcam-mjpeg-stream](https://github.com/jonathanong/webcam-mjpeg-stream) - stream JPEG snapshots from your Mac\n - [cnpmjs.org](https://github.com/cnpm/cnpmjs.org) - Private npm registry and web for Enterprise, base on koa, MySQL and Simple Store Service\n - [blog-mongo](https://github.com/marcusoftnet/koablog-mongo) - the blog example from this repo, but using a MongoDb database, and tests\n - [koa-rest](https://github.com/hemanth/koa-rest) - A simple app to demo REST API\n - [koajs-rest-skeleton](https://github.com/ria-com/node-koajs-rest-skeleton) - A simple Koa REST Skeleton Application\n - [koa-bookshelf](https://github.com/Tomsqualm/koa-bookshelf) - Koa example with CRUD, using MongoDB and Heroku comptability\n - [todo](https://github.com/koajs/todo) - A todo example written in koa and [react](http://facebook.github.io/react/)\n - [koa-skeleton](https://github.com/danneu/koa-skeleton) - A simple made-to-be-forked Koa app that uses Postgres and deploys to Heroku.\n     - Live demo: \u003chttps://koa-skeleton.danneu.com\u003e\n - [nodejs-docs-samples](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/appengine/koa) - An example Koa app and tutorial for deploying to Google App Engine\n     - Live demo: \u003chttp://koa-demo.appspot.com/\u003e\n - [koa-passport-mongoose-graphql](https://github.com/sibeliusseraphini/koa-passport-mongoose-graphql) - Koa 2 starterkit using mongoose, graphql setup, and authentication with passport\n - [hacknical](https://github.com/ecmadao/hacknical) - A website for github user to make a better resume, based on Koa v2, redis and mongoose.\n - [koa-vue-notes-api](https://github.com/johndatserakis/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.\n - [koa-typescript-node](https://github.com/Talento90/typescript-node) - Template for building nodejs and typescript services. Features: MySql, Migrations, Docker, Unit \u0026 Integration Tests, JWT authentication, authorization, graceful shutdown, Prettier.\n - [koa-shell](https://github.com/lifeeka/koa-shell) - Structured sample skeleton application for microservices and api development with Koa.\n\n## Boilerplates\n\n - [koa2-boilerplate](https://github.com/geekplux/koa2-boilerplate) - A minimal boilerplate of koa v2 development\n - [api-boilerplate](https://github.com/koajs/api-boilerplate) - API application boilerplate\n - [component-koa-et-al-boilerplate](https://github.com/sunewt/component-koa-et-al-boilerplate) - Server/client boilerplate with component, livereload, and more\n - [koa-typescript-starter](https://github.com/ddimaria/koa-typescript-starter) - A Koa2 starter kit using TypeScript, ES6 imports/exports, Travis, Coveralls, Jasmine, Chai, Istanbul/NYC, Lodash, Nodemon, Docker, \u0026 Swagger\n\n## Yeoman Generators\n - [koa-rest](https://github.com/PatrickWolleb/generator-koa-rest) - RESTful API scaffolder with subgenerator\n - [koa](https://github.com/peter-vilja/generator-koa) - Web Application scaffolder\n - [k](https://github.com/minghe/generator-k) -  Web Application scaffolder with Chinese README\n \n ## Articles\n\n- [Building a RESTful API with Koa and Postgres](http://mherman.org/blog/2017/08/23/building-a-restful-api-with-koa-and-postgres)\n- [User Authentication with Passport and Koa](http://mherman.org/blog/2018/01/02/user-authentication-with-passport-and-koa)\n","funding_links":[],"categories":["JavaScript","Uncategorized","Middleware"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoajs%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Fexamples/lists"}