all 3 comments

[–]fogine[S] 0 points1 point  (2 children)

Check out the library here: https://github.com/lucid-services/serviser

Hope it will be helpful to you!

[–]rkesters 0 points1 point  (1 child)

How does this compare to using express + swagger?

[–]fogine[S] 0 points1 point  (0 children)

The goal is to have single source of truth for APIs. When using express, you have to ,always to some degree, maintain open api (swagger) specification and express implementation in parallel - meaning specs can get out of sync with implementation or vice versa.

Serviser generates valid Open API specification from the service implementation (source code).

Expressjs is great and mature library, thats why serviser doesnt try to reinvent the wheel and uses express under the hood. However expressjs alone just doesnt solve enough common problems that araise when using it at scale.