# moser

> "a quick server in mongodb. inspired in json-server" -n

Latest version **0.57.0** (published 2020-03-10) · MIT license · 0 weekly downloads

## Install

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

Provides the command `moser`.

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.57.0 |
| Published | 2020-03-10 |
| First published | 2018-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 32 |
| Unpacked size | 253.3 KB |
| Known vulnerabilities | 0 (+18 in 5 direct dependencies) |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Fabian Gutierrez |
| Maintainers | fega |
| Keywords | mongo, express, server, development, lean, quick, mock, quick, prototype, prototyping, mongodb, rest, api, framework |

## Links

- npm: https://www.npmjs.com/package/moser
- Repository: https://github.com/fega/mongo-server
- Homepage: https://github.com/fega/mongo-server#readme
- Issues: https://github.com/fega/mongo-server/issues
- npm.io page: https://npm.io/package/moser

## Dependencies (32)

- [joi](https://npm.io/package/joi.md) ^14.3.1
- [loy](https://npm.io/package/loy.md) 0.0.11
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [debug](https://npm.io/package/debug.md) ^4.1.1
- [ramda](https://npm.io/package/ramda.md) ^0.26.1
- [raven](https://npm.io/package/raven.md) ^2.6.4
- [helmet](https://npm.io/package/helmet.md) ^3.21.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [morgan](https://npm.io/package/morgan.md) ^1.9.1
- [date.js](https://npm.io/package/date.js.md) ^0.3.3
- [express](https://npm.io/package/express.md) ^4.17.1
- [mongodb](https://npm.io/package/mongodb.md) ^3.5.4
- [bcryptjs](https://npm.io/package/bcryptjs.md) ^2.4.3
- [passport](https://npm.io/package/passport.md) ^0.4.1
- [commander](https://npm.io/package/commander.md) ^3.0.2
- [flattenjs](https://npm.io/package/flattenjs.md) ^1.0.4
- [pluralize](https://npm.io/package/pluralize.md) ^8.0.0
- [nodemailer](https://npm.io/package/nodemailer.md) ^6.4.4
- [safe-regex](https://npm.io/package/safe-regex.md) ^2.1.1
- [compression](https://npm.io/package/compression.md) ^1.7.4
- [express-jwt](https://npm.io/package/express-jwt.md) ^5.3.1
- [http-errors](https://npm.io/package/http-errors.md) ^1.7.3
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1
- [pretty-error](https://npm.io/package/pretty-error.md) ^2.1.1
- [randomstring](https://npm.io/package/randomstring.md) ^1.1.5
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.4
- [passport-local](https://npm.io/package/passport-local.md) ^1.0.0
- [email-validator](https://npm.io/package/email-validator.md) ^2.0.4
- [express-validation](https://npm.io/package/express-validation.md) ^1.0.3
- [swagger-ui-express](https://npm.io/package/swagger-ui-express.md) ^4.1.3
- [express-status-monitor](https://npm.io/package/express-status-monitor.md) ^1.2.9

## 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.57.0 (latest) — 2020-03-10
- 0.56.0 — 2020-03-09
- 0.55.9 — 2020-03-09
- 0.55.8 — 2020-03-08
- 0.55.7 — 2020-03-08
- 0.55.6 — 2020-03-08
- 0.55.5 — 2020-03-08
- 0.55.4 — 2020-03-08
- 0.55.3 — 2020-03-05
- 0.55.2 — 2020-01-09
- 0.55.1 — 2020-01-09
- 0.55.0 — 2020-01-08
- 0.54.0 — 2019-12-13
- 0.53.0 — 2019-11-25
- 0.52.0 — 2019-11-18
- … 104 more at https://npm.io/package/moser/versions

## README

# Introduction

![Mongo-server](https://i.imgur.com/DJgIHcL.png)

Get a full REST API with **zero coding** in **less than 30 seconds** \(seriously\) Hyper-Heavily inspired on [json-server](https://github.com/typicode/json-server)

### Documentation

📖[Read Documentation](https://nomadas.gitbook.io/mongo-server/)

### Features

* [x] Automatic REST \(GET, POST, PATCH, PUT,  DELETE\).
* [x] Status monitor
* [x] Automatic Pagination, Sorting and Filters.
  * [x] Regex Queries
  * [x] Field Filtering
  * [x] Advanced filters \(i.e: not equals, greater than, etc\)
  * [ ] GeoSpatial queries
  * [x] Item counting
  * [x] Sorting
  * [x] Pagination
* [x] Automatic Population \(like SQL join\).
* [x] Automatic API documentation \(In Alpha\).
* [ ] Automatic Admin panel \(In development\).
* [x] Static Serving.
* [x] Input validation and output formatting.
* [x] Permission handling \(JWT based\).
* [ ] Built-in Authentication:
  * [x] Local.
  * [x] Magic links.
  * [x] Magic Codes.
  * [ ] Oauth \(Coming soon\).
  * [ ] Common providers: Facebook, google and Github \(Coming soon\).
* [x] DB seeding.
* [x] Mailing capabilities.
* [x] Security
  * [x] Helmet integration
  * [x] CORS
  * [ ] CSRF \(coming soon\).
  * [ ] Rate limit \(coming soon\).

## Some use cases

* [x] Quick Product prototyping
* [x] Headless CMS
* [x] test REST API

## License

MIT - [Fabian Enrique Gutierrez](https://github.com/fega)

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