# What is the main difference a library and a framework?

**URL:** <https://community.hubspot.com/t/what-is-the-main-difference-a-library-and-a-framework/11364>\
**Category:** APIs & Integrations\
**Created:** [November 3, 2018, 10:54pm UTC](https://community.hubspot.com/t/what-is-the-main-difference-a-library-and-a-framework/11364 "2018-11-03T22:54:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 3, 2018, 10:54pm UTC](https://community.hubspot.com/t/what-is-the-main-difference-a-library-and-a-framework/11364/1 "2018-11-03T22:54:13Z")

</div>

I am a new developer and I often find the above named concepts thrown around often. I need a bit of clarity.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 5, 2018, 3:41pm UTC](https://community.hubspot.com/t/what-is-the-main-difference-a-library-and-a-framework/11364/2 "2018-11-05T15:41:44Z")

</div>

Hi [@Toladigit](https://community.hubspot.com/u/toladigit),

While [the definitions vary in different contexts](https://stackoverflow.com/questions/148747/what-is-the-difference-between-a-framework-and-a-library), HubSpot developers generally think of:

- A **library** as a file of reusable objects and functions that is often focused around solving a particular problem or around a specific area of application development.
- A **framework** , on the other hand, as a collection of libraries centered around a particular methodology and covers all areas of application development.
