node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org ยป

mongoose-statemachine

Mongoose State Machine

A mongoose plugin that gives model objects state machine behavior.