> For the complete documentation index, see [llms.txt](https://til.kurianbenoy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.kurianbenoy.com/programming/clean-architecture.md).

# Clean Architecture

It contains four layers, yet it's not just limited to it you can extend to as much as possible. The four layers are:

* Entities - like base class models for business code
* Use Cases/ Injectors
* Controllers
* External Interfaces\
  \
  Then the dependency injection aspect which takes one components, allows that components to be reused anywhere without any hesistancy.\
  \
  \
  ![](https://4253921594-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhiOx8KkYnYxHHqfUbB%2Fuploads%2F1pvQw3JR5XuNKpg5CW2F%2Fimage.png?alt=media\&token=aad1922c-1bdf-4899-85cd-b6ce3c2d2ef2)

### References

1. <https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html>
