> 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.\
  \
  \
  ![](/files/AYwpM8dkqJSzYAmufqTb)

### References

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