Skip to content
Open Sourcebeginner

What is Open Source?

Updated Nov 30, 20263 min readBased on official documentation
What is Open Source?

In short

Open source software is software whose source code is shared publicly, and whose license lets anyone use, study, change and share it. Open source means more than just viewing the code. The license must follow a set of rules called the Open Source Definition, maintained by the Open Source Initiative.

What the term means

Source code is the text that programmers write to build a program. Most software is sold or shared only as a compiled, ready-to-run version, so users cannot read or change the code. Open source software takes a different approach. Its source code is available, and the license that comes with it grants certain freedoms.

The key point is that seeing the code is not enough. A license must also meet a set of conditions. The Open Source Initiative publishes these conditions as the Open Source Definition. If a license meets them, the software counts as open source. If it does not, the code may be visible but the software is not open source.

The main rules

The Open Source Definition contains ten criteria. Here are the ideas behind the most important ones, in plain words:

  • Free redistribution: anyone can sell or give away the software, including as part of a bundle with other programs, and the license cannot demand a fee for that.
  • Source code: the code must be included, or there must be a clear, low-cost way to get it. Code that is deliberately made hard to read is not allowed.
  • Derived works: people can change the software and share their changes, usually under the same terms as the original.
  • No discrimination: the license cannot shut out any person, group, or field of use. A company, a researcher, and a hobbyist should all be allowed to use it.
  • No strings on other software: the license cannot force other programs on the same disk or in the same bundle to be open source too.

These rules are written so that the freedoms travel with the software. Anyone who receives a copy should get the same rights as the original user.

How it works in practice

An open source project usually publishes its code in a public repository, which is an online storage place for code and its history. The project also includes a license file. That file tells users what they may do. Common open source licenses are approved by the Open Source Initiative, so you can check a license against its list before you rely on it.

Because the code is public, many people can read it, report problems, and suggest fixes. Anyone with the right permissions can copy the project, change it, and use the changed copy. The license decides the exact conditions, such as whether changes must also be shared.

Common misunderstandings

Some people think open source means free of charge. That is not the rule. The definition says a license cannot require a fee for resale, but a project may still be sold in some forms. Others think open source means anyone can change the original project directly. In fact, many projects accept changes only through a review process, and the license may require modified versions to carry a different name.

Another mistake is to assume that any public code is open source. Code shared with a note saying "do not copy" or "for personal use only" does not meet the definition, even if anyone can read it.

Why it matters to developers

For a working developer, open source offers several practical benefits. You can read how a library works, fix a bug you find, or learn from well-written projects. You can also build products on top of open source components, provided you follow the license terms. Before you add a dependency, check its license. A few licenses have strict conditions that affect how you can ship your own software.

Where to start

If you are new to the topic, begin by reading a license summary and picking a small project you use daily. Look at its repository, read its license file, and check whether it includes a contribution guide. Small steps like these build a clear picture of how open source works in practice.

FAQ

Is open source the same as free software?

They are closely related and share many goals. The Open Source Definition focuses on the practical rules for licenses, while the term free software stresses user freedom. Most licenses that meet one set of rules also meet the other.

Can I sell software that is open source?

In many cases, yes. The Open Source Definition says a license cannot forbid selling or giving away the software and cannot require a royalty for that sale. Always read the specific license to know the exact conditions.

Do I have to share my own code if I use an open source library?

It depends on the license of that library. Some licenses only ask you to keep their notices, while others require changed versions of the library to be shared under the same terms. Read the license before you build on it.

Who decides whether a license is open source?

The Open Source Initiative reviews licenses against the Open Source Definition and maintains a list of those it has approved. Checking that list is a simple way to confirm a license meets the standard.

Sources

This page is based on the official documentation below. Read it for full detail.

Open source — official documentation ↗

Open source in the news

blozhikDeveloper news from across the web, explained. Every story links to its original sources.