node package manager

mongoose-statemachine

Mongoose State Machine

A mongoose plugin that gives model objects state machine behavior.