A message arrives from someone who saw the to-do app you built to learn arrays: could you make one like it with their logo on it, and what would you charge? The code already exists. What is missing is a price, a scope, and a way to hand the thing over without becoming unpaid support staff for the next two years.
Selling small JavaScript work — a script, a component, a landing page, a spreadsheet automation — is a packaging problem far more than a coding one, and once the packaging is right the number is much easier to defend.
Price the outcome, not the line count
Two identical scripts can be worth wildly different amounts depending on who needs them and what breaks without them. A currency converter on a hobby blog is a nice-to-have; the same logic inside a checkout flow, where a wrong rate costs real money, is not. Ask what the piece replaces — a manual task, a paid tool, an hour of someone’s week — and price against that friction rather than against the hundred and twenty lines you wrote.
When the buyer cannot name what the work replaces, the job is a learning exercise for them. Price it as a small fixed fee rather than a project, and keep the scope to a single deliverable.
Three ways to package the same piece
- Script only. You deliver a file and a short README, they install it. The cheapest thing to quote and the easiest to finish, which makes it the right shape for a first sale.
- Installed and working. You deploy it, set the domain or hosting, and confirm it runs on their machine. Add a setup fee and a delivery date to the price.
- Installed plus care. The piece plus a monthly check: dependency updates, a small change allowance, a response window. Offer this only after you have shipped the same kind of thing twice.
Where the first buyers actually are
Rarely on a marketplace where your price sits beside a hundred identical offers. They are in the places where people already describe the problem: a local business whose contact form silently fails, a forum thread about copying a spreadsheet column by hand, a previous client whose site broke after an update. One sentence that names their problem, plus one working demo, beats any portfolio page you could assemble this month.
Put the piece online at a real address, keep the source in a public repository, and write three lines explaining what it does and what it does not do. That is enough proof for a job worth a few hundred.
Terms that keep a small job small
- Half up front, half on delivery, with no exceptions for people who seem nice.
- A written scope: what is included, what costs extra, and how many revision rounds are covered.
- A firm definition of done — one page, these browsers, this date, this file format.
- Source, credentials and a short README handed over at the end, not before the final payment.
- Thirty days of bug fixes included; new features quoted separately, even when they sound tiny.
When the number feels too high
Say the price once, plainly, then stop talking. If it is genuinely out of reach, remove something from the scope instead of lowering the number: fewer pages, no deployment, no care plan. A discount teaches the buyer that your first figure was invented; a smaller scope teaches them what the work costs.
Some enquiries will go quiet after the quote, and that is the cost of not working for free. The ones who reply usually reply with a date attached.