{"id":14989442,"url":"https://github.com/bhaskarmelkani/coko","last_synced_at":"2025-06-22T11:07:55.724Z","repository":{"id":48315273,"uuid":"111851798","full_name":"bhaskarmelkani/coko","owner":"bhaskarmelkani","description":"A minimal framework built on top of Koajs.","archived":false,"fork":false,"pushed_at":"2021-08-02T04:15:24.000Z","size":31,"stargazers_count":15,"open_issues_count":13,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T11:07:38.276Z","etag":null,"topics":["convention-over-configuration","es6","js-framework","koa","koa-boilerplate","koa2","koajs","node-boilerplate"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bhaskarmelkani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-23T21:32:54.000Z","updated_at":"2023-10-15T15:50:49.000Z","dependencies_parsed_at":"2022-09-16T13:10:51.000Z","dependency_job_id":null,"html_url":"https://github.com/bhaskarmelkani/coko","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bhaskarmelkani/coko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaskarmelkani%2Fcoko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaskarmelkani%2Fcoko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaskarmelkani%2Fcoko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaskarmelkani%2Fcoko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhaskarmelkani","download_url":"https://codeload.github.com/bhaskarmelkani/coko/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaskarmelkani%2Fcoko/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261282322,"owners_count":23134940,"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":["convention-over-configuration","es6","js-framework","koa","koa-boilerplate","koa2","koajs","node-boilerplate"],"created_at":"2024-09-24T14:18:22.805Z","updated_at":"2025-06-22T11:07:50.711Z","avatar_url":"https://github.com/bhaskarmelkani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coko\n[![license](https://img.shields.io/npm/l/coko.svg)](https://github.com/bhaskarmelkani/coko/blob/master/LICENSE)\n[![dependencies Status](https://david-dm.org/bhaskarmelkani/coko/status.svg)](https://david-dm.org/bhaskarmelkani/coko)\n[![npm](https://img.shields.io/npm/v/coko.svg)](https://www.npmjs.com/package/coko)\n[![npm](https://img.shields.io/npm/dw/coko.svg)](https://www.npmjs.com/package/coko)\n\n\ncoko is a minimal framework built ontop of [Koa](https://github.com/koajs/koa).\n\ncoko provides a conventional approach for building apps using [async/await](https://github.com/koajs/koa#async-functions-node-v76) pattern of [Koa2](https://github.com/koajs/koa).\nIt gives a basic boiler plate for Koa ontop of which you can write your application logic.\n\ncoko is inpsired from [Sailsjs](https://sailsjs.com/) and keeping the setup minimal and extensible.\n\n\u003e Note: Check [coko-bean](https://github.com/bhaskarmelkani/coko-bean) for the example.\n\n\ncoko's feature includes:-\n* [Convention over configuration](https://en.wikipedia.org/wiki/Convention_over_configuration).\n* Routing using [koa-router](https://github.com/alexmingoia/koa-router).\n* Body parsing.\n* Logging using [koa-logger](https://github.com/koajs/logger) and [koa-morgan](https://github.com/koa-modules/morgan).\n* Response handling, by providing response handlers like [sails responses](https://sailsjs.com/documentation/reference/response-res)(eg. `res.ok()`, etc...).\n* Conditional get support using [conditional-get](https://github.com/koajs/conditional-get).\n\n## Table of contents\n\n* [Getting Started](#get-started)\n* [Documentation](./docs/README.md)\n* [Roadmap](#roadmap)\n* [Development \u0026 Contributing](#developement-and-contributing)\n* [License](#license)\n\n\n## \u003ca name=\"get-started\"\u003e\u003c/a\u003e Get Started\n\nSince coko is a [convention over configuration](https://en.wikipedia.org/wiki/Convention_over_configuration) framework, it uses a minimal directory structure.\n[coko-bean](https://github.com/bhaskarmelkani/coko-bean) is there to help you getting started with the structure that is best suited with coko.\n\n* Clone the seed project [coko-bean](https://github.com/bhaskarmelkani/coko-bean).\n\n` git clone https://github.com/bhaskarmelkani/coko-bean.git`\n* Go into the directory\n\n`cd coko-bean  \u0026\u0026 npm install`\n\n* Start the server\n\n`npm start`\n\nThis command will run a http sever on port `4000`, you can configure the port(TODO).\n\n\u003e The seed has a test route ***/user***\n\nOpen [`http://127.0.0.1:4000/user`](http://127.0.0.1:4000/user).\n\nWhoaaa, this was quick !!!\n\n## \u003ca name=\"roadmap\"\u003e\u003c/a\u003e Roadmap\n\ncoko is still developing and is ambitious to get features that should be provided by a minimal framework.\n\n* Add testing support.(Maybe using [Jest](https://github.com/facebook/jest))\n* If needed, add support for Expect: 100-continue.\n* Create a config module and provide it in controllers, services and maybe middlewares.\n* For now ejs(using [koa-views](https://github.com/queckezz/koa-views)) is a default templating engine, add support for configuring it.\n* Add support for static file serving.\n* Add configurable security headers for response.\n* Add better error handling.\n* Add support for customizing/adding responses(eg. `res.ok()`, etc...).\n* Add tracing using [koa-trace](https://github.com/koajs/trace).\n* Add configurable jsonp support. Check [koa-safe-jsonp](https://github.com/koajs/koa-safe-jsonp)\n* If required add authentication strategies.\n* Add support for database handling.\n* Add cli for generating seed.\n* Asset(cs/js/image) handling.\n\n## \u003ca name=\"developement-\u0026-contributing\"\u003e\u003c/a\u003e Developement and Contributing\n\nCheck detailed [contributing guidelines](./CONTRIBUTING.md).\n\n## \u003ca name=\"license\"\u003e\u003c/a\u003e License\n\nThe MIT License (MIT). See [full license](./LICENSE).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhaskarmelkani%2Fcoko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhaskarmelkani%2Fcoko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhaskarmelkani%2Fcoko/lists"}