# panagiop/node.js-clean-architecture

A use case of Clean Architecture in Node.js comprising of Express.js, MongoDB and Redis as the main (but replaceable) infrastructure.

Repository: https://github.com/panagiop/node.js-clean-architecture
Canonical: https://ross.abutalabs.com/products/nodejs-clean-architecture
Language: JavaScript
License Family: other
Topics: nodejs, microservice, crud, mongodb, expressjs, clean-architechture, rest-api
Last push: 2026-01-16T14:15:20+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 62, release rhythm 35, longevity 100
- inputs: {"age_days": 2354, "days_push": 229, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1161, forks 208 (observed 2026-08-28T04:03:49.433959+00:00)

## What it is
An example Node.js project demonstrating Clean Architecture with Express.js, MongoDB, and Redis as replaceable infrastructure. It implements a simple RESTful CRUD API for users and posts, organized into entities, use cases, interface adapters, and frameworks/drivers layers.

## Use cases
- learn clean architecture in node.js
- example of express rest api with mongodb and redis
- how to structure a node.js project with separation of concerns
- reference implementation of clean architecture crud api
- node.js microservice boilerplate with docker
- understand the dependency rule with a real codebase

## When to choose
- you want a practical, runnable example of Clean Architecture in Node.js
- you are building a REST API with Express and MongoDB and want layered structure guidance
- you need a teaching or reference codebase for dependency inversion in JavaScript

## When to avoid
- you need a production-ready framework or library with support and guarantees
- you want a batteries-included starter with authentication, tests, and CI included
- your stack is not JavaScript/Node.js

## Facets
- artifact type: learning-resource
- maturity: active
- function: web-framework, http-server, routing, middleware
- domain: web-development, backend, developer-tools, tutorials
- platform: cross-platform
- tags: clean-architecture, expressjs, mongodb, redis, rest-api, example-project, crud, microservice, nodejs, docker

## Member repositories
- panagiop/node.js-clean-architecture (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:49.433959+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:31:43.335086+00:00, confidence not recorded.
  - readme: https://github.com/panagiop/node.js-clean-architecture (fetched 2026-08-28T04:03:49.433959+00:00, sha f13b6c8194e1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
