Writing a utility, workflow, or template for a client yourself doesn’t mean you can sell it as a product: the contract may have transferred the work, and the project files can still name the client in places a quick search misses.
This article is for freelancers and agencies. It covers the contract clauses to read, three contractor cases compared point by point, and a search for client material on a sample project: a reminder tool built for Quillmere Veterinary, a fictional client. It explains US copyright rules and Kurodyne’s selling requirements. It isn’t legal advice or a contract template, and it doesn’t determine who owns a particular project. For work you made while employed, read Selling a side project while employed.
You can sell it when you own it, or hold the owner’s written permission to license it to buyers, and you’ve removed the client’s material from it. Work from one project can fall into three cases, and each gets its own answer:
- A library or toolkit you brought to the project
- A deliverable you built for the client
- A tool you rebuild afterward around the same pattern
Can I reuse client code in a product I sell? compares the three. Start with the contract, because it can change the answer for each of them.
Under US copyright law, you usually own what you create as a freelancer, unless a signed contract transfers it to the client or makes it a work made for hire. The answer can change if the law treats you as the client’s employee, and rules differ outside the United States:
- Default ownership: Copyright belongs first to the author of a work, under 17 USC section 201 (opens in a new tab).
- Work made for hire: Work commissioned from an independent contractor counts as a work made for hire, with the client treated as its author, only when it fits one of nine listed categories of commissioned work (such as a translation or a compilation) and both parties sign a written agreement saying so. The US Copyright Office’s work made for hire guidance (opens in a new tab) lists those conditions and the factors that distinguish employees from contractors.
- Transfers: Assigning copyright or granting an exclusive license generally requires a writing signed by the rights owner or an authorized agent, under 17 USC section 204(a) (opens in a new tab).
These rules cover copyright only: they don’t settle what a confidentiality clause restricts or who may use the client’s data. Which country’s law applies to your contract is a separate question.
Look for what the contract transfers to the client, what it leaves with you, and what it stops you from disclosing or doing. Read the main agreement, each statement of work, and any confidentiality agreement together, because a statement of work can set different terms for one project.
- Assignment of intellectual property: Does it cover the listed deliverables, everything you create during the engagement, or also ideas, methods, and know-how? Does it take effect when the work is created or when the client pays in full?
- Pre-existing materials: Does the contract leave the libraries, templates, and tools you brought with you, and did you list them if it asks for a list? Is the client’s license to them nonexclusive? Who owns improvements you made to them during the project?
- License back: Does the contract let you reuse the deliverables, and for what: your portfolio, your internal use, or other clients’ work?
- Confidentiality: Does it cover only the client’s data and business information, or also the deliverables and the fact that you worked together? How long does it last?
- Exclusivity and noncompete terms: Does anything restrict building similar tools or serving the client’s competitors, for how long, and where?
- Publicity: Does naming the client or showing its logo need its consent?
- Subcontractors: For an agency, did each subcontractor who wrote part of the work transfer or license their rights to the agency in writing? An agency can license only what it holds.
When you can’t tell what a clause covers, ask the client in writing or ask a lawyer. Don’t settle the doubt in your own favor.
It depends on where the code came from and what your contract says about it. The three cases below answer the same points: who usually owns the work, what to check in your contract, and what each finding means for a listing.
- Who usually owns it: You do, when you wrote it before the engagement or outside it and the contract leaves pre-existing materials with you. The client usually holds a license to the copy inside its deliverable.
- What to check: Confirm that the carve-out covers this library and that the client’s license is nonexclusive. Find out who owns the changes you made during the project, and whether your history shows what existed before the engagement began.
- What each finding means: A carve-out that covers the library, with a nonexclusive license to the client, supports listing the version that predates the project. Changes assigned to the client belong to the next case, so list the earlier version or get written permission for the later one. An exclusive license, or an assignment of everything built into the deliverables with no carve-out, may mean the library is no longer yours to license to anyone else. Ask the client in writing or ask a lawyer before you list it.
- Who usually owns it: The client, when the contract assigns the deliverables to it or, in the US, the work qualifies as made for hire. When the contract says nothing about ownership, the rules in Who owns freelance work, you or the client? apply.
- What to check: Read what the assignment covers and when it takes effect, what the contract licenses back to you, and what the confidentiality clause covers. Note whether the client’s staff wrote part of the deliverable, and whether it holds the client’s data, branding, or business rules, or anything licensed to the client and not to you.
- What each finding means: An assignment means the deliverable isn’t yours to license, however much of it you wrote, and listing it takes the client’s written permission. A license back for your portfolio or internal use doesn’t cover selling copies. With no assignment, the copyright may be yours, or partly the client’s where its staff wrote part of the work, and a confidentiality clause still applies. The client may also read the deal differently, so confirm it in writing or ask a lawyer before you list. A starter or template bought for the project keeps its own license, whoever paid for it. A product bought on Kurodyne can’t be resold as reusable material, as Can I share or resell the product itself? explains.
- Who usually owns it: You do, for code you write fresh after the engagement, on your own equipment, without the client’s code or documents in front of you. In the US, copyright doesn’t extend to an idea, procedure, process, system, or method of operation, under 17 USC section 102(b) (opens in a new tab), so copyright in the original code doesn’t cover the pattern itself. A contract can reach further than copyright does.
- What to check: Find out whether the assignment covers ideas, inventions, methods, or know-how conceived during the engagement, and whether an exclusivity or noncompete term is still running. Then decide whether what makes the tool useful is a general technique or the client’s own process, rules, or data.
- What each finding means: An assignment limited to deliverables, a general technique, and no restriction still running support listing the rebuilt tool as your own work. Typing a method out again doesn’t get around an assignment or a confidentiality clause that covers the method itself, so ask the client or a lawyer when one might. Any part you copied from the client’s repository, or rebuilt with it open, belongs to the previous case.
None of these findings rules out a dispute. They show whether your contract supports the listing.
Kurodyne requires you to own the product or hold enough rights to grant every buyer the Kurodyne Commercial License. Submitting a product confirms that you do and authorizes Kurodyne to grant the license for you, under the Products section of the Terms of Use and the Commercial License’s seller warranty.
A client’s permission has to cover what buyers get: the right to use, copy, and modify the product for personal, internal business, and commercial purposes, worldwide and with no end date, and to sell finished work made with it, as the Commercial License grant states. A listing or README can’t add restrictions to narrow the license. Get the permission in writing from someone authorized to act for the client.
The listing standards require that the product is your own work, which you made or substantially adapted, and that you own everything in it or have permission to sell it. Images show what buyers receive, so capture screenshots from the cleaned product. The Terms’ prohibited conduct section prohibits submitting another person’s personal data unless you have lawful authority and it’s necessary for a permitted use of the service. Treat records that name a client’s customers or staff as other people’s personal data, and leave them out of the package and the listing.
A person at Kurodyne reviews every listing and update against the listing standards before it goes live. That review isn’t a guarantee, as No warranties (Terms of Use) states, so resolve an ownership question before you submit. If a client sends Kurodyne a valid copyright notice about your product, Kurodyne removes or disables access to the reported material and notifies you, as What happens after a copyright notice? explains. Under the Terms’ indemnification section, a seller agrees to defend Kurodyne, to the extent the law permits, against third-party claims that arise from the seller’s products, listings, or a breach of its rights warranties.
Strip everything that identifies the client or belongs to it: its names and short codes, domain names and addresses, logos, schemas written for its systems, its data, and the names of its people, sites, and tickets. In our sample, that material sat in eight places:
- Configuration defaults:
config/default.jsonheld the practice name, the portal address, and sender addresses at the client’s domain, and each variable in.env.examplebegan with the client’s short code. We replaced them with a placeholder name andexample.comaddresses, and dropped the prefix. - Database migrations: Both tables carried the client’s prefix,
qmv_, a comment cited a client ticket, and a second migration inserted the client’s two clinics with their phone numbers. We wrote one new migration with unprefixed tables. - Sample records: A CSV export listed four appointments with the owners’ names and email addresses, and a development database held the same four rows. We wrote new rows from nothing and left the database out.
- Screenshots:
docs/dashboard.pngand the preview page it was captured from,preview/dashboard.html, showed the client’s logo, a clinic, a vet, two owners, and the front desk’s email address. We rewrote the page with sample rows and captured a new screenshot from it. - Logos and templates: The logo carried the client’s name, and the email template carried its name, portal address, and street address. We removed the logo and made the template take the practice name and portal address from the configuration.
- Comments and documentation: A code comment named a vet and both clinics, other comments cited client tickets, and the README named a staff member and the staging address. We rewrote them.
- Package metadata and names:
pyproject.tomlheld the client’s name, an author address at its domain, and its repository address. The project folder, a migration, and the logo file were named for the client. We renamed the folder and the migration. - Git history: Three commits, each with a client ticket number in its message, were authored under an address at the client’s domain. The product ships without that history.
Removing names isn’t the whole job. A schema shaped by the client’s systems, a business rule the client taught you, or a report layout it specified can belong to the client with no name on it. Our cleaned sample kept the original columns and the two-day reminder lead that the client’s vet asked for. That works only because the client is fictional: in a real project, whether you may keep them is the ownership question in Can I reuse client code in a product I sell?, not a cleanup task. To build sample records from nothing, follow How to scrub private data and build a demo dataset.
Search the project folder four ways: file contents, file and folder names, images, and Git history.
Then build the package and search the extracted copy. The example commands below use macOS or Unix
shell tools (grep, find, git, zip, and unzip).
This is the sample before cleaning. Every name, address, and record in it is made up:
Write every term that points to the client in a text file, one on each line, including its domain
names if they differ from its name. Ours, client-terms.txt, holds the client’s name, the short
code in its table names and ticket numbers, two clinic names, and a staff member’s surname:
Keep the file beside the project folder, not inside it, so it can’t end up in the package. Leave no
blank line in it: the macOS grep manual says that an empty pattern line matches every input line,
and with one, our search listed all 11 files of the cleaned product.
Run the search from the folder that holds the project folder and client-terms.txt:
-r searches every file under the folder, -i ignores letter case, -l prints the name of each
file with a match, -F treats each term as plain text, and -f reads the terms from the file.
--exclude-dir=.git skips the Git folder, which Read the Git history
covers, and sort puts the list in order:
That is 12 of the folder’s 13 files. A search for the name alone, quillmere, listed 8: it missed
both migrations, the CSV export, and the development database, which hold only the short code, the
clinics, and the surname. To read the matches in one file, name the file and print line numbers:
Across the folder, the terms matched 44 lines in 11 text files, and grep reported the database as
a binary file with a match instead of printing its lines.
grep reads what’s inside files, not what they’re called, so search the names too, for each term
that could appear in a filename. Ours are the name and the short code:
The first line is the project folder itself, which becomes the top folder of a ZIP file built from it.
List the images, then open each one and read it:
The screenshot is the one file the content search didn’t list: grep counted no match in it, and
the picture shows the client’s logo, a clinic, a vet, two owners, and an email address. A text
search doesn’t read pixels. The logo is an SVG file, which is text, so the content search found the
name inside it.
Check who authored the commits and how much of the history matches your terms:
Every commit carried an address at the client’s domain, and the history held 54 matching lines. A
plain search of the .git folder matched Git’s logs, its index, and the last commit message, but
none of the 25 files under .git/objects, where Git keeps each commit and file version compressed,
as Git’s description of its objects (opens in a new tab)
explains. Read the history with Git.
A cleanup commit doesn’t remove what earlier commits hold. After one commit that replaced every file
with the cleaned product, the working files had no match, the history had 103 matching lines, and
git show HEAD~1:config/default.json still printed the client’s configuration. Compressing the
client folder as it stood put the history in the ZIP file: 84 of its 104 entries were under .git/.
Build the product in a new folder with no .git folder, which
Package limits and file rules lists among the
things to remove before you compress a folder.
We also tried the shortcut: we replaced each term with a neutral word in the 11 text files and
changed nothing else. The content search then listed one file, the binary database, and the folder
still held the unchanged screenshot, the three paths named for the client, four owners’ names and
email addresses, a second vet’s surname that was never on the list, both clinics’ phone numbers, and
a logo that still drew the client’s initials. The preview page now pointed to sample-logo.svg, a
file that didn’t exist, because the replacement changed the reference and not the filename. The tool
still ran and printed its two reminders.
A term list finds only the terms you put on it. Replace data, images, and logos whole instead of editing them, and read what remains.
The cleaned product, reminder-kit, is a new folder with the changes listed in
What client material do I strip before packaging? and no .git folder.
The content and name searches printed nothing for it, and grep exited with status 1, which its
manual defines as no lines selected. The image search listed one file, the new screenshot, and we
opened it.
Buyers get the ZIP file, so run the last search on a copy extracted from it. Build the ZIP file as
Prepare your package describes. We built
ours by running zip -qr on the reminder-kit folder from the folder that holds it. Our filenames
are all ASCII; for names with accents or other non-ASCII characters, use a tool that
Package limits and file rules names. Then run:
The three searches printed nothing, and unzip -l listed 18 entries, with no .git folder,
database, or logo:
We then ran the product from the extracted copy to check that the renamed tables and settings still worked, and it printed the two reminders its README describes.
A search that prints nothing shows that the listed terms are gone from the files the search can read. It doesn’t show that the package holds no client material, or that you have the rights to sell what’s left.
Verify the rights first and the package second, and keep a dated record of both. Before you submit, confirm that:
- You can point to the contract clause that supports each part of the product, or you hold written permission that covers the Kurodyne Commercial License from someone authorized to act for the client.
- No confidentiality, exclusivity, or noncompete term still restricts the product.
- You have the rights to license every part someone else wrote, such as a subcontractor’s code or a section the client’s staff wrote.
- Third-party material is identified, as Third-party notices for code you sell shows.
- The copy extracted from the ZIP file passed your searches, your reading of every image, and a run of the product.
Keep the signed contract documents, any written permission, dated history that shows what existed before the engagement and when you rebuilt anything, and the term list and search output for the release you submit. These records support your account of how the product was made. They don’t create rights the contract doesn’t give you. Keep them out of the package, the README, and the listing. Once you hold the rights and have cleaned and checked the package, follow Publish your first product to prepare the listing.