Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Latest commit

History

History
32 lines (20 loc) 路 1.15 KB

README.md

File metadata and controls

32 lines (20 loc) 路 1.15 KB

Build Status code style: prettier

馃毀 Early prototype ahead 馃毀

Slushy - fully typed and validated APIs 馃崷馃嵀

Slushy uses OAS (OpenApi Specification) schemas to generate server boilerplate and validate server inputs and outputs. Slushy currently consist of the following parts:

  • @slushy/codegen Takes an OAS schema and generates typescript type definitions as well as @slushy/server boilerplate.
  • @slushy/server An opinionated NodeJS server based on an OAS schema with inputs/outputs validation and out of the box functionality such as api documentation.

To use slushy just follow three simple steps:

  • Define the OAS schema
  • Generate typescript types and server boilerplate
  • Run the server

Current features:

  • Input validation
  • Type generation
  • Route generation

Documentation

For documentation see https://aimed.github.io/slushy/.

Development

Coming up.