DEV Community

Cover image for Your Dependencies Have a Maintenance Cost. Here's Why It Matters.
zintrust Zin
zintrust Zin

Posted on

Your Dependencies Have a Maintenance Cost. Here's Why It Matters.

Every dependency you add to a project comes with a responsibility.

You have to install it, keep it updated, monitor vulnerabilities and deal with it when something breaks.

That doesn't mean dependencies are bad. Good packages save developers enormous amounts of time. The problem starts when we introduce packages without thinking about whether we actually need them.

The hidden cost of dependencies

Think about a typical backend project.

You start with a framework, add a database library, bring in a queue package, install a caching solution and before long, your application has accumulated quite a few dependencies.

Some are essential. Others might not even be used anymore.

The more packages you introduce, the more things your team potentially needs to keep track of.

A different approach with ZinTrust

This is one of the ideas behind ZinTrust.

Instead of building its core around Express or Fastify, ZinTrust provides its own backend framework architecture, with integrations available through adapter packages.

For example:

  • PostgreSQL: zin add db:postgres
  • Redis queues: zin add queue:redis
  • Other integrations can be added as your application requires them.

The idea is to avoid introducing integrations you don't currently need.

Three questions worth asking before installing another package

  1. Do I need this for the feature I'm building now?
  2. Is there already something in my existing stack that handles it?
  3. Who will be responsible for maintaining it?

These questions might seem simple, but they can save a lot of unnecessary complexity over time.

Final thought

You don't have to avoid dependencies to build good software.

You just need to be intentional about them.

That's the approach we're taking with ZinTrust.

Explore ZinTrust:

Get started:

npm install -g @zintrust/core && zin new my-app

Top comments (0)