By Gareth Wilson

January 18, 2018

Why Add a License to your Open Source Project?

Most people don’t add a license to their code projects. In 2013 for example, only ~15% of projects on GitHub had one.

There are a few explanations for this. Some suggest developers are pushing back against what they see as a “permission culture”, others blame platforms like GitHub for initially not taking licensing seriously enough (it was 5 years before they added a license picker for example). But I think James Governor perhaps gets closest to the truth in this tweet:

Whatever the reason, it creates a real problem which actually could stop your code from being used by others. Probably, the exact opposite of what you intended!

Just sharing your code publicly on GitHub, Glitch or elsewhere doesn’t mean it can be used. Actually, any code that doesn’t specifically have a license should be considered “all rights reserved” by its author. The author could assert their copyright at any time, and demand you stop using it. So not knowing whether your shared code is meant to be used due to lack of a license could be why your projects don’t have more stars, forks or remixes. As Jeff Atwood puts it “a proper software license is a necessary evil for any code you plan to release to the public.”

**But picking a license is hard?! I hear your cry. **And you’re right, in the past licensing was tricky. There are lots of them, and they included legalese that made them difficult to understand.

But thankfully, there’s been a push in recent years to make licensing more accessible with sites like the Open Source Guide and Choose A License (both GitHub initiatives) making understanding them and choosing one a lot easier.

Which to choose typically comes down to how comfortable you are with other people:

As a result of these common scenarios, the vast majority of software now use either a permissive license, like an MIT, BSD, or Apache license, or a strong copyleft one such as GPL v2 or GPL v3. Sticking with one of these standardized licenses makes it easier for others to know what they can and can’t do with your code. But if you’re releasing an open-source project for work, then it’s always good to check in with your legal team.

If good fences make good neighbors, then a good license certainly makes for a good project. It backs up the appearance of permission you've given folks in sharing your project publicly by expressly giving it in a way you’re happy with. That way, everyone knows where they stand.

It’s such an important aspect, we've made the ability to add a license (and a Code of Conduct) to your project a one-click thing in Glitch. For us, having more Glitch projects explicitly declare their licenses increases the odds that people will be able to easily work together and share their creations. So we've added licenses to all our sample projects too.

So the next time you’re creating a project on Glitch, be a good neighbor and add a license to it.