Guides / 9 min read
How to sell source code online without the support nightmare
What buyers expect when they buy code, which license to sell it under, how to price, deliver and update it, and the mistakes that lead to refunds.
Selling source code looks simple: put a zip behind a payment button. In practice, buyers are paying for something more specific than files. They pay for time they will not spend building it, and for confidence that it works, that they are allowed to use it, and that someone will answer if it breaks. This guide covers what to sell, under which license, at what price, and how to deliver it so the sale does not turn into a support job.
What sells well as source code
- Starter kits and boilerplates: authentication, billing, dashboards and deployment done, so a team starts on its actual product.
- Components and UI kits: polished, documented building blocks for a framework.
- Scripts and automations: a job done well and repeatedly, with a clear input and output.
- Complete small apps: a working product someone wants to rebrand, run or extend.
- Plugins and extensions: for platforms where buyers already spend money.
What sells badly: code that only works on your machine, projects without documentation, and anything whose main feature is "it is clean code". Buyers do not pay for quality they cannot see. They pay for an outcome they can describe.
Decide what the buyer may do with it
The license is the product as much as the code. Answer these questions before you write the price:
- Can the buyer use it in commercial projects? Almost always yes, or the audience shrinks to hobbyists.
- How many projects? One project, unlimited projects, or one company.
- Can they resell or redistribute the source? Usually no. Allowing it destroys your own market.
- Can they use it in a product they sell to others? Often allowed for end products (a client's website) but not for competing templates.
- Do updates come with it, and for how long? A year of updates is a common, easy-to-understand promise.
Write the answers in plain words on the product page, then in the license file that ships with the code. A common structure is two tiers: a personal or single-project license, and an extended or team license at a higher price. Read Software licenses, explained before writing your own terms, and have a lawyer look at them once you sell regularly.
Prepare the code for strangers
Before the first sale, go through the repository as if you had never seen it:
- Remove secrets and personal data. API keys, `.env` files, test accounts, customer data, internal URLs. Check the git history too, not only the latest files.
- Check what you are allowed to sell. Every dependency's license must allow your use, and you must own (or have the rights to) all the code and assets, including images and fonts.
- Make it install in one go. A README with prerequisites, the exact commands, and the expected result. If setup takes more than fifteen minutes, buyers will ask you for help instead.
- Add a demo. A live preview or a short video answers most pre-sale questions.
- Version it. A version number and a changelog let buyers know what they bought and what changed.
Price it on the time it saves
Buyers compare your price to the cost of building it themselves. If your starter kit saves a developer a week, a price that is a small fraction of a week of their time is an easy decision. Look at what comparable products sell for, place yourself on that range according to completeness and documentation, and avoid pricing very low out of nervousness: a low price signals low quality and attracts the buyers who need the most help.
Offer a higher tier for teams or unlimited use. Many buyers choose the middle option when there are three, so make the middle one the one you want to sell. See How to price a developer tool without guessing.
Deliver it properly
- Take payment through a trusted checkout so card details never touch your server and buyers get a receipt.
- Deliver immediately after payment: a download and a license key, by email and in an account page.
- Use license keys if you sell tiers or updates. They let you verify use and give buyers a reference when they contact you.
- Ship updates through the same place, and tell buyers when a new version is out.
The CodeToCoin Marketplace does all of this: hosted checkout, license keys with a verification API, downloads, updates and verified-buyer reviews, with payouts to your own Stripe account.
Set support boundaries before the first question
Write a short support policy and put it on the product page:
- what is included (installation problems, bugs in your code);
- what is not (custom features, problems in the buyer's own code, hosting);
- how to ask (one email address or form) and how fast you answer;
- the refund policy, in one sentence.
Clear boundaries are kinder to buyers than vague promises, and they protect your time.
The mistakes that cause refunds
- The product page promises features the code does not have.
- Setup fails on a clean machine because of a missing step or a hard-coded path.
- A dependency's license forbids the buyer's intended use.
- The buyer did not understand what the license allows.
- Silence: questions that wait a week for an answer.
Before you publish
- ☐ Secrets and personal data removed, including from history
- ☐ Dependency and asset licenses checked
- ☐ README that installs the project from zero
- ☐ Demo or video
- ☐ License terms in plain words on the page and in the files
- ☐ Price and tiers decided
- ☐ Support and refund policy written
Want a second pair of eyes first? Scan the repository with CodeToCoin: it flags secrets, license conflicts and missing pieces, and tells you how ready the code is to sell.
Is your code ready to be sold?
A free scan checks the license, committed secrets, the README and the setup a buyer will hit on day one. See a real report.
Or upload a zip after signing up. Your code is read, never run, never kept.