# muneem

> Fast and simple web framework designed for all team members

Latest version **2.4.5** (published 2019-02-15) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install muneem
pnpm add muneem
yarn add muneem
bun add muneem
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.4.5 |
| Published | 2019-02-15 |
| First published | 2018-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 135.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 28 |
| Author | Amit Gupta |
| Maintainers | amitgupta |
| Keywords | REST, HTTP, HTTP2, HTTPS, web services, server, fast |

## Links

- npm: https://www.npmjs.com/package/muneem
- Repository: https://github.com/node-muneem/muneem
- Issues: https://github.com/node-muneem/muneem/issues
- npm.io page: https://npm.io/package/muneem

## Dependencies (4)

- [pump](https://npm.io/package/pump.md) ^3.0.0
- [yamljs](https://npm.io/package/yamljs.md) ^0.3.0
- [anumargak](https://npm.io/package/anumargak.md) ^2.2.0
- [merge-descriptors](https://npm.io/package/merge-descriptors.md) ^1.0.1

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 2.4.5 (latest) — 2019-02-15
- 2.4.4 — 2019-01-07
- 2.4.3 — 2018-11-30
- 2.4.2 — 2018-11-26
- 2.4.1 — 2018-10-12
- 2.4.0 — 2018-10-11
- 2.3.2 — 2018-10-05
- 2.3.1 — 2018-10-04
- 2.3.0 — 2018-09-30
- 2.2.2 — 2018-09-29
- 2.2.1 — 2018-09-25
- 2.2.0 — 2018-09-25
- 2.1.1 — 2018-08-14
- 2.1.0 — 2018-08-14
- 2.0.1 — 2018-08-10
- … 5 more at https://npm.io/package/muneem/versions

## README

# मुनीम (Muneem)
Simple and fast web framework designed not only for developers but QAs, Maintainers, BAs, and DevOps.

<img align="left" alt="Muneem Logo" src="./static/muneem.png" width="180px" />

मुनीम (Muneem) is the web framework developed in nodejs. It is designed with the aim of easy & rapid development, small learning curve, distributed development, fast services, proper documentation, easy bug discovery and providing the best solution not only for developers but all the team members.

> Your contribution will help us to grow fast


## Usages

**Install**

```bash
$ npm i muneem --save
```



**Example**

```js
const muneem = Muneem();

muneem.add(...);

muneem.start();
```

Muneem allows to add routes and request handlers from the code as well as from the file system. 

Routes added using yaml mapping files are readable and can be understood and managed by non-developers;

```yaml
#Scenario: this is the sample route
- route: 
    uri: /some/url
    when: POST
    to: requestHandler
    after: [ "authentication", "monitoring", "cache out"]
    then: [ "compress it" , "cache in"]
```

Similarly request handlers added from filesystem hides the detail of framework configuration from the user. Eg

**profile.js**
```JavaScript
//@handler
var getProfileDetail = async (asked, answer, store) => {
    await asked.readXml();
    var profileDetail = store("db")( buildQuery(asked.body.profileId) );
    answer.writeXml(profileDetail);
}

//..

module.exports = getProfileDetail;
```

## Documentation
* [Introduction](https://github.com/node-muneem/muneem/blob/master/docs/Introduction.md): registering routes, adding resources to store, server configuration, https, http2, limiting request length.
* [Routes](https://github.com/node-muneem/muneem/blob/master/docs/routeMapping.md): request mapping with request-handlers, sequence of handlers, environment specific routes, unnamed handlers, limiting request length etc.
* [Request Handler](https://github.com/node-muneem/muneem/blob/master/docs/Handler.md): Adding handlers from code, and from files.
    * [HttpAsked](https://github.com/node-muneem/muneem/blob/master/docs/HttpAsked.md): A wrapper around native http request object.
    * [HttpAnswer](https://github.com/node-muneem/muneem/blob/master/docs/HttpAnswer.md): A wrapper around native http response object.
* [Events](https://github.com/node-muneem/muneem/blob/master/docs/Events.md): Adding before/after events, and pre/post handlers, Handling errors, default routs, and large requests using events.
* [Writing Middleware or Plugins](https://github.com/node-muneem/muneem/blob/master/docs/Plugins.md): How a plugin can be written. What are the things can be done by a plugin.
* [Available Plugins](https://github.com/node-muneem/muneem/blob/master/docs/AvailablePlugins.md): body parsers, serializers, compression etc.

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