{"id":27950918,"url":"https://github.com/jimzhan/koa.js","last_synced_at":"2026-04-25T23:37:39.356Z","repository":{"id":57189220,"uuid":"94684348","full_name":"jimzhan/koa.js","owner":"jimzhan","description":"Production application boilerplate for Koa","archived":false,"fork":false,"pushed_at":"2017-07-28T08:31:15.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T16:16:16.162Z","etag":null,"topics":["biolerplate","koajs","pm2","prototype","server","skeleton"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimzhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-18T11:57:52.000Z","updated_at":"2025-04-01T03:13:37.000Z","dependencies_parsed_at":"2022-09-15T04:01:38.535Z","dependency_job_id":null,"html_url":"https://github.com/jimzhan/koa.js","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/jimzhan/koa.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimzhan%2Fkoa.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimzhan%2Fkoa.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimzhan%2Fkoa.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimzhan%2Fkoa.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimzhan","download_url":"https://codeload.github.com/jimzhan/koa.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimzhan%2Fkoa.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32280981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["biolerplate","koajs","pm2","prototype","server","skeleton"],"created_at":"2025-05-07T16:16:13.473Z","updated_at":"2026-04-25T23:37:39.337Z","avatar_url":"https://github.com/jimzhan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"We :revolving_hearts: Koa.js\n================================\n[![dependencies](https://david-dm.org/jimzhan/base.js.svg)](https://david-dm.org/jimzhan/base.js.svg)\n[![build](https://travis-ci.org/jimzhan/base.js.svg?branch=master)](https://travis-ci.org/jimzhan/base.js)\n[![npm version](https://img.shields.io/npm/v/base.js.svg?style=flat-square)](https://www.npmjs.com/package/base.js)\n[![npm downloads](https://img.shields.io/npm/dm/base.js.svg?style=flat-square)](https://www.npmjs.com/package/base.js)\n\nProduction application boilerplate for Koa, batteries included:\n+ ES6 + Babel\n+ [ESLint](https://github.com/eslint/eslint) with the [Airbnb JavaScript](https://github.com/airbnb/javascript) rules.\n+ [ApiDoc](http://apidocjs.com/) creates a documentation from API annotations in your source code.\n+ [Mocha](https://github.com/mochajs/mocha) Unit testing and coverage with [Chai](https://github.com/chaijs/chai) assertion framework.\n+ [Editorconfig](http://editorconfig.org/) Consistent coding styles formatter.\n+ [Yarn](https://yarnpkg.com/en/) Dependency management.\n+ [Koa.js](https://github.com/koajs/koa) Next generation web framework.\n+ [Dotenv](https://github.com/motdotla/dotenv) Production settings profile solution.\n+ [JSON Web Tokens](https://jwt.io/) Industry standard RFC 7519 method for representing claims securely between two parties.\n\n## Key NPM Scripts\n* `npm start` - start Koa with hot reload supports (default port `3000`).\n* `npm run docs` - generate API docs in `docs` folder (ignored by git) \u0026 start serving.\n\n## Batteries included\n* configurable prefixed server endpoint (`/v1` by default).\n* JWT based authentication.\n* common middleware.\n* intelligent/automatic config registration.\n* intelligent/automatic routes registration.\n\n  Module created under `apps` folder with routes defined in `index.js` will be registered onto server router automatically.\n```javscript\n// OPTIONAL prefix definition, by default, system will register the module name as its routing prefix.\n//  `prefix -\u003e false` will disable prefix for this module.\nexport const prefix = '/\u003cmodule-prefix\u003e';\n\nimport * as mw from './middleware';\nimport * as views from './views';\n\nexport default {\n  'GET /', views.list,\n  'GET /:key', views.get,\n  'POST /', [mw.acl, views.create],\n  'PUT  /:key', views.update,\n  'DELETE /:key', views.delete,\n}\n```\n* module alias support\n\n```javascript\n// Use this:\nimport MyUtilFn from 'utils/MyUtilFn';\n// Instead of that:\nimport MyUtilFn from '../../../../utils/MyUtilFn';\n```\n\nTODOs\n=====\n- [x] ESLint rules supports.\n- [x] NPM scripts for common operations.\n- [x] `dotenv` based multi settings profiles at server side.\n- [x] Grouped routing system.\n- [x] Grouped settings system.\n- [x] unit test integration.\n- [x] hot reload koa server.\n- [ ] PM2 ecosystem integration.\n- [ ] common helpers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimzhan%2Fkoa.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimzhan%2Fkoa.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimzhan%2Fkoa.js/lists"}