Layered configuration in KrakenJS: base files plus NODE_ENV overlays
KrakenJS merges a base config file with environment-specific overlays selected by NODE_ENV. Learn the layout, a worked example, and where JSON configuration reaches its limits.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
KrakenJS merges a base config file with environment-specific overlays selected by NODE_ENV. Learn the layout, a worked example, and where JSON configuration reaches its limits.
A practical guide to layering environment-specific configuration in Kraken.js using nconf, shortstop handlers, and the onConfiguration hook — with validation, async secret injection, and fallback strategies.
Stop debating folder structures. Learn how Kraken.js uses convention-over-configuration to eliminate architectural fatigue in enterprise Node.js applications.
Learn how to mitigate XSS risks in KrakenJS by implementing a strict Content Security Policy (CSP) using Helmet middleware and dynamic nonces.
KrakenJS adds guardrails to Express through configuration-driven middleware and module-based routing. This blog walks through a real feature-module workflow, shows where the Dust.js default creates friction, and gives a 10-minute test to decide if the trade-offs fit your team.
KrakenJS’s JSON‑based config system lets you merge base and environment files, inject secrets via ${ENV_VAR}, and make settings available through app.kraken. Learn how to set up, verify, and avoid common pitfalls in a practical example.
Learn how to choose between convention-based and explicit routing in Kraken.js to balance development speed with API maintainability.
KrakenJS’s kraken‑async lets you write route handlers with async/await, automatically managing next() and error propagation. Learn how to refactor a callback route, the trade‑offs, and practical steps to adopt async middleware in your project.
Build a lean KrakenJS micro‑service by leveraging its module isolation, lazy loading, and routing. This guide details requirements, a minimal architecture, trust boundaries, operational checks, and failure modes that may force a redesign.