Xeplr OS / Services

@xeplr/base-apis

Base API bootstrapper — Express and plain HTTP server factories with middleware injection

Install

npm install @xeplr/base-apis

Peer dependencies you provide: express, multer

The idea

createApp wires an Express service with the auth gate already in front of every route, and genericRoute gives any model a list / get / save / delete API — so a new resource is a model and one line, not a hand-written controller.

Where it sits

Part of Services — long-running pieces. Each one boots with the same init() / start() / router() shape and mounts into an Express app you already have.

Builds on

Third-party dependencies

  • cookie-parser
  • cors
  • debug
  • http-errors

Documentation for @xeplr/base-apis is in its README on npm.

These packages are what Xeplr Analytics is made of

If you are assembling this yourself, it may be worth seeing the assembled version first.