# @blueprod/ws-koa

> Web Service implementation via Koa.js

Latest version **0.1.3** (published 2020-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @blueprod/ws-koa
pnpm add @blueprod/ws-koa
yarn add @blueprod/ws-koa
bun add @blueprod/ws-koa
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-06-16 |
| First published | 2019-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 20 |
| Unpacked size | 76 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thanh LE |
| Maintainers | thanhlq, vudv |
| Keywords | web, app, http, framework, middleware, webservice, websocket, socket.io, mongodb, mean, koa, node, blueprod, production |

## Links

- npm: https://www.npmjs.com/package/@blueprod/ws-koa
- Repository: https://github.com/EMSA-TECHNOLOGY/blueprod
- Homepage: https://github.com/EMSA-TECHNOLOGY/blueprod#readme
- Issues: https://github.com/EMSA-TECHNOLOGY/blueprod/issues
- npm.io page: https://npm.io/package/@blueprod/ws-koa

## Dependencies (20)

- [koa](https://npm.io/package/koa.md) ^2.12.1
- [zlib](https://npm.io/package/zlib.md) ^1.0.5
- [koa-qs](https://npm.io/package/koa-qs.md) ^2.0.0
- [koa-etag](https://npm.io/package/koa-etag.md) ^3.0.0
- [koa2-cors](https://npm.io/package/koa2-cors.md) ^2.0.6
- [koa-helmet](https://npm.io/package/koa-helmet.md) ^4.2.0
- [koa-logger](https://npm.io/package/koa-logger.md) ^3.2.0
- [koa-multer](https://npm.io/package/koa-multer.md) ^1.0.2
- [koa-router](https://npm.io/package/koa-router.md) ^7.4.0
- [koa-static](https://npm.io/package/koa-static.md) ^5.0.0
- [koa-favicon](https://npm.io/package/koa-favicon.md) ^2.0.1
- [koa-session](https://npm.io/package/koa-session.md) ^5.12.2
- [koa-compress](https://npm.io/package/koa-compress.md) ^4.0.1
- [koa-passport](https://npm.io/package/koa-passport.md) ^4.1.3
- [koa-bodyparser](https://npm.io/package/koa-bodyparser.md) ^4.3.0
- [@blueprod/common](https://npm.io/package/@blueprod/common.md) ^0.3.0
- [@blueprod/config](https://npm.io/package/@blueprod/config.md) ^0.2.4
- [@blueprod/logger](https://npm.io/package/@blueprod/logger.md) ^0.1.5
- [koa-conditional-get](https://npm.io/package/koa-conditional-get.md) ^2.0.0
- [@blueprod/ws-view-koa-ejs](https://npm.io/package/@blueprod/ws-view-koa-ejs.md) ^0.1.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.1.3 (latest) — 2020-06-16
- 0.1.1 — 2019-07-17

## README

# Web Service implementation by Koa.js

The purpose of this module is to integration of all koa's best middlewares which are ready for production.

Also so to give facilities for dynamic API binding and websocket integration with socket.io.


## How To Use

To do...

```javascript
// this is wrong
app.use(function (ctx, next) {
    ctx.set("Access-Control-Allow-Origin", "*");
    next();
});
// this is right
app.use(async function (ctx, next) {
    ctx.set("Access-Control-Allow-Origin", "*");
    await next();
});
```

### Develop & Register Your Middleware

- Ref: Middleware Best Practices: https://github.com/koajs/koa/blob/master/docs/guide.md#middleware-best-practices

## License

MIT license 

## Author

Developed & maintained by EMSA TECHNOLOGY COMPANY LTD (contact @ emsa-technology dot com).

---
_Source: https://npm.io/package/@blueprod/ws-koa · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
