← modules / misc

Backend baseline

core-backend

Env validation, pino logger, error envelope, request id, readiness and graceful shutdown

add it to a devstack project

npx create-devstack-app add core-backend

Environment

  • NODE_ENV

    development, test or production; production skips loading .env

  • LOG_LEVEL

    pino log level: fatal, error, warn, info, debug, trace or silent