Choose the simplest useful shape
Start with the problem rather than the framework. A static document, a command-line utility or a single service may be enough.
Make boundaries explicit
Use small interfaces, clear naming and predictable error handling. Write tests around observable behavior, not incidental implementation details.
Add complexity when it pays for itself
Introduce a dependency when its benefit exceeds its maintenance cost. Review unused features and keep deployment instructions close to the source.
A concrete example: a technical journal
A static journal requires a browser, a web server and versioned documents. Search over a small collection can happen in the browser; language variants can be separate URLs. A database, identity service and build framework would each add a new lifecycle to operate. Introduce them only when editing workflows, content volume or user-specific state demand them.
Measure the trade-off
Before introducing a dependency, write down the feature it enables and how to verify it. Compare page weight, build time, operational steps and failure modes before and after the change. A simple solution still needs tests: validate links, inspect mobile layouts and check the response status of missing pages. If the smaller solution fails the requirements, choose the more capable one deliberately.