Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

serviser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serviser

Node.js web application framework

latest
Source
npmnpm
Version
2.1.1
Version published
Weekly downloads
14
-17.65%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Test Coverage npm version Gitter

Serviser Logo

serviser is abstraction layer built on top of express for creating transparent, scalable and stable REST APIs.

The emphasis is put, among other features, on REST API documentation, validation (security), error handling and automation of perpetually repeated tasks.

The goal is to provide out of the box solution to common problems that arise when using nodejs frameworks at scale but at the same time keeping the core functionality lightweight with modular, swappable plugin based architecture.

Quick start

Generate working new project skeleton:

> mkdir my-api
> cd my-api 
> npx serviser-template init # shorthand for npm i serviser-template
                             # && ./node_modules/.bin/serviser-template init
> npm start

Resources

Features

  • Promises!
  • Documentation autogeneration
  • A SDK client package autogeneration
  • JSON Schema integration (no duplicate definitions anymore!)
  • request data validation
  • response data filters
  • App lifecycle events (event driven)
  • shell integration
  • Resource & Service integrity inspection capabilities (health monitoring)
  • caching solutions
  • Semantic Service versioning
  • and more (see Public API Reference)!

What this project is NOT:

  • All in one MVC & ORM robust and monolithic solution.

Main ideas:
Interfaces are created and procedures standardized only where it's necessary.
Non-integral parts of the framework are built as plugins.
Loosely coupled design is often prefered.

Tests

npm test

FAQs

Package last updated on 29 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts